From cf7d1b50f880222dcdbedcea395674660ec3575d Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 5 Nov 2023 16:52:23 -0500 Subject: [PATCH] add some polybar restart utils with mouse for when keyd dies or power scripts are failing --- modules/nixos/graphical/polybar.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/nixos/graphical/polybar.nix b/modules/nixos/graphical/polybar.nix index 5b70bab..7981428 100644 --- a/modules/nixos/graphical/polybar.nix +++ b/modules/nixos/graphical/polybar.nix @@ -36,7 +36,7 @@ module-margin = 1; modules-left = "i3"; modules-center = "xwindow"; - modules-right = "mailcount network pulseaudio date power"; + modules-right = "mailcount network pulseaudio date keyboard power"; cursor-click = "pointer"; cursor-scroll = "ns-resize"; enable-ipc = true; @@ -200,10 +200,17 @@ label-foreground = config.theme.colors.base0A; # format-background = colors.background; }; + "module/keyboard" = { + type = "custom/text"; + content = "󰌌"; + click-left = "doas systemctl restart keyd"; + content-foreground = config.theme.colors.base04; + }; "module/power" = { type = "custom/text"; content = "  "; click-left = config.powerCommand; + click-right = "polybar-msg cmd restart"; content-foreground = config.theme.colors.base04; }; "settings" = {