From 2b37856369d252ec7822deea3d467cad6dce761b Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 9 May 2024 13:59:53 -0400 Subject: [PATCH] sway/waybar: add scratchpad module to panel --- homeManagerModules/apps/waybar/default.nix | 14 +++++++++++++- homeManagerModules/desktop/sway/default.nix | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/homeManagerModules/apps/waybar/default.nix b/homeManagerModules/apps/waybar/default.nix index e32d677a..739448e6 100644 --- a/homeManagerModules/apps/waybar/default.nix +++ b/homeManagerModules/apps/waybar/default.nix @@ -84,11 +84,16 @@ #workspaces, #mode, #submap, + #scratchpad, #tray, #clock, #hardware { border-radius: 10; - background: rgba ${if config.alyraffauf.desktop.theme.colors.preferDark then "(35, 38, 52, 0.8);" else "(220, 224, 232, 0.8);"} + background: rgba ${ + if config.alyraffauf.desktop.theme.colors.preferDark + then "(35, 38, 52, 0.8);" + else "(220, 224, 232, 0.8);" + } margin: 5px 10px 0px 10px; padding: 0px 10px 0px 10px; } @@ -151,6 +156,13 @@ "sway/window" = { "max-length" = 100; }; + "sway/scratchpad" = { + "format" = "{icon} {count}"; + "show-empty" = false; + "format-icons" = ["" ""]; + "tooltip" = true; + "tooltip-format" = "{app}: {title}"; + }; "river/window" = { "max-length" = 100; }; diff --git a/homeManagerModules/desktop/sway/default.nix b/homeManagerModules/desktop/sway/default.nix index 208d64a8..a2689df8 100644 --- a/homeManagerModules/desktop/sway/default.nix +++ b/homeManagerModules/desktop/sway/default.nix @@ -39,7 +39,7 @@ programs.waybar = { settings = { mainBar = { - modules-left = ["sway/workspaces" "sway/mode"]; + modules-left = ["sway/workspaces" "sway/scratchpad" "sway/mode" ]; }; }; };