From 3622c56d88b06f7f30910937e8ad31b711f0149b Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 14 May 2023 09:24:48 -0400 Subject: [PATCH] waybar: Add custom new workspace button This makes it easy to both add a new workspace and launch rofi with one click. --- home.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/home.nix b/home.nix index e2def7a3..154518c9 100644 --- a/home.nix +++ b/home.nix @@ -540,7 +540,7 @@ position = "left"; width = 45; spacing = 8; - modules-left = [ "wlr/workspaces" ]; + modules-left = [ "wlr/workspaces" "custom/new-workspace" ]; modules-center = [ "hyprland/window" ]; modules-right = [ "tray" "wireplumber" "backlight" "battery" "clock" ]; @@ -572,6 +572,10 @@ "format" = "{icon}"; "format-icons" = ["" ""]; }; + "custom/new-workspace" = { + "format" = "+"; + "on-click" = "hyprctl dispatch workspace empty && rofi -show drun"; + }; }; }; style = lib.mkForce '' @@ -632,6 +636,13 @@ font-size: 24px; } + #custom-new-workspace { + font-family: "Font Awesome 6 Free Solid"; + padding-top: 8px; + padding-bottom: 8px; + color: alpha(@base0A, 0.67); + } + #clock { font-size: 18px; font-weight: bold;