Adds to sxiv key bindings
This commit is contained in:
parent
fcc57f3468
commit
5edb4bbe02
1 changed files with 10 additions and 1 deletions
|
@ -30,12 +30,21 @@ case "$1" in
|
||||||
convert -rotate 90 "$file" "$file" ;;
|
convert -rotate 90 "$file" "$file" ;;
|
||||||
"less")
|
"less")
|
||||||
convert -rotate 270 "$file" "$file" ;;
|
convert -rotate 270 "$file" "$file" ;;
|
||||||
|
"question")
|
||||||
|
convert -rotate 180 "$file" "$file" ;;
|
||||||
"y")
|
"y")
|
||||||
echo -n "$file" | xclip -selection clipboard ;;
|
mimetype="$(file --mime-type -b "$file")"
|
||||||
|
xclip -selection clipboard -target "$mimetype" -i "$file"
|
||||||
|
echo -n "$file" | xclip -selection primary
|
||||||
|
notify-send "copied" "
|
||||||
|
xclip -selection clipboard -target \"$mimetype\" -i \"$file\""
|
||||||
|
;;
|
||||||
"g")
|
"g")
|
||||||
gimp "$file" & disown ;;
|
gimp "$file" & disown ;;
|
||||||
"G")
|
"G")
|
||||||
optirun gimp "$file" & disown ;;
|
optirun gimp "$file" & disown ;;
|
||||||
|
"d")
|
||||||
|
rm "$file" ;;
|
||||||
*)
|
*)
|
||||||
# If none of the above were used, send a notificaton with the key combination
|
# If none of the above were used, send a notificaton with the key combination
|
||||||
notify-send "$1"
|
notify-send "$1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue