add steam to sway config
This commit is contained in:
parent
00a602d77a
commit
4926b2aa98
@ -1,4 +1,28 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, lib, config, ... }: {
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
hardware.steam-hardware.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$"; };
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
@ -112,10 +112,10 @@ in {
|
|||||||
command = "border pixel 2px";
|
command = "border pixel 2px";
|
||||||
criteria = { window_role = "popup"; };
|
criteria = { window_role = "popup"; };
|
||||||
}
|
}
|
||||||
{
|
# {
|
||||||
command = "sticky enable";
|
# command = "sticky enable";
|
||||||
criteria = { floating = ""; };
|
# criteria = { floating = ""; };
|
||||||
}
|
# }
|
||||||
{
|
{
|
||||||
command = "move to workspace ";
|
command = "move to workspace ";
|
||||||
criteria = { class = "Spotify"; };
|
criteria = { class = "Spotify"; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user