From 06e06a080bb0990db09b70d8337a206800f7ad18 Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 10 Mar 2023 15:13:01 +0900 Subject: feat(home/base): waybar: add idle inhibitor --- home/profiles/base/config/waybar/settings.nix | 6 +++++- home/profiles/base/config/waybar/style.nix | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'home/profiles/base') diff --git a/home/profiles/base/config/waybar/settings.nix b/home/profiles/base/config/waybar/settings.nix index 07bf8a9..70ae97e 100644 --- a/home/profiles/base/config/waybar/settings.nix +++ b/home/profiles/base/config/waybar/settings.nix @@ -5,7 +5,7 @@ with neotheme.colors; layer = "bottom"; position = "top"; height = 22; - modules-left = [ "pulseaudio" "custom/separator" "cpu" "custom/separator" "memory" ]; + modules-left = [ "pulseaudio" "custom/separator" "cpu" "custom/separator" "memory" "custom/separator" "idle_inhibitor" ]; modules-center = [ "sway/workspaces" ]; modules-right = [ "battery" "custom/separator" "clock" ]; @@ -52,6 +52,10 @@ with neotheme.colors; format-alt = "PWR {power}Wh"; }; + "idle_inhibitor" = { + format = "CAFFEINE {status}"; + }; + "custom/separator" = { format = "|"; interval = "once"; diff --git a/home/profiles/base/config/waybar/style.nix b/home/profiles/base/config/waybar/style.nix index 965e71b..d8714ed 100644 --- a/home/profiles/base/config/waybar/style.nix +++ b/home/profiles/base/config/waybar/style.nix @@ -52,6 +52,7 @@ with neotheme.colors; #battery, #network, #memory, + #idle_inhibitor, #language, #pulseaudio, #tray, -- cgit 1.4.1