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)$" ]; }; }