diff --git a/profiles/applications/steam.nix b/profiles/applications/steam.nix index 5dba087..dd6e60a 100644 --- a/profiles/applications/steam.nix +++ b/profiles/applications/steam.nix @@ -1,4 +1,28 @@ -{ pkgs, ... }: { +{ pkgs, lib, config, ... }: { programs.steam.enable = true; hardware.steam-hardware.enable = true; + + startupApplications = [ + "${pkgs.steam}/bin/steam" + ]; + + home-manager.users.alukard.wayland.windowManager.sway.config = { + assigns = { + "0" = [ + { class = "^Steam$"; } + ]; + }; + window.commands = ( + map (title: { command = "floating enable"; criteria = { class = "^Steam$"; inherit title; }; }) + [ + "Steam - News" ".* - Chat" "^Settings$" ".* - event started" ".* CD key" "^Steam - Self Updater$" + "^Screenshot Uploader$" "^Steam Guard - Computer Authorization Required$" + ] + ) ++ [ + { + command = "floating enable"; + criteria = { title = "^Steam Keyboard$"; }; + } + ]; + }; } \ No newline at end of file diff --git a/profiles/workspace/sway/default.nix b/profiles/workspace/sway/default.nix index 192b00b..9b7bfbf 100755 --- a/profiles/workspace/sway/default.nix +++ b/profiles/workspace/sway/default.nix @@ -112,10 +112,10 @@ in { command = "border pixel 2px"; criteria = { window_role = "popup"; }; } - { - command = "sticky enable"; - criteria = { floating = ""; }; - } + # { + # command = "sticky enable"; + # criteria = { floating = ""; }; + # } { command = "move to workspace "; criteria = { class = "Spotify"; };