drastic rework of my environment, and include some new tools

This commit is contained in:
Simon Belmont 2025-05-08 20:38:29 -04:00
parent 9dcf22ecd8
commit 3d8e8e1534
4 changed files with 100 additions and 114 deletions

View file

@ -14,7 +14,7 @@
"output": "DP-2",
"layer": "top",
"modules-left": ["hyprland/workspaces", "hyprland/mode"],
"modules-center": ["custom/gpu-usage", "cpu", "memory", "group/disks", "temperature", "clock", "custom/weather", "idle_inhibitor", "custom/pacman", "group/networks", "bluetooth", "group/audio-player"],
"modules-center": ["group/statistics", "group/status", "group/networks", "group/audio-player"],
/* "modules-right": ["tray", "custom/scratchpad-indicator", "pulseaudio",], */
"modules-right": ["group/taskbar", "group/group-power"],
@ -44,13 +44,25 @@
"group/audio-player": {
"orientation": "inherit",
"modules": [
"mpris",
"group/playing",
"cava"
]
},
"group/playing": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "not-power",
"transition-left-to-right": true,
},
"modules": [
"mpris",
"mpris#2"
]
},
"mpris": {
"format": "<span color=\"#bd93f9\">{player_icon}</span> <span color=\"#f8f8f2\">Playing </span>",
"format-paused": "<span color=\"#bd93f9\">{status_icon}</span> <span color=\"#f8f8f2\">Paused </span>",
"format": "<span color=\"#bd93f9\">{player_icon}</span> <span color=\"#f8f8f2\">Playing </span>",
"format-paused": "<span color=\"#bd93f9\">{status_icon}</span> <span color=\"#f8f8f2\">Paused </span>",
"tooltip-format": "󰠃 {artist}:  {title} (󰀥 {album})",
"interval": 1,
"album-len": 0,
@ -66,7 +78,16 @@
},
// "ignored-players": ["firefox"]
},
"mpris#2": {
"format": "<span color=\"#8be9fd\"> </span><span color=\"#f8f8f2\">{title} </span><span color=\"#ff79c6\">󰠃 </span><span color=\"#f8f8f2\">{artist} <small>({position}/{length}) </small></span>",
"format-paused": "<span color=\"#8be9fd\"> </span><span color=\"#f8f8f2\">{title} </span><span color=\"#ff79c6\">󰠃 </span><span color=\"#f8f8f2\">{artist} <small>({position}/{length}) </small></span>",
"tooltip-format": "󰠃 {artist}:  {title} (󰀥 {album})",
"interval": 1,
"album-len": 0,
"on-click": "exec ~/.bin/sh/dunstaudio.sh play_pause",
"on-click-right": "exec ~/.bin/sh/dunstaudio.sh next_track",
"on-click-middle": "exec ~/.bin/sh/dunstaudio.sh prev_track",
},
"cava": {
"cava_config": "/home/peter/.config/cava/config",
"framerate": 240,
@ -88,8 +109,18 @@
"on-click-right": "mode"
}
},
"group/statistics": {
"orientation": "inherit",
"modules": [
"custom/gpu-usage",
"cpu",
"memory",
"group/disks",
"temperature"
]
},
"custom/pacman": {
"format": "<span color=\"#8BE9FD\"> </span>{}",
"format": "<span color=\"#8BE9FD\"> </span>{} ",
"tooltip": true,
"tooltip-format": "Available updates",
"interval": 60,
@ -128,8 +159,10 @@
"group/networks": {
"orientation": "inherit",
"modules": [
"custom/pacman",
"network",
"custom/vpn",
"bluetooth"
]
},
"network": {
@ -137,8 +170,8 @@
"format": "{ifname}",
"interval": 1,
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "<span color=\"#50fa7b\"> </span>{ifname}",
"format-disconnected": "<span color=\"#FF5555\"> </span>{ifname}",
"format-ethernet": "<span color=\"#50fa7b\"> </span>{ifname}",
"format-disconnected": "<span color=\"#FF5555\">󱄁 </span>{ifname}",
"max-length": 50,
"tooltip-format": "speed:  {bandwidthDownBytes} /  {bandwidthUpBytes}",
"on-click": "kitty --class nmnet --single-instance -e nmtui",
@ -164,8 +197,16 @@
"icon-size": 20,
"spacing": 6
},
"group/status": {
"orientation": "inherit",
"modules": [
"clock",
"custom/weather",
"idle_inhibitor"
]
},
"clock": {
"format": "<span color=\"#FF92DF\">󱑏</span> {:%I:%M:%OS}",
"format": "<span color=\"#FF92DF\">󱑏</span> {:%I:%M:%OS} ",
"interval": 1,
"tooltip-format": "<big> {:%d/%m/%y}</big>",
// "format-alt": "{:%Y-%m-%d}"
@ -173,19 +214,19 @@
},
"cpu": {
"interval": 10,
"format": "<span color=\"#cf7cac\">{icon}</span> {usage}%",
"format": "<span color=\"#cf7cac\">{icon}</span> {usage}% ",
"format-icons": [""]
},
"memory": {
"format": "<span color=\"#8BE9FD\">{icon}</span> {percentage}%",
"format": "<span color=\"#8BE9FD\">{icon}</span> {percentage}% ",
"format-icons": [""]
},
"temperature": {
// "thermal-zone": 2,
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
"format-critical": "<span color=\"#ff5555\"></span> {temperatureC}°C",
"format": "<span color=\"#f1fa8c\"></span> {temperatureC}°C",
"format-critical": " <span color=\"#ff5555\"></span> {temperatureC}°C",
"format": " <span color=\"#f1fa8c\"></span> {temperatureC}°C",
"tooltip": false,
},
"group/disks": {
@ -205,27 +246,27 @@
},
"disk": {
"interval": 30,
"format": "<span color=\"#8694c0\"></span><span color=\"#50FA7B\">󰋊 </span>/: {percentage_used}%",
"format": " <span color=\"#8694c0\"></span><span color=\"#50FA7B\">󰋊 </span>/: {percentage_used}% ",
"path": "/"
},
"disk#disk2": {
"interval": 30,
"format": "<span color=\"#ba89ff\">󰋊 </span>M2: {percentage_used}%",
"format": " <span color=\"#ba89ff\">󰋊 </span>M2: {percentage_used}% ",
"path": "/mnt/M2"
},
"disk#disk3": {
"interval": 30,
"format": "<span color=\"#ff79c6\">󰋊 </span>SSD: {percentage_used}%",
"format": " <span color=\"#ff79c6\">󰋊 </span>SSD: {percentage_used}% ",
"path": "/mnt/SSD"
},
"disk#disk4": {
"interval": 30,
"format": "<span color=\"#8BE9FD\">󰋊 </span>Games: {percentage_used}%",
"format": " <span color=\"#8BE9FD\">󰋊 </span>Games: {percentage_used}% ",
"path": "/media/Games"
},
"disk#disk5": {
"interval": 30,
"format": "<span color=\"#ffb86c\">󰋊 </span>Backups: {percentage_used}%",
"format": " <span color=\"#ffb86c\">󰋊 </span>Backups: {percentage_used}% ",
"path": "/mnt/Backups"
},"pulseaudio": {
"format": "{volume}% {icon}",
@ -250,9 +291,9 @@
"on-scroll-down": "exec ~/.bin/sh/dunstaudio.sh volume_down"
},
"bluetooth": {
"format": "<span color=\"#6272a4\"></span> {status}",
"format-connected": "<span color=\"#6272a4\"></span> on",
"format-connected-battery": "<span color=\"#6272a4\"></span> on",
"format": " <span color=\"#6272a4\"></span> {status}",
"format-connected": " <span color=\"#6272a4\"></span> on",
"format-connected-battery": " <span color=\"#6272a4\"></span> on",
"on-click": "blueman-manager",
// "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
@ -261,9 +302,9 @@
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
},
"custom/vpn": {
"format": "<span color=\"#ff5555\"> </span>",
"format": "<span color=\"#ff5555\">  </span>",
"tooltip": true,
"tooltip-format": "Connected",
"tooltip-format": "Connected to VPN",
"exec": "echo '{\"class\": \"connected\"}'",
"exec-if": "test -d /proc/sys/net/ipv4/conf/tun0",
"return-type": "json",
@ -273,14 +314,14 @@
"custom/weather": {
"exec": "python ~/.config/waybar/scripts/weather.py",
"restart-interval": 300,
"format": "{}",
"format": "{} ",
"return-type": "json",
"on-click": "xdg-open https://weather.com/en-IN/weather/today/l/e42bb25a58c2e689ec85e632d82e69d7e46c82defb9ad7a5551b6c3a70fbc282"
// "format-alt": "{alt}",
},
"custom/gpu-usage": {
"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
"format": "<span color=\"#8694c0\"></span><span color=\"#bd93f9\">󰍹 </span>{}%",
"format": "<span color=\"#8694c0\"></span><span color=\"#bd93f9\">󰍹 </span>{}% ",
"return-type": "",
"interval": 1,
"tooltip": false

View file

@ -69,15 +69,7 @@ window#waybar.hidden {
}
#bluetooth {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#battery {
@ -125,40 +117,40 @@ window#waybar.hidden {
color: #f8f8f2;
background: #282a36;
}
#clock {
#status {
margin-top: 6px;
margin-left: 6px;
padding-left: 8px;
padding-right: 3px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
padding-top: 2px;
padding-bottom: 2px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: transparent;
/*background: #1A1826;*/
}
#memory {
#clock {
color: #f8f8f2;
}
#statistics {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
margin-bottom: 0px;
padding-right: 10px;
padding-top: 2px;
padding-bottom: 2px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#memory {
color: #f8f8f2;
}
#cpu {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
margin-bottom: 0px;
padding-right: 10px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#taskbar {
@ -170,44 +162,23 @@ window#waybar.hidden {
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #5d4185;
background: #282a36;
}
#disk {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#temperature {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#idle_inhibitor {
margin-top: 6px;
margin-left: 1px;
padding-left: 1px;
padding-right: 6px;
margin-bottom: 0px;
border-radius: 10px;
color: #f8f8f2;
}
#idle_inhibitor.activated {
color: #50fa7b;
color: #50fa7b;
}
#custom-vpn {
@ -215,15 +186,7 @@ window#waybar.hidden {
}
#custom-weather {
margin-top: 6px;
margin-left: 3px;
padding-left: 3px;
padding-right: 6px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: transparent;
}
#custom-weather.severe {
@ -268,15 +231,7 @@ window#waybar.hidden {
}
#custom-gpu-usage {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f8f2;
background: #282a36;
}
#audio-player {
margin-top: 6px;
@ -324,15 +279,6 @@ window#waybar.hidden {
background: #8BE9FD;
}
#custom-pacman {
margin-top: 6px;
margin-left: 2px;
padding-left: 5px;
padding-right: 5px;
margin-right: 2px;
margin-bottom: 0px;
border-radius: 10px;
transition: none;
color: #f8f2f2;
background: transparent;
}