diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-26 11:55:18 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-26 11:55:18 -0600 |
| commit | 0a11afb2811e252ccff3dce486560eb6d73cc641 (patch) | |
| tree | c121a73fa23ad90963fd611513cb9bd81b9a3e11 | |
| parent | 3bf4b5df874f4002dd09776be06308bfc837a3a3 (diff) | |
| download | archsetup-0a11afb2811e252ccff3dce486560eb6d73cc641.tar.gz archsetup-0a11afb2811e252ccff3dce486560eb6d73cc641.zip | |
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.
| -rw-r--r-- | dotfiles/hyprland/.config/waybar/config | 11 | ||||
| -rw-r--r-- | dotfiles/hyprland/.config/waybar/style.css | 5 |
2 files changed, 16 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 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; |
