Add power profile and fan strategy waybar modules - scripts/power-profile.sh: waybar module + wofi menu for powerprofilesctl - scripts/fan-profile.sh: waybar module + wofi menu for fw-fanctrl - waybar/config.jsonc: add custom/power-profile and custom/fan-profile modules - waybar/style.css: add padding and class colors for new modules - packages.txt: add power-profiles-daemon and fw-fanctrl - install.sh: symlink new scripts to ~/.local/bin

This commit is contained in:
funman300
2026-04-22 17:27:29 -07:00
parent 0cd43b9e54
commit 54689f9781
6 changed files with 90 additions and 2 deletions
+17 -1
View File
@@ -5,7 +5,23 @@
"modules-left": ["niri/workspaces"],
"modules-center": ["clock"],
"modules-right": ["pulseaudio", "network", "battery", "tray"],
"modules-right": ["custom/power-profile", "custom/fan-profile", "pulseaudio", "network", "battery", "tray"],
"custom/power-profile": {
"exec": "~/.local/bin/power-profile",
"return-type": "json",
"interval": 30,
"signal": 8,
"on-click": "~/.local/bin/power-profile --menu"
},
"custom/fan-profile": {
"exec": "~/.local/bin/fan-profile",
"return-type": "json",
"interval": 5,
"signal": 9,
"on-click": "~/.local/bin/fan-profile --menu"
},
"clock": {
"format": "{:%a %b %d %H:%M}"
+10 -1
View File
@@ -17,10 +17,19 @@ window#waybar {
color: #81a2be;
}
#clock, #battery, #network, #pulseaudio {
#clock, #battery, #network, #pulseaudio,
#custom-power-profile, #custom-fan-profile {
padding: 0 12px;
}
#custom-power-profile.performance {
color: #f0c674;
}
#custom-power-profile.power-saver {
color: #b5bd68;
}
#battery.warning {
color: #f0c674;
}