diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2023-05-03 23:18:40 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2023-05-03 23:18:40 +0200 |
| commit | 2a3dda49dfd0faae1cbe9dbea14bf0d40623bd6a (patch) | |
| tree | 119772e8479f59f7fae7f26233013b9d6f516eb3 /kanshi/dual.sh | |
| parent | 7f6d37650d228f4765fc8b9a0bde2feaaaee4927 (diff) | |
.
Diffstat (limited to 'kanshi/dual.sh')
| -rwxr-xr-x | kanshi/dual.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kanshi/dual.sh b/kanshi/dual.sh new file mode 100755 index 0000000..c54143e --- /dev/null +++ b/kanshi/dual.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +display1=eDP-1 +display2=$(swaymsg -t get_outputs -r | + jq "map(select(.name != \"$display1\") | .name)[0]" 2> /dev/null | + tr -d "\"") + +swaymsg 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 + +for workspace in 1:1 2:2 3:3 4:4; do + swaymsg workspace $workspace output $display1 +done + +for workspace in 5:a 6:s 7:d 8:f; do + swaymsg workspace $workspace output $display2 +done |
