summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/dmenuunicode7
-rwxr-xr-x.scripts/showclip6
2 files changed, 13 insertions, 0 deletions
diff --git a/.scripts/dmenuunicode b/.scripts/dmenuunicode
new file mode 100755
index 0000000..fe6a23c
--- /dev/null
+++ b/.scripts/dmenuunicode
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Give dmenu list of all unicode characters to copy.
+# Shows the selected character in dunst if running.
+
+grep -v "#" ~/.scripts/unicode | dmenu -i -l 20 -fn Monospace-18 | awk '{print $1}' | tr -d '\n' | xclip -selection clipboard
+
+pgrep -x dunst >/dev/null && notify-send "$(xclip -o -selection clipboard) copied to clipboard."
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)"