diff options
| -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; |
