summaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/hyprland/.config/waybar')
-rw-r--r--dotfiles/hyprland/.config/waybar/config11
-rw-r--r--dotfiles/hyprland/.config/waybar/style.css6
2 files changed, 17 insertions, 0 deletions
diff --git a/dotfiles/hyprland/.config/waybar/config b/dotfiles/hyprland/.config/waybar/config
index c7cc0a7..5b9879e 100644
--- a/dotfiles/hyprland/.config/waybar/config
+++ b/dotfiles/hyprland/.config/waybar/config
@@ -17,6 +17,7 @@
"group/sysmonitor",
"custom/netspeed",
"wireplumber",
+ "idle_inhibitor",
"tray",
"clock"
],
@@ -122,5 +123,15 @@
"on-click-right": "toggle-scratchpad audio",
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
+ },
+
+ "idle_inhibitor": {
+ "format": "<span size='large'>{icon}</span>",
+ "format-icons": {
+ "activated": "󰅶",
+ "deactivated": "󰾪"
+ },
+ "tooltip-format-activated": "Idle inhibitor: ON (screen will not lock)",
+ "tooltip-format-deactivated": "Idle inhibitor: OFF"
}
}
diff --git a/dotfiles/hyprland/.config/waybar/style.css b/dotfiles/hyprland/.config/waybar/style.css
index 4bd0052..03b11b6 100644
--- a/dotfiles/hyprland/.config/waybar/style.css
+++ b/dotfiles/hyprland/.config/waybar/style.css
@@ -4,6 +4,7 @@
* {
border: none;
border-radius: 0;
+ /* CSS uses pixels, not points (13pt ≈ 17px at 96 DPI) */
font-size: 14px;
min-height: 0;
font-family: "BerkeleyMono Nerd Font", "Berkeley Mono", monospace;
@@ -52,6 +53,7 @@ window#waybar {
#custom-netspeed,
#battery,
#wireplumber,
+#idle_inhibitor,
#tray,
#clock,
#custom-layout,
@@ -63,6 +65,10 @@ window#waybar {
border-radius: 1rem;
}
+#idle_inhibitor {
+ margin-right: 0.8rem;
+}
+
#sysmonitor {
margin: 0.3rem;
background-color: transparent;