Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
11
.bin/OLD/dexec_pasteaction
Executable file
11
.bin/OLD/dexec_pasteaction
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
. $HOME/.bin/_config
|
||||
|
||||
INPUT="$(xclip -r -o | tr -d "\n")"
|
||||
|
||||
SEL=$(printf "mpv $INPUT\nimv $INPUT" | $DMENU_CMD -l 20 -p "Page Action")
|
||||
|
||||
case $SEL in
|
||||
mpv*) texec "mpv $INPUT"; ;;
|
||||
imv*) texec "curl -s $INPUT | imv -"; ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user