2018-11-19 01:31:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Display contents of selection via dunst if running.
|
|
|
|
# Separate script for i3.
|
|
|
|
|
|
|
|
! pgrep -x dunst >/dev/null && echo "dunst not running." && exit
|
|
|
|
|
|
|
|
clip=$(xclip -o -selection clipboard)
|
|
|
|
|
|
|
|
prim=$(xclip -o -selection primary)
|
|
|
|
|
2018-12-28 17:05:28 +00:00
|
|
|
[ "$clip" != "" ] && notify-send "<b>Clipboard:</b>
|
2018-11-19 01:31:24 +00:00
|
|
|
$clip"
|
2018-12-28 17:05:28 +00:00
|
|
|
[ "$prim" != "" ] && notify-send "<b>Primary:</b>
|
2018-12-12 22:51:03 +00:00
|
|
|
$prim"
|