Waybar is visible only on my main Monitor(tune for your setup), added power profiles script + icon, removed battery percentage.

This commit is contained in:
duma97
2025-11-14 23:09:27 +04:00
parent a0c3677ebb
commit 945e503ff3
3 changed files with 63 additions and 9 deletions
+14 -5
View File
@@ -1,10 +1,11 @@
{
"layer": "top",
"position": "top",
"output": "HDMI-A-1",
"reload_style_on_change": true,
"modules-left": ["hyprland/workspaces"],
"modules-center": ["clock"],
"modules-right": ["group/expand","pulseaudio","bluetooth","network","battery"],
"modules-right": ["group/expand","pulseaudio","bluetooth","network","custom/power-profile","battery"],
"hyprland/workspaces": {
"format": "{name}",
@@ -55,10 +56,10 @@
"warning": 30,
"critical": 20
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% 󰂄",
"format-plugged": "{capacity}% 󰂄 ",
"format-alt": "{time} {icon}",
"format": "{icon}",
"format-charging": "󰂄",
"format-plugged": "󰂄",
"tooltip-format": "{capacity}%",
"format-icons": [
"󰁻",
"󰁼",
@@ -68,6 +69,14 @@
"󰁹"
]
},
"custom/power-profile": {
"format": "{}",
"return-type": "json",
"interval": 10,
"exec": "~/hyprduma-config/waybar/scripts/power-profile.sh",
"on-click": "~/hyprduma-config/waybar/scripts/power-profile.sh --cycle && pkill -RTMIN+8 waybar",
"signal": 8
},
"custom/expand": {
"format": "",
"tooltip": false