From 27c471addd8e226d1ebe925a9198422a418e3872 Mon Sep 17 00:00:00 2001 From: kenji Date: Sat, 27 Dec 2025 20:36:07 -0600 Subject: [PATCH] feat: steam rules only launch on steam T --- apps/hyprland/hypr/binds.nix | 1 + apps/hyprland/hypr/exec.nix | 2 ++ apps/hyprland/hypr/rules.nix | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/apps/hyprland/hypr/binds.nix b/apps/hyprland/hypr/binds.nix index 1dd3588..8973583 100644 --- a/apps/hyprland/hypr/binds.nix +++ b/apps/hyprland/hypr/binds.nix @@ -44,6 +44,7 @@ # apps "SUPER, W, Open Browser, exec, uwsm app -- firefox" # FIXME: must be xdg-open "SUPER, SPACE, Open App Launcher, exec, nc -U $XDG_RUNTIME_DIR/walker/walker.sock" + "SUPER, T, Toggle Steam, togglespecialworkspace, steam" # [Workspaces] Toggle between most recent workspaces "SUPER, Tab, Cycle workspaces, workspace, previous" diff --git a/apps/hyprland/hypr/exec.nix b/apps/hyprland/hypr/exec.nix index a9eff55..44592af 100644 --- a/apps/hyprland/hypr/exec.nix +++ b/apps/hyprland/hypr/exec.nix @@ -22,6 +22,8 @@ "sh -c 'sleep 2; hyprctl dispatch workspace 1'" "[workspace 1] uwsm app -- xdg-terminal-exec" + + "[workspace special:steam silent] uwsm app -- steam" ]; }; } diff --git a/apps/hyprland/hypr/rules.nix b/apps/hyprland/hypr/rules.nix index ae98990..2827b01 100644 --- a/apps/hyprland/hypr/rules.nix +++ b/apps/hyprland/hypr/rules.nix @@ -18,6 +18,11 @@ # Prevent Firefox and Terminal from stealing focus on launch "suppressevent activate, workspace:20" "noinitialfocus, workspace:20" + + # --- STEAM RULES --- + "workspace special:steam silent, class:^(steam)$" + "noinitialfocus, class:^(steam)$" + "suppressevent activate, class:^(steam)$" ]; }; }