diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-02-09 09:24:13 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-02-09 09:24:13 -0500 |
| commit | 4acbbc07d35a16e2dd680fb44a0f4eaeb1756802 (patch) | |
| tree | ba510238d84b4d31b1b7597b116cdff94a56c4ee /.local/bin | |
| parent | d8c4fbd0e9ff58f434dc6bc0d96d2daabe3de569 (diff) | |
| download | eibhear-4acbbc07d35a16e2dd680fb44a0f4eaeb1756802.tar.gz eibhear-4acbbc07d35a16e2dd680fb44a0f4eaeb1756802.tar.zst eibhear-4acbbc07d35a16e2dd680fb44a0f4eaeb1756802.zip | |
use pywal if installed
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/setbg | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.local/bin/setbg b/.local/bin/setbg index 6125654..0927988 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -3,7 +3,15 @@ # In LARBS, ~/.config/wall.png is the location of the system wallpaper. This # script, if given an argument, moves it there. This script without an # argument sets ~/.config/wall.png as the wallpaper, which is required on login -# if you don't want a blakc screen. +# if you don't want a black screen. [ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." + +# If pywal is installed, use it. +type wal >/dev/null && { wal -c ; + wal -s -i ~/.config/wall.png -o ~/.config/wal/postrun; + xsetroot -name "fsignal:xrdb"; + killall dwmblocks; + setsid dwmblocks >/dev/null 2>&1 & } + xwallpaper --zoom ~/.config/wall.png |
