summaryrefslogtreecommitdiffstats
path: root/.scripts/showclip
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/showclip')
-rwxr-xr-x.scripts/showclip6
1 files changed, 6 insertions, 0 deletions
diff --git a/.scripts/showclip b/.scripts/showclip
new file mode 100755
index 0000000..38be25a
--- /dev/null
+++ b/.scripts/showclip
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Display contents of selection via dunst if running.
+# Separate script for i3.
+
+pgrep -x dunst >/dev/null && notify-send "$(xclip -o -selection clipboard)"