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