diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-20 03:41:29 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-20 03:41:29 -0500 |
commit | d49c79933e7b85a24238f6f373261de1d71d7072 (patch) | |
tree | 677bebe3b68c1c31125be064ba1a746f44c7a52f /.local/bin/makewall | |
parent | 06185bde8c8beadecab629eaff51835244ff748a (diff) |
Wallpapers from lf + fix shortcutgen
Diffstat (limited to '.local/bin/makewall')
-rwxr-xr-x | .local/bin/makewall | 21 |
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 - |