summaryrefslogtreecommitdiff
path: root/.local/bin/makewall
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-20 03:41:29 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-20 03:41:29 -0500
commitd49c79933e7b85a24238f6f373261de1d71d7072 (patch)
tree677bebe3b68c1c31125be064ba1a746f44c7a52f /.local/bin/makewall
parent06185bde8c8beadecab629eaff51835244ff748a (diff)
Wallpapers from lf + fix shortcutgen
Diffstat (limited to '.local/bin/makewall')
-rwxr-xr-x.local/bin/makewall21
1 files changed, 11 insertions, 10 deletions
diff --git a/.local/bin/makewall b/.local/bin/makewall
index f0fc854..ad8fc02 100755
--- a/.local/bin/makewall
+++ b/.local/bin/makewall
@@ -11,18 +11,19 @@ displays=$(xrandr | grep " connected" | sed 's/^\([a-Z,0-9,-]*\).*/\1/')
# Otherwise, set the wallpaper to the default wallpaper
# (default.png or default.jpg)
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
+ 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
}
# Set the wallpaper for each display
for display in $displays; do
- setDisplay $display
+ setDisplay $display
done
-