diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-08 20:20:46 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-08 20:20:46 +0200 |
commit | 529cb5531637e1a3d028aba3a832005a198d68d3 (patch) | |
tree | f8c4f331b6796188a6adcc45f5e9560f85c6cd8c /bin/guiscripts | |
parent | 338e58b97a662a0522f12d85da7672ac0c2d3f19 (diff) | |
parent | 50dd478be3d120221fbf467cffaf6ea57fb0b627 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-x | bin/guiscripts/favwal | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/guiscripts/favwal b/bin/guiscripts/favwal index f27123d..94ee709 100755 --- a/bin/guiscripts/favwal +++ b/bin/guiscripts/favwal @@ -1,6 +1,8 @@ #!/bin/sh -pics=$(xdg-user-dir PICTURES")" +pics="$(xdg-user-dir PICTURES)" mkdir -p "${pics:=$HOME/pics}/favorites" -wal="$(realpath "pics/wallpaper")" +wal="$(realpath "$pics/wallpaper")" +diff "$wal" "$pics/favorites/$(realpath "$wal" | xargs basename)" && + exit cp "$wal" "$pics/favorites" echo "$wal" |