aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdotfiles/.local/bin/setbg7
-rwxr-xr-xdotfiles/.local/bin/updisplay8
2 files changed, 9 insertions, 6 deletions
diff --git a/dotfiles/.local/bin/setbg b/dotfiles/.local/bin/setbg
index 255f503..9daca99 100755
--- a/dotfiles/.local/bin/setbg
+++ b/dotfiles/.local/bin/setbg
@@ -5,9 +5,4 @@ mon="1"
cp $1 "$HOME/.config/wall$mon.png"
-IFS=$'\n'
-outputcf=$(grep '^output .* background.*$' ~/.config/sway/$(uname -n))
-
-for line in $outputcf; do
- swaymsg $line
-done
+updisplay
diff --git a/dotfiles/.local/bin/updisplay b/dotfiles/.local/bin/updisplay
new file mode 100755
index 0000000..e9a7f69
--- /dev/null
+++ b/dotfiles/.local/bin/updisplay
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+IFS=$'\n'
+outputcf=$(grep '^output .*$' ~/.config/sway/$(uname -n))
+
+for line in $outputcf; do
+ swaymsg $line
+done