summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-09-06 23:39:26 -0700
committerxyz <gky44px1999@gmail.com>2021-09-06 23:39:26 -0700
commitd357d20624ccd46309d8d5a02fa94b7c3bad8410 (patch)
tree87879ebb244517632daba2e6eb64e97bb4e9edf1
parente7ec92296886631f0145d5cd56c8a494e30cfebb (diff)
no promptd
-rwxr-xr-x.config/sxiv/exec/key-handler2
-rwxr-xr-x.local/bin/promptd3
2 files changed, 1 insertions, 4 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
index 1077b731..65c3cbc0 100755
--- a/.config/sxiv/exec/key-handler
+++ b/.config/sxiv/exec/key-handler
@@ -51,7 +51,7 @@ linkwall() {
# 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") [ "$(promptd "delete?")" = "Yes" ] && tr '\n' '\0' | xargs -0 rm ;;
+ "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" & done ;;
"f") flip ;;
"g") tr '\n' '\0' | xargs -0 setsid -f gimp ;;
diff --git a/.local/bin/promptd b/.local/bin/promptd
deleted file mode 100755
index c9305b00..00000000
--- a/.local/bin/promptd
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-printf 'No\nYes' | dmenu -i -p "$1"