Skip to content

Commit

Permalink
graphical/wms/sway: update window rules
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jul 17, 2024
1 parent 4f0689a commit f7359c0
Showing 1 changed file with 23 additions and 31 deletions.
54 changes: 23 additions & 31 deletions modules/home/programs/graphical/wms/sway/windowrules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ in
# $float floating enable; border pixel 1; shadows enable
# }

# TODO: use sway's app_id for wayland and class for xwayland
# use xlsclients to check which are x11
assigns = {
"1" = [
{ title = "^(.*(Twitch|TNTdrama|YouTube|Bally Sports|Video Entertainment|Plex)).*(Firefox).*$"; }
Expand All @@ -32,49 +34,38 @@ in
# { title = "^(.*(hidden tabs - Workona)).*(Firefox).*$"; }
];
"3" = [
{ class = "^Code$"; }
{ class = "^neovide$"; }
{ class = "^GitHub Desktop$"; }
{ class = "^GitKraken$"; }
{ app_id = "^Code$"; }
{ app_id = "^neovide$"; }
{ app_id = "^GitHub Desktop$"; }
{ app_id = "^GitKraken$"; }
];
"4" = [
{ class = "^Steam|steam$"; }
{
class = "^Steam|steam$";
title = "^Steam|steam$";
}
{ class = "[Ss]team$"; }
{ title = "[Ss]team$"; }
{ class = "^gamescope|steam_app.*$"; }
{ class = "^heroic$"; }
{ class = "^lutris$"; }
{ class = ".*(cemu|yuzu|Ryujinx|emulationstation|retroarch).*"; }
{ app_id = "^heroic$"; }
{ app_id = "^lutris$"; }
{ app_id = ".*(cemu|yuzu|Ryujinx|emulationstation|retroarch).*"; }
{ title = ".*(cemu|yuzu|Ryujinx|emulationstation|retroarch).*"; }
];
"5" = [
{ class = "^Slack$"; }
{ class = "^Caprine$"; }
{ class = "^org.telegram.desktop$"; }
{ class = "^discord$"; }
{ class = "^zoom$"; }
{ class = "^Element$"; }
{ class = "^teams-for-linux$"; }
{ app_id = "^Slack$"; }
{ class = "[Cc]aprine$"; }
{ app_id = "^org.telegram.desktop$"; }
{ app_id = "^discord$"; }
# { class = "^zoom$"; }
{ app_id = "^Element$"; }
{ app_id = "^teams-for-linux$"; }
];
"6" = [
{ class = "^thunderbird$"; }
{ class = "^Mailspring$"; }
{ app_id = "^thunderbird$"; }
# { class = "^Mailspring$"; }
];
"7" = [
{ class = "^mpv|vlc|mpdevil$"; }
{ class = "^Spotify$"; }
{ app_id = "^mpv|vlc|VLC|mpdevil$"; }
{ app_id = "^Spotify$"; }
{ title = "^Spotify$"; }
{ title = "^Spotify Free$"; }
{
class = "^Spotify$";
floating = true;
}
{
class = "^Spotify Free$";
floating = true;
}
{ class = "^elisa$"; }
];
"8" = [
Expand Down Expand Up @@ -106,6 +97,7 @@ in
{ title = "^(floatterm)$"; }
];

# TODO: convert rules
# # Floating terminal
# [title="floatterm"] $float; resize set 1100 600; move position center; animation none
#
Expand Down

0 comments on commit f7359c0

Please sign in to comment.