diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2023-08-01 23:17:54 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2023-08-01 23:17:54 +0200 |
| commit | 670f643461f90874c0f7601ac3392a5a7df799d6 (patch) | |
| tree | 5be734abe01dd82eb503ec663b23ca3fdaf893fc /kanshi/dual.sh | |
| parent | 4b04e9bd7549b3639ed29a9684017ecbf8e7abfb (diff) | |
.
Diffstat (limited to 'kanshi/dual.sh')
| -rwxr-xr-x | kanshi/dual.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kanshi/dual.sh b/kanshi/dual.sh index c54143e..3e9ee3e 100755 --- a/kanshi/dual.sh +++ b/kanshi/dual.sh @@ -5,18 +5,18 @@ display2=$(swaymsg -t get_outputs -r | jq "map(select(.name != \"$display1\") | .name)[0]" 2> /dev/null | tr -d "\"") -swaymsg reload +swaymsg -q reload -swaymsg output $display1 pos 0 0 \ - res 1920x1080 \ - bg ~/.pictures/bg1.jpg stretch -swaymsg output $display2 pos 1920 0 \ - bg ~/.pictures/bg2.jpg stretch +swaymsg -q output $display1 pos 0 0 \ + res 1920x1080 \ + bg ~/.pictures/bg1.jpg stretch +swaymsg -q output $display2 pos 1920 0 \ + bg ~/.pictures/bg2.jpg stretch for workspace in 1:1 2:2 3:3 4:4; do - swaymsg workspace $workspace output $display1 + swaymsg -q workspace $workspace output $display1 done for workspace in 5:a 6:s 7:d 8:f; do - swaymsg workspace $workspace output $display2 + swaymsg -q workspace $workspace output $display2 done |
