dotfiles/.config/i3/dmenupasta

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