Add powerprofile toggle and indicator

This commit is contained in:
David Heinemeier Hansson
2025-06-16 12:28:26 +02:00
parent 0e0100d8df
commit a0ee41001c
2 changed files with 15 additions and 3 deletions

View File

@ -12,7 +12,8 @@
"modules-right": [
"network",
"cpu",
"battery"
"battery",
"power-profiles-daemon"
],
"hyprland/workspaces": {
"on-click": "activate",
@ -52,7 +53,7 @@
"network": {
"format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"],
"format-wifi" : "{bandwidthDownBytes} {icon}",
"format-ethernet" : "{bandwidthDownBytes} {icon}",
"format-ethernet" : "{bandwidthDownBytes} 󰀂",
"format-disconnected" : "󰖪",
"tooltip-format-wifi": "{icon} {essid}\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",
"tooltip-format-ethernet": "{icon} {ifname}\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",
@ -81,5 +82,15 @@
"warning": 20,
"critical": 10
}
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}",
"tooltip": true,
"format-icons": {
"power-saver": "󰡳",
"balanced": "󰊚",
"performance": "󰡴"
}
}
}

View File

@ -19,6 +19,7 @@
}
#cpu,
#power-profiles-daemon,
#battery,
#network,
#clock {
@ -29,7 +30,7 @@
padding-left: 10px;
}
#battery {
#power-profiles-daemon {
margin-right: 5px;
}