Krolyxon
Commit 08b82e7

Branches

Refs →

dotfiles-x1108b82e7

switch to nsxiv

Author
krolyxon
Date
2023-02-11 11:13 +0530
Parent
c307995
Commit
08b82e766a8094c5b349b81f4818bcfc4704b01f

+11 −0

1 file changed

  1. A .config/nsxiv/exec/key-handler +11 −0
A .config/nsxiv/exec/key-handler View
@@ -0,0 +1,11 @@
1+#!/bin/sh
2+
3+while read file
4+do
5+ case "$1" in
6+ "d")
7+ [ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
8+ "w") genwall $file;;
9+ "c") cat "$file" | xclip -sel c -t image/png && notify-send "$file Copied ";;
10+ esac
11+done