Krolyxon
Commit f14e30a

Branches

Refs →

dotfiles-x11.confignsxivexeckey-handler

11 lines · 293 B · Bourne Again Shell (bash)

1#!/bin/sh
2
3while read file
4do
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
11done