about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-03-10 15:13:01 +0900
committersefidel <contact@sefidel.net>2023-03-10 15:13:01 +0900
commit06e06a080bb0990db09b70d8337a206800f7ad18 (patch)
tree1975ee0b8130a2c30fc84eda247c23c0facfeb56
parent8647eadecd09e3742b8e3c067559e1d0e35ca757 (diff)
downloadnixrc-06e06a080bb0990db09b70d8337a206800f7ad18.tar.gz
nixrc-06e06a080bb0990db09b70d8337a206800f7ad18.zip
feat(home/base): waybar: add idle inhibitor
-rw-r--r--home/profiles/base/config/waybar/settings.nix6
-rw-r--r--home/profiles/base/config/waybar/style.nix1
2 files changed, 6 insertions, 1 deletions
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 = "<span foreground='#${color6}'>PWR</span> {power}Wh";
   };
 
+  "idle_inhibitor" = {
+    format = "<span foreground='#${color6}'>CAFFEINE</span> {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,