(scripts) changebg && backupRunning
This commit is contained in:
parent
080e6f1a75
commit
5f5b3c7e92
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if ps aux | egrep '[r]sync'; then
|
if ps aux | egrep -q '[t]imeshift|[r]sync'; then
|
||||||
echo " "
|
echo " "
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -26,11 +26,12 @@ args=("$@")
|
||||||
PATH_TO_IMG="${args[0]}"
|
PATH_TO_IMG="${args[0]}"
|
||||||
|
|
||||||
if [[ -z "$PATH_TO_IMG" ]]; then
|
if [[ -z "$PATH_TO_IMG" ]]; then
|
||||||
wpg -m
|
wpg -m
|
||||||
. "${HOME}/.cache/wal/colors.sh"
|
. "${HOME}/.cache/wal/colors.sh"
|
||||||
PATH_TO_IMG=$wallpaper
|
PATH_TO_IMG=$wallpaper
|
||||||
|
|
||||||
else
|
else
|
||||||
|
additionalArgs=("${args[@]:1}")
|
||||||
wpg -a $PATH_TO_IMG
|
wpg -a $PATH_TO_IMG
|
||||||
wpg -s "$(basename $PATH_TO_IMG)"
|
wpg -s "$(basename $PATH_TO_IMG)"
|
||||||
fi
|
fi
|
||||||
|
@ -61,6 +62,6 @@ emacsclient -e "(load-theme 'ewal-doom-one)"
|
||||||
|
|
||||||
~/dev/linux/telegram-palette-gen/telegram-palette-gen --wal
|
~/dev/linux/telegram-palette-gen/telegram-palette-gen --wal
|
||||||
|
|
||||||
betterlockscreen -u $PATH_TO_IMG &
|
betterlockscreen -u $PATH_TO_IMG 2>/dev/null &
|
||||||
|
|
||||||
fish -c "source ~/.cache/wal/colors.fish"
|
fish -c "source ~/.cache/wal/colors.fish"
|
||||||
|
|
Loading…
Reference in New Issue