voidrice/.local/bin/showclip

11 lines
267 B
Text
Raw Normal View History

#!/bin/sh
2018-11-18 20:31:24 -05:00
# Display contents of selection via dunst if running.
# Separate script for i3.
clip=$(xclip -o -selection clipboard)
prim=$(xclip -o -selection primary)
2019-04-24 14:10:17 -04:00
[ -n "$clip" ] && notify-send "Clipboard:" "$clip"
[ -n "$prim" ] && notify-send "Primary:" "$prim"