dotfiles/.config/i3/dmenupasta
2020-07-21 16:50:55 -04:00

11 lines
215 B
Plaintext
Executable file

# Must have xclip installed to even show menu.
xclip -h >/dev/null || exit
chosen=$(cat ~/.config/i3/pasta | rofi -dmenu -i)
[ "$chosen" != "" ] || exit
echo "$chosen" | tr -d '\n' | xclip -selection clipboard