mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-18 09:57:46 +01:00
tools: made desktop wallpaper match with lock
This commit is contained in:
parent
9c2d1ddbe6
commit
dc5325c1d5
@ -12,7 +12,7 @@ case "$1" in
|
|||||||
inode/directory ) ln -f "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$wall_desk" && notify-send -i "$wall_desk" "Random desktop wallpaper chosen." ;;
|
inode/directory ) ln -f "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$wall_desk" && notify-send -i "$wall_desk" "Random desktop wallpaper chosen." ;;
|
||||||
*) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;;
|
*) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;;
|
||||||
esac
|
esac
|
||||||
xwallpaper --zoom "$wall_desk" ;;
|
xwallpaper --stretch "$wall_desk" ;;
|
||||||
lock) trueloc="$(readlink -f "$2")" &&
|
lock) trueloc="$(readlink -f "$2")" &&
|
||||||
case "$(file --mime-type -b "$trueloc")" in
|
case "$(file --mime-type -b "$trueloc")" in
|
||||||
image/* ) ln -f "$(readlink -f "$2")" "$wall_lock" && notify-send -i "$wall_lock" "Lock screen wallpaper has been changed." ;;
|
image/* ) ln -f "$(readlink -f "$2")" "$wall_lock" && notify-send -i "$wall_lock" "Lock screen wallpaper has been changed." ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user