17 lines
351 B
Text
17 lines
351 B
Text
|
#!/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)
|
||
|
|
||
|
[ "$prim" != "" ] && notify-send "<b>Clipboard:</b>
|
||
|
$prim"
|
||
|
[ "$clip" != "" ] && notify-send "<b>Primary:</b>
|
||
|
$clip"
|