Make i3 config work on Sway
This may not be a backward compatible change, hopefully it won't matter. We add the directive to handle floating windows via app_id as well as window class, since Wayland doesn't use window classes, and we add a directive to let Sway turn off mouse acceleration.
This commit is contained in:
parent
d383663609
commit
7da8259dcd
1 changed files with 14 additions and 4 deletions
|
@ -201,8 +201,18 @@ hide_edge_borders both
|
||||||
workspace_auto_back_and_forth yes
|
workspace_auto_back_and_forth yes
|
||||||
|
|
||||||
# Make windows created with a special floating class float
|
# Make windows created with a special floating class float
|
||||||
for_window [instance=".?__user_requests_float"] floating enable, border 1pixel, resize set 640 360, sticky toggle
|
# For the moment I'm expressing directives for both i3 and sway here; i3 may fail on these
|
||||||
|
for_window [instance=".*__user_requests_float"] floating enable, sticky enable, border pixel 1, resize set 800 600
|
||||||
# Make a floating mpv window not steal focus on open
|
for_window [app_id=".*__user_requests_float"] floating enable, sticky enable, border pixel 1, resize set 800 600
|
||||||
# This prevents my twitch autotuner from constantly yanking focus
|
|
||||||
no_focus [instance="mpv__user_requests_float"]
|
no_focus [instance="mpv__user_requests_float"]
|
||||||
|
no_focus [app_id="mpv__user_requests_float"]
|
||||||
|
|
||||||
|
# Make floating mpv specifically go in the corner
|
||||||
|
for_window [instance="mpv__user_requests_float"] resize set 640 360, move position 1280 20
|
||||||
|
for_window [app_id="mpv__user_requests_float"] resize set 640 360, move position 1280 20
|
||||||
|
|
||||||
|
# Set mouse acceleration to 0 in Sway
|
||||||
|
input "virtual pointer" {
|
||||||
|
accel_profile "flat"
|
||||||
|
pointer_accel 0.0
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue