summaryrefslogtreecommitdiff
path: root/.local/bin/makewall
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-08-08 21:07:31 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-08-08 21:07:31 -0400
commit3a4ed65e66a20b9e15e93f4f73cf8496b493c633 (patch)
tree7727e660ad50c5771abe5ea44e69d60bfd4e681c /.local/bin/makewall
parent22f84522b2c0a50a38de3323fcf7edf9fa702723 (diff)
Massive step towards wayland migration
Diffstat (limited to '.local/bin/makewall')
-rwxr-xr-x.local/bin/makewall7
1 files changed, 3 insertions, 4 deletions
diff --git a/.local/bin/makewall b/.local/bin/makewall
index 9edd3c2..991fa11 100755
--- a/.local/bin/makewall
+++ b/.local/bin/makewall
@@ -1,12 +1,11 @@
#!/bin/sh
-# NOTE: (for wayland migration)
-# wlr-randr --json | jq -r '.[] | select(.enabled) | .name'
-
wallDir="$XDG_CONFIG_HOME/wallpapers"
+# Reset any existing wallpapers
+killall swaybg
+
# Acquire the list of connected displays
-# displays=$(xrandr | grep " connected" | sed 's/^\([a-Z,0-9,-]*\).*/\1/')
displays="$(wlr-randr --json | jq -r '.[] | select(.enabled) | .name')"
echo "$displays"