diff --git a/config/niri/waybar.jsonc b/config/niri/waybar.jsonc
index afec8d0..a8c9400 100644
--- a/config/niri/waybar.jsonc
+++ b/config/niri/waybar.jsonc
@@ -13,13 +13,12 @@
"modules-left": ["niri/workspaces", "niri/window"],
"modules-center": ["clock"],
"modules-right": [
- "memory",
- "cpu",
- "tray",
"niri/language",
- "backlight",
- "battery",
+ "tray",
"pulseaudio",
+ "battery",
+ "backlight",
+ "power-profiles-daemon",
"network"
]
}
diff --git a/config/waybar/config b/config/waybar/config
index 14b2397..faeee3e 100644
--- a/config/waybar/config
+++ b/config/waybar/config
@@ -1,4 +1,5 @@
// vim: ft=jsonc
+// NOTE: hyprland config
{
"position": "top",
"layer": "top",
diff --git a/config/waybar/modules/info.json b/config/waybar/modules/info.json
index e8a9ae6..77f800c 100644
--- a/config/waybar/modules/info.json
+++ b/config/waybar/modules/info.json
@@ -6,18 +6,15 @@
"clock": {
"format": " {:%a, %d %b %H:%M}", // replace %I with %H for 24h format
- "tooltip": true,
- "tooltip-format": "{:%Y %B}\n{calendar}",
- "on-click": "morgen"
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}%",
"format-plugged": "{capacity}% ",
- "format-alt": "{icon} {time}",
"format-icons": ["", "", "", "", ""],
- "tooltip": false,
+ "tooltip": true,
+ "tooltip-format": "Left {time} \nHealth: {health}",
"states": {
"good": 95,
"warning": 30,
@@ -25,6 +22,18 @@
}
},
+ "power-profiles-daemon": {
+ "format": "{icon}",
+ "tooltip-format": "{profile}",
+ "tooltip": true,
+ "format-icons": {
+ "default": "",
+ "performance": "",
+ "balanced": "",
+ "power-saver": ""
+ }
+ },
+
"memory": {
"format": " {used}",
"interval": 5
diff --git a/config/waybar/style.css b/config/waybar/style.css
index 43457c1..58c50aa 100644
--- a/config/waybar/style.css
+++ b/config/waybar/style.css
@@ -24,7 +24,12 @@ window#waybar {
color: @fg-color;
}
-#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #pulseaudio, #network, #backlight {
+tooltip {
+ background: @bg-color;
+ border: 1px solid @bg-darker-color;
+}
+
+#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight {
background-color: @bg-darker-color;
color: @fg-color;
border-radius: 16px;
@@ -55,7 +60,12 @@ window#waybar {
color: black;
}
-#clock { font-weight: bold; }
#battery.charging { color: @green; }
#battery.warning:not(.charging) { color: @red; }
+
+#clock { font-weight: bold; }
#pulseaudio.muted { color: @red; }
+
+#power-profiles-daemon.performance { color: @blue; }
+#power-profiles-daemon.balanced { color: @green; }
+#power-profiles-daemon.power-saver { color: @red; }