added scripts dir
This commit is contained in:
15
.local/share/scripts/set-bg.sh
Executable file
15
.local/share/scripts/set-bg.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
# required packages:
|
||||
# - feh
|
||||
|
||||
set -e
|
||||
|
||||
[ -z "$@" ] && exit 0
|
||||
|
||||
LAST_BG_LOCATION="$XDG_CACHE_HOME/.last-bg"
|
||||
|
||||
feh --bg-scale $1
|
||||
|
||||
rm -f "$LAST_BG_LOCATION"
|
||||
ln -s $1 $(realpath "$LAST_BG_LOCATION")
|
||||
|
||||
Reference in New Issue
Block a user