From f25b6a3294afd6a4c7db2293f3760df2e1a674e4 Mon Sep 17 00:00:00 2001 From: Alex van de Sandt Date: Wed, 13 May 2026 16:02:50 -0500 Subject: [PATCH] Add dedicated hyprland workspaces for steam and discord --- desktop/hyprland.nix | 14 ++++++++++++++ desktop/waybar/default.nix | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/desktop/hyprland.nix b/desktop/hyprland.nix index efce2c9..36f8e12 100644 --- a/desktop/hyprland.nix +++ b/desktop/hyprland.nix @@ -180,6 +180,10 @@ "$mainMod SHIFT, 9, movetoworkspace, 9" "$mainMod SHIFT, 0, movetoworkspace, 10" + # Switch to app-specific workspaces + "$mainMod SHIFT, D, workspace, discord" + "$mainMod SHIFT, S, workspace, steam" + # Scroll through existing workspaces with mainMod + scroll "$mainMod, mouse_up, workspace, e+1" "$mainMod, mouse_down, workspace, e-1" @@ -225,6 +229,16 @@ "match:pin" = false; no_focus = true; } + { + name = "discord"; + "match:class" = "discord"; + workspace = "name:discord"; + } + { + name = "steam"; + "match:class" = "steam"; + workspace = "name:steam"; + } ]; }; diff --git a/desktop/waybar/default.nix b/desktop/waybar/default.nix index af2f383..9d5e0dd 100644 --- a/desktop/waybar/default.nix +++ b/desktop/waybar/default.nix @@ -29,7 +29,7 @@ "hyprland/window" = { rewrite = { "(.*) — Mozilla Firefox" = "🌎 $1"; - "(.*) - Discord" = "📱 $1"; + "(.*) - Discord" = "💬 $1"; }; separate-outputs = true; }; -- 2.51.2