voidrice/.local/bin/i3cmds/showclip

11 lines
267 B
Text
Raw Normal View History

2018-11-19 01:31:24 +00:00
#!/bin/sh
# 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 18:10:17 +00:00
[ -n "$clip" ] && notify-send "Clipboard:" "$clip"
[ -n "$prim" ] && notify-send "Primary:" "$prim"