diff --git a/roles/sway/files/kanshi/by_host/osz/config b/roles/sway/files/kanshi/by_host/osz/config index 3dd2b5c..e0fb358 100644 --- a/roles/sway/files/kanshi/by_host/osz/config +++ b/roles/sway/files/kanshi/by_host/osz/config @@ -1,7 +1,12 @@ profile { output "ONKYO Corporation Sound System 0x00000000" disable output "Dell Inc. DELL P2417H CW6Y77AG05NB" position 0,1080 mode 1920x1080 - output "Chimei Innolux Corporation 0x14D3 0x00000000" position 1920,1560 mode 1920x1080 scale 1.8 + output "Chimei Innolux Corporation 0x14D3 0x00000000" position 1920,1560 mode 1920x1080 scale 1.6 +} + +profile { + output "Dell Inc. DELL P2417H CW6Y77AG05NB" position 0,1080 mode 1920x1080 + output "Chimei Innolux Corporation 0x14D3 0x00000000" position 1920,1560 mode 1920x1080 scale 1.6 } profile { diff --git a/roles/sway/templates/by_host/osz/config.j2 b/roles/sway/templates/by_host/osz/config.j2 index 7f3e5c1..8342159 100644 --- a/roles/sway/templates/by_host/osz/config.j2 +++ b/roles/sway/templates/by_host/osz/config.j2 @@ -12,7 +12,8 @@ set $proj "ONKYO Corporation Sound System 0x00000000" bindsym $mod+p output "ONKYO Corporation Sound System 0x00000000" toggle # start kanshi -exec --no-startup-id swaymsg 'exec kanshi &' +exec_always --no-startup-id swaymsg 'pkill kanshi' +exec_always --no-startup-id swaymsg 'exec kanshi &' # dpms output * dpms on