summary refs log tree commit diff
path: root/.config/sway/auto.conf
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-07-29 23:51:14 +0200
committerRobert Günzler <r@gnzler.io>2021-07-29 23:51:14 +0200
commit170c5385bc51a94fe1680231e0718dcb735c694f (patch)
treed534f8fca997341da31e25906d5654900b94e16a /.config/sway/auto.conf
parent7fc4089ea413801912ccdd0b3bf8697fe86372ff (diff)
sway: update config
Diffstat (limited to '.config/sway/auto.conf')
-rw-r--r--.config/sway/auto.conf24
1 files changed, 17 insertions, 7 deletions
diff --git a/.config/sway/auto.conf b/.config/sway/auto.conf
index ca7b85a..df65c74 100644
--- a/.config/sway/auto.conf
+++ b/.config/sway/auto.conf
@@ -1,14 +1,22 @@
 # vim: ft=i3config
 # NOTE: never use assign, it crashes sway for some reason...
 
+# for_window [floating] border csd
+
+for_window [app_id="mpv"] max_render_time off
+for_window [app_id="foot"] max_render_time 4
+for_window [app_id="firefox.*"] max_render_time 6
+
 for_window [app_id="mpv"] floating enable; inhibit_idle open
 # for_window [app_id="mpv" title=".* - mvi$"] border pixel $bpix;
+
 for_window [app_id="imv"] floating enable; inhibit_idle open
 for_window [app_id="^__floating-.*"] floating enable
 for_window [class="pinentry"] floating enable; border normal
 
-for_window [class="zoom" title="Settings"] floating enable
-for_window [class="zoom" title="Zoom - Converting.*"] floating enable
+# for_window [class="zoom" title="Settings"] floating enable
+# for_window [class="zoom" title="Zoom - Converting.*"] floating enable
+for_window [class="zoom"] floating enable
 
 for_window [title="tridactyledit"] floating enable
 for_window [app_id="launcher"] floating enable
@@ -23,8 +31,12 @@ for_window [app_id="firefox.*" title="^File Upload$"] floating enable
 for_window [app_id="firefox.*" title="^Save As$"] floating enable
 # exec centercon -w .6
 for_window [app_id="firefox.*" title="^Open Firefox in Troubleshoot Mode?$"] floating enable
+for_window [app_id="multimc" title="Folder$"] floating enable
 
-for_window [app_id="Telegram" title="^Choose Files$"] floating enable; exec centercon -w .6
+for_window [app_id="telegramdesktop" title="^Choose Files$"] floating enable; exec centercon -w .6
+for_window [app_id="telegramdesktop" title="^Media viewer$"] floating enable
+for_window [app_id="Telegram" floating] exec centercon -w .6
+for_window [app_id="telegramdesktop" floating] exec centercon -w .6
 for_window [app_id="obs" title="^Local File$"] floating enable; exec centercon -w .6
 
 # Tag windows
@@ -41,10 +53,8 @@ for_window [con_mark="browser"] inhibit_idle fullscreen
 # Move around
 
 set $outputSide eDP-1
-set $wsWork 3
-set $wsMail 2
-for_window [con_mark="work"] move workspace $wsWork
-for_window [con_mark="mail"] move workspace $wsMail, move workspace to output $outputSide, layout tabbed
+for_window [con_mark="work"] move workspace 3
+for_window [con_mark="mail"] move workspace 2, move workspace to output $outputSide, layout tabbed
 
 for_window [class="Spotify"] move workspace $wsMusic, move workspace to output $outputSide
 for_window [class="osu!"] move workspace $wsGame, layout tabbed, exec osu-mode on