aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2023-08-01 23:17:54 +0200
committerbozo.kopic <bozo@kopic.xyz>2023-08-01 23:17:54 +0200
commit670f643461f90874c0f7601ac3392a5a7df799d6 (patch)
tree5be734abe01dd82eb503ec663b23ca3fdaf893fc
parent4b04e9bd7549b3639ed29a9684017ecbf8e7abfb (diff)
.
-rwxr-xr-xkanshi/dual.sh16
-rwxr-xr-xkanshi/single.sh10
-rwxr-xr-xkanshi/work.sh24
-rwxr-xr-xsway/run-sway.sh4
4 files changed, 27 insertions, 27 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
diff --git a/kanshi/single.sh b/kanshi/single.sh
index 238c995..f126662 100755
--- a/kanshi/single.sh
+++ b/kanshi/single.sh
@@ -2,12 +2,12 @@
display=eDP-1
-swaymsg reload
+swaymsg -q reload
-swaymsg output $display pos 0 0 \
- res 1920x1080 \
- bg ~/.pictures/bg1.jpg stretch
+swaymsg -q output $display pos 0 0 \
+ res 1920x1080 \
+ bg ~/.pictures/bg1.jpg stretch
for workspace in 1:1 2:2 3:3 4:4 5:a 6:s 7:d 8:f; do
- swaymsg workspace $workspace output $display
+ swaymsg -q workspace $workspace output $display
done
diff --git a/kanshi/work.sh b/kanshi/work.sh
index 083cecb..b03bca2 100755
--- a/kanshi/work.sh
+++ b/kanshi/work.sh
@@ -6,22 +6,22 @@ display3=DP-6
swaymsg reload
-swaymsg output $display1 pos 0 1440 \
- res 1920x1080 \
- bg ~/.pictures/bg1.jpg stretch
-swaymsg output $display2 pos 0 0 \
- res 2560x1440 \
- bg ~/.pictures/bg1.jpg stretch
-swaymsg output $display3 pos 2560 0 \
- res 2560x1440 \
- bg ~/.pictures/bg2.jpg stretch
+swaymsg -q output $display1 pos 0 1440 \
+ res 1920x1080 \
+ bg ~/.pictures/bg1.jpg stretch
+swaymsg -q output $display2 pos 0 0 \
+ res 2560x1440 \
+ bg ~/.pictures/bg1.jpg stretch
+swaymsg -q output $display3 pos 2560 0 \
+ res 2560x1440 \
+ bg ~/.pictures/bg2.jpg stretch
-swaymsg workspace 1:1 output $display1
+swaymsg -q workspace 1:1 output $display1
for workspace in 2:2 3:3 4:4; do
- swaymsg workspace $workspace output $display2
+ swaymsg -q workspace $workspace output $display2
done
for workspace in 5:a 6:s 7:d 8:f; do
- swaymsg workspace $workspace output $display3
+ swaymsg -q workspace $workspace output $display3
done
diff --git a/sway/run-sway.sh b/sway/run-sway.sh
index 6980cd4..7a48353 100755
--- a/sway/run-sway.sh
+++ b/sway/run-sway.sh
@@ -1,7 +1,7 @@
#!/bin/sh
if pidof dbus-daemon > /dev/null; then
- exec sway > ~/.sway.log
+ exec sway > ~/.sway.log 2>&1
else
- exec dbus-run-session -- sway > ~/.sway.log
+ exec dbus-run-session -- sway > ~/.sway.log 2>&1
fi