From 38e205837699bc95649e44ba90aee0a3d890e50e Mon Sep 17 00:00:00 2001 From: askiiart Date: Thu, 11 Jan 2024 17:28:14 -0600 Subject: [PATCH] Add sway fixes --- sway/config.d/misc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/sway/config.d/misc b/sway/config.d/misc index fa97771..00c3880 100644 --- a/sway/config.d/misc +++ b/sway/config.d/misc @@ -4,3 +4,32 @@ exec wl-paste -t text --watch clipman store --no-persist # Add screenshot and color picker bindsym Print exec grim bindsym Mod1+Print exec "slurp -p | xargs -I % grim -g % -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- | tail --lines 1 | xargs -I % zenity --info --text=% --title='Color picker'" + +# gentoo wiki "More reasonable floating windows" +for_window [window_role = "pop-up"] floating enable +for_window [window_role = "bubble"] floating enable +for_window [window_role = "dialog"] floating enable +for_window [window_type = "dialog"] floating enable +for_window [window_role = "task_dialog"] floating enable +for_window [window_type = "menu"] floating enable +for_window [app_id = "floating"] floating enable +for_window [app_id = "floating_update"] floating enable, resize set width 1000px height 600px +for_window [class = "(?i)pinentry"] floating enable +for_window [title = "Administrator privileges required"] floating enable + +# firefox floating windows +for_window [title = "About Mozilla Firefox"] floating enable +for_window [window_role = "About"] floating enable +for_window [app_id="firefox" title="Library"] floating enable, border pixel 1, sticky enable + +# steam floating windows +for_window [class="^Steam$" title="^Friends$"] floating enable +for_window [class="^Steam$" title="Steam - News"] floating enable +for_window [class="^Steam$" title=".* - Chat"] floating enable +for_window [class="^Steam$" title="^Settings$"] floating enable +for_window [class="^Steam$" title=".* - event started"] floating enable +for_window [class="^Steam$" title=".* CD key"] floating enable +for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable +for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable +for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable +for_window [title="^Steam Keyboard$"] floating enable