14 lines
584 B
Bash
Executable File
14 lines
584 B
Bash
Executable File
#!/bin/sh
|
|
while read -r file
|
|
do
|
|
case "$1" in
|
|
"b") change-background "$file" & ;;
|
|
"y") wl-copy < $file ;;
|
|
"d")
|
|
#[ "$(printf "No\\nYes" | rofi -dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
|
|
[ "$(printf "No\\nYes" | wofi --insensitive --show dmenu --prompt="Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
|
|
"g") setsid -f gimp "$file" ;;
|
|
"i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: <b>/;s/$/<\/b>/" | grep "<b>")" ;;
|
|
esac
|
|
done
|