add steam to sway config

This commit is contained in:
Dmitriy Kholkin 2022-01-29 00:55:10 +03:00
parent 00a602d77a
commit 4926b2aa98
2 changed files with 29 additions and 5 deletions

View File

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

View File

@ -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"; };