showclip fix
This commit is contained in:
parent
67429e6279
commit
a90beaed1d
1 changed files with 2 additions and 7 deletions
|
@ -3,13 +3,8 @@
|
||||||
# Display contents of selection via dunst if running.
|
# Display contents of selection via dunst if running.
|
||||||
# Separate script for i3.
|
# Separate script for i3.
|
||||||
|
|
||||||
! pgrep -x dunst >/dev/null && echo "dunst not running." && exit
|
|
||||||
|
|
||||||
clip=$(xclip -o -selection clipboard)
|
clip=$(xclip -o -selection clipboard)
|
||||||
|
|
||||||
prim=$(xclip -o -selection primary)
|
prim=$(xclip -o -selection primary)
|
||||||
|
|
||||||
[ "$clip" != "" ] && notify-send "<b>Clipboard:</b>
|
[ -n "$clip" ] && notify-send "Clipboard:" "$clip"
|
||||||
$clip"
|
[ -n "$prim" ] && notify-send "Primary:" "$prim"
|
||||||
[ "$prim" != "" ] && notify-send "<b>Primary:</b>
|
|
||||||
$prim"
|
|
||||||
|
|
Loading…
Reference in a new issue