summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-08-09 00:29:56 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-08-09 00:29:56 -0400
commitf9a00a7961bc1ea850a21ebe70363da86a6aebdb (patch)
tree33f9ee69b86a167e6bf6f923cbd02f578ea79a2a
parentcc3cbc7b75cbda27acc999893260c14cf6698bd1 (diff)
Trim fat on makewall script
-rwxr-xr-x.local/bin/makewall7
1 files changed, 1 insertions, 6 deletions
diff --git a/.local/bin/makewall b/.local/bin/makewall
index 991fa11..614d030 100755
--- a/.local/bin/makewall
+++ b/.local/bin/makewall
@@ -1,9 +1,6 @@
#!/bin/sh
-wallDir="$XDG_CONFIG_HOME/wallpapers"
-
-# Reset any existing wallpapers
-killall swaybg
+wallDir="${XDG_CONFIG_HOME:-$HOME}/wallpapers"
# Acquire the list of connected displays
displays="$(wlr-randr --json | jq -r '.[] | select(.enabled) | .name')"
@@ -18,11 +15,9 @@ setDisplay() {
case $(ls $wallDir) in
*"$1"*)
wall=$(ls $wallDir | grep "$1" | head -n 1)
- # xwallpaper --output $1 --zoom $wallDir/$wall
;;
*)
wall=$(ls $wallDir | grep "default" | head -n 1)
- # xwallpaper --output $1 --zoom $wallDir/$wall
;;
esac
swaybg --output $1 -m fill --image $wallDir/$wall &