blob: 9f8a6b9cb9499e10e1a3376d87bb8524e4b421cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/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)
[ "$clip" != "" ] && notify-send "<b>Clipboard:</b>
$clip"
[ "$prim" != "" ] && notify-send "<b>Primary:</b>
$prim"
|