diff options
| author | Xiao Pan <gky44px1999@gmail.com> | 2023-03-07 18:20:56 -0800 | 
|---|---|---|
| committer | Xiao Pan <gky44px1999@gmail.com> | 2023-03-07 18:22:21 -0800 | 
| commit | e93d7e612b4fd601107713a84f0c8be7eb425147 (patch) | |
| tree | 956826f0b1df5f5ea1fd07b99b69d8ba9c76ba76 /home/xyz | |
| parent | 16da98baa800132fc2e452be4b570a55f9382302 (diff) | |
nsxiv no wallpaper related shortcuts
Diffstat (limited to 'home/xyz')
| -rwxr-xr-x | home/xyz/.config/nsxiv/exec/key-handler | 14 | 
1 files changed, 0 insertions, 14 deletions
| diff --git a/home/xyz/.config/nsxiv/exec/key-handler b/home/xyz/.config/nsxiv/exec/key-handler index 6e998654..795acca1 100755 --- a/home/xyz/.config/nsxiv/exec/key-handler +++ b/home/xyz/.config/nsxiv/exec/key-handler @@ -46,18 +46,6 @@ flip() {  	done  } -linkwall() { -	tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read -r file; do -		walldir="$XDG_PICTURES_DIR/wallpapers/" -		name=$(basename "$file") -		if [ ! -e "$walldir$name" ]; then -			convwall "$file" "$walldir$name" || ln -s "$file" "$walldir"  -		else -			notify-send 'error' "$name exist" -		fi -	done -} -  # I choose not to put case nested in while read file loop  # because it can pipe multiple files to one command?  case "$1" in @@ -66,9 +54,7 @@ case "$1" in  	"f") flip vertical ;;  	"F") flip horizontal ;;  	"g") tr '\n' '\0' | xargs -0 setsid -f gimp ;; -	"l") linkwall ;;  	"p") tr '\n' '\0' | xargs -0 sh -c 'convert "$@" $(time.uuid).pdf' shell ;; -	"w") tr '\n' '\0' | xargs -0 shufwall ;;  	# alternative using `xclip -in -selection clipboard`  	"y") tr '\n' '\0' | xargs -0 realpath | tr '\n' '\0' | xargs -0 printf '%q ' | xsel -ib ;;  	"comma") rotate 270 ;; | 
