aboutsummaryrefslogtreecommitdiff
path: root/modules/user/desktop/apps/waybar/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/desktop/apps/waybar/default.nix')
-rw-r--r--modules/user/desktop/apps/waybar/default.nix42
1 files changed, 41 insertions, 1 deletions
diff --git a/modules/user/desktop/apps/waybar/default.nix b/modules/user/desktop/apps/waybar/default.nix
index 053859c..127954a 100644
--- a/modules/user/desktop/apps/waybar/default.nix
+++ b/modules/user/desktop/apps/waybar/default.nix
@@ -7,17 +7,50 @@
modules-left = [ "sway/workspaces" ];
modules-center = [ "clock" ];
modules-right = [
+ "wireplumber"
+ "battery"
+ "backlight"
"sway/language"
"tray"
];
+ backlight = {
+ format = "{icon}";
+ format-icons = [ "" "󰖨" ];
+ };
+
+ battery = {
+ format = "{icon}";
+ format-critical = "{icon} {capacity}%";
+ format-icons = {
+ good = [ "" ];
+ okay = [ "" ];
+ mediocre = [ "" ];
+ low = [ "" ];
+ critical = [ "" ];
+ };
+
+ format-low = "{icon} {capacity}%";
+ format-time = "{H}h{m}m";
+ states = {
+ good = 85;
+ okay = 75;
+ mediocre = 50;
+ low = 25;
+ critical = 10;
+ };
+
+ tooltip-format = "{timeTo} ({power}W)";
+ tooltip-format-critical = "please. charge me.";
+ };
+
clock = {
format = "{:%A, %b %d %Y | %H:%M}";
};
"sway/language" = {
on-click = "swaymsg input type:keyboard xkb_switch_layout next";
- tooltip-format = " {long}";
+ tooltip-format = "{long}";
};
"sway/workspaces" = {
@@ -36,6 +69,13 @@
"9" = "IX";
};
};
+
+ wireplumber = {
+ format = "{icon}";
+ format-icons = [ "󰕿" "󰖀" "󰕾" ];
+ format-muted = "󰝟";
+ tooltip-format = "{node_name} ({volume}%)";
+ };
};
style = builtins.readFile ./style.css;