waybar style

This commit is contained in:
thek4n 2026-08-04 11:09:42 +03:00
parent ffa5ebcf92
commit 27632e048a
2 changed files with 35 additions and 21 deletions

View File

@ -13,7 +13,6 @@
"modules-right": [ "modules-right": [
"custom/wireless", "custom/wireless",
"custom/bluetooth",
"custom/diskroot", "custom/diskroot",
"custom/diskhome", "custom/diskhome",
"memory", "memory",
@ -21,7 +20,8 @@
"custom/cpu_temp", "custom/cpu_temp",
"custom/battery", "custom/battery",
"custom/pomodoro", "custom/pomodoro",
"custom/volume", "custom/bluetooth",
"pulseaudio",
"custom/language", "custom/language",
"custom/userhost", "custom/userhost",
"clock", "clock",
@ -32,60 +32,74 @@
"clock": { "clock": {
"format": " {:%d.%m.%y %a  %H:%M}", "format": " {:%d.%m.%y %a  %H:%M}",
"format-alt": "{:%H:%M}", "format-alt": "{:%H:%M}",
"interval": 30 "interval": 30,
}, },
"custom/wireless": { "custom/wireless": {
"exec": "~/.config/waybar/scripts/builder.sh wireless", "exec": "~/.config/waybar/scripts/builder.sh wireless",
"interval": 10, "interval": 10,
"return-type": "text" "return-type": "text",
}, },
"custom/diskroot": { "custom/diskroot": {
"exec": "~/.config/waybar/scripts/builder.sh disk_root", "exec": "~/.config/waybar/scripts/builder.sh disk_root",
"interval": 30, "interval": 30,
"return-type": "text" "return-type": "text",
}, },
"custom/diskhome": { "custom/diskhome": {
"exec": "~/.config/waybar/scripts/builder.sh disk_home", "exec": "~/.config/waybar/scripts/builder.sh disk_home",
"interval": 30, "interval": 30,
"return-type": "text" "return-type": "text",
}, },
"memory": { "memory": {
"interval": 5, "interval": 5,
"format": "{used:0.1f}G/{total:0.1f}G " "format": "{used:0.1f}G/{total:0.1f}G ",
}, },
"cpu": { "cpu": {
"interval": 1, "interval": 1,
"format": "{icons} {usage:>2}% ", "format": "{icon} ",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"], "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
}, },
"custom/cpu_temp": { "custom/cpu_temp": {
"exec": "~/.config/waybar/scripts/builder.sh cpu_temp", "exec": "~/.config/waybar/scripts/builder.sh cpu_temp",
"interval": 5, "interval": 5,
"return-type": "text" "return-type": "text",
}, },
"custom/bluetooth": { "custom/bluetooth": {
"exec": "~/.config/waybar/scripts/builder.sh bluetooth_battery", "exec": "~/.config/waybar/scripts/builder.sh bluetooth_battery",
"interval": 5, "interval": 5,
"return-type": "text"
},
"custom/volume": {
"exec": "~/.config/waybar/scripts/builder.sh volume",
"interval": 1,
"return-type": "text", "return-type": "text",
"signal": 1 },
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
"headphone": "",
"hands-free": "󰂑",
"headset": "󰂑",
"phone": "",
"phone-muted": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"scroll-step": 1,
"on-click": "pavucontrol",
}, },
"custom/pomodoro": { "custom/pomodoro": {
"exec": "~/.config/waybar/scripts/builder.sh pomodoro", "exec": "~/.config/waybar/scripts/builder.sh pomodoro",
"interval": 1, "interval": 1,
"return-type": "text", "return-type": "text",
"signal": 2 "signal": 2,
"on-click": "pomodoro toggle",
}, },
"custom/language": { "custom/language": {
"exec": "~/.config/waybar/scripts/builder.sh language", "exec": "~/.config/waybar/scripts/builder.sh language",
"return-type": "text", "return-type": "text",
"on-click": "swaymsg input type:keyboard xkb_switch_layout next", "on-click": "swaymsg input type:keyboard xkb_switch_layout next",
"signal": 3 "signal": 3,
}, },
"custom/userhost": { "custom/userhost": {
"exec": "~/.config/waybar/scripts/builder.sh userhost", "exec": "~/.config/waybar/scripts/builder.sh userhost",
@ -94,12 +108,12 @@
"custom/battery": { "custom/battery": {
"exec": "~/.config/waybar/scripts/builder.sh battery", "exec": "~/.config/waybar/scripts/builder.sh battery",
"interval": 30, "interval": 30,
"return-type": "text" "return-type": "text",
}, },
"custom/time": { "custom/time": {
"exec": "~/.config/waybar/scripts/builder.sh time", "exec": "~/.config/waybar/scripts/builder.sh time",
"interval": 30, "interval": 30,
"return-type": "text" "return-type": "text",
}, },
"custom/power": { "custom/power": {
"format" : "⏻", "format" : "⏻",

View File

@ -38,7 +38,7 @@ window#waybar {
#cpu, #cpu,
#custom-cpu_temp, #custom-cpu_temp,
#custom-bluetooth, #custom-bluetooth,
#custom-volume, #pulseaudio,
#custom-pomodoro, #custom-pomodoro,
#custom-language, #custom-language,
#custom-userhost, #custom-userhost,
@ -52,7 +52,7 @@ window#waybar {
color: #64B5F6; color: #64B5F6;
} }
#custom-volume { #pulseaudio {
color: #81C784; color: #81C784;
} }