diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-03-10 22:49:08 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-03-10 22:49:08 -0800 |
commit | a840506a3bb0e0d2ee2bf8c3b1db07cc2b5d7625 (patch) | |
tree | 916a92fcdb7b2f3714ab53581375045ff12b76a9 /home | |
parent | 2e8208cf613c0179877b5df9f734c81c1f7cd2e3 (diff) |
pp uninstall nsxiv
Diffstat (limited to 'home')
-rw-r--r-- | home/xyz/.Xresources | 11 | ||||
-rwxr-xr-x | home/xyz/.config/nsxiv/exec/key-handler | 64 |
2 files changed, 0 insertions, 75 deletions
diff --git a/home/xyz/.Xresources b/home/xyz/.Xresources deleted file mode 100644 index 6f12b1ae..00000000 --- a/home/xyz/.Xresources +++ /dev/null @@ -1,11 +0,0 @@ -! studio true dpi -!Xft.dpi: 131 -! studio fake dpi -!Xft.dpi: 96 - -! nsxiv, fnune/base16-vim base16-tomorrow-night colorscheme -Nsxiv.bar.font:monospace:size=11 -Nsxiv.window.foreground:#c5c8c6 -Nsxiv.window.background:#1d1f21 -Nsxiv.bar.foreground:#b4b7b4 -Nsxiv.bar.background:#282a2e diff --git a/home/xyz/.config/nsxiv/exec/key-handler b/home/xyz/.config/nsxiv/exec/key-handler deleted file mode 100755 index 795acca1..00000000 --- a/home/xyz/.config/nsxiv/exec/key-handler +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh - -# Example for $XDG_CONFIG_HOME/sxiv/exec/key-handler -# Called by sxiv(1) after the external prefix key (C-x by default) is pressed. -# The next key combo is passed as its first argument. Passed via stdin are the -# images to act upon, one path per line: all marked images, if in thumbnail -# mode and at least one image has been marked, otherwise the current image. -# sxiv(1) blocks until this script terminates. It then checks which images -# have been modified and reloads them. - -# The key combo argument has the following form: "[C-][M-][S-]KEY", -# where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X -# keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix. - -# my dependency notes -# jpegtran is owned by libjpeg-turbo -# mogrify is owned by imagemagick -# exiv2 is owned by exiv2 -# rawtherapee is owned by rawtherapee - -rotate() { - tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read -r file; do - case "$(file -b -i "$file")" in - image/jpeg*) jpegtran -rotate "$1" -copy all -outfile "$file" "$file" ;; - *) mogrify -rotate "$1" "$file" ;; - esac - done -} - -flip() { - tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read -r file; do - case "$(file -b -i "$file")" in - image/jpeg*) - jpegtran -flip "$1" -copy all -outfile "$file" "$file" - ;; - *) - if [ "$1" = vertical ]; then - mogrify -flip "$file" - elif [ "$1" = horizontal ]; then - mogrify -flop "$file" - else - exit 1 - fi - ;; - esac - 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 - "d") [ "$(printf 'No\nYes' | dmenu -i -p 'delete?')" = "Yes" ] && tr '\n' '\0' | xargs -0 rm ;; - "e") while read -r file; do alacritty -e sh -c "exiv2 pr -q -pa '$file' | LESS='$LESS-+F' '$PAGER'" & done ;; - "f") flip vertical ;; - "F") flip horizontal ;; - "g") tr '\n' '\0' | xargs -0 setsid -f gimp ;; - "p") tr '\n' '\0' | xargs -0 sh -c 'convert "$@" $(time.uuid).pdf' shell ;; - # 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 ;; - "period") rotate 90 ;; - "slash") rotate 180 ;; -esac - |