From 87aa31ca41c6c7ccc8c59eb5d04e305a162d6870 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 26 Jan 2026 11:55:18 -0600 Subject: feat(waybar): add idle_inhibitor module for caffeine replacement Click to toggle idle inhibition (prevents screen lock/sleep). Added spacing before tray for cleaner appearance. --- dotfiles/hyprland/.config/waybar/config | 11 +++++++++++ dotfiles/hyprland/.config/waybar/style.css | 5 +++++ 2 files changed, 16 insertions(+) (limited to 'dotfiles/hyprland/.config/waybar') 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": "{icon}", + "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 e83f851..03b11b6 100644 --- a/dotfiles/hyprland/.config/waybar/style.css +++ b/dotfiles/hyprland/.config/waybar/style.css @@ -53,6 +53,7 @@ window#waybar { #custom-netspeed, #battery, #wireplumber, +#idle_inhibitor, #tray, #clock, #custom-layout, @@ -64,6 +65,10 @@ window#waybar { border-radius: 1rem; } +#idle_inhibitor { + margin-right: 0.8rem; +} + #sysmonitor { margin: 0.3rem; background-color: transparent; -- cgit v1.2.3