From 747cde3573909cd94ffe8e807ef98ed202479493 Mon Sep 17 00:00:00 2001 From: pancakes Date: Sat, 30 Mar 2024 22:22:22 +1000 Subject: [PATCH] Add idle inhibitor --- waybar/.config/waybar/config | 8 ++++++++ waybar/.config/waybar/style.css | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/waybar/.config/waybar/config b/waybar/.config/waybar/config index cddb9c4..37639b9 100644 --- a/waybar/.config/waybar/config +++ b/waybar/.config/waybar/config @@ -9,6 +9,7 @@ "modules-right": [ "custom/micmute", "gamemode", + "idle_inhibitor", "network", "bluetooth", "wireplumber", @@ -25,6 +26,13 @@ "exec": "~/.config/waybar/scripts/micmute.sh", "interval": 2 }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, "clock": { "tooltip-format": "{:%Y-%m-%d}", "format-alt": "{:%Y-%m-%d}" diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index ee60eb4..40247b7 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -102,6 +102,10 @@ label:focus { border: 2px solid #414868; } +#idle_inhibitor.activated { + box-shadow: inset 0 -2px #e0af68; +} + #backlight {} #network {}