added scripts dir

This commit is contained in:
2020-06-15 16:51:47 +02:00
parent 763748c252
commit 7697ba34fe
5 changed files with 50 additions and 0 deletions

15
.local/share/scripts/set-bg.sh Executable file
View 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")