summaryrefslogtreecommitdiff
path: root/keyboard/dmenuunicode
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-04-17 10:46:59 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-04-17 10:46:59 -0500
commit35a2dd3734f1d31060fe28837cf0e1d947c8d6f4 (patch)
tree5fcb17f0849b520417ac0f29b94879f3e359ef43 /keyboard/dmenuunicode
parent3d3d79a57fb6d0a5728e0070475f05d1699f0818 (diff)
downloadscripts-35a2dd3734f1d31060fe28837cf0e1d947c8d6f4.tar.xz
scripts-35a2dd3734f1d31060fe28837cf0e1d947c8d6f4.zip
reorganize all scripts
Diffstat (limited to 'keyboard/dmenuunicode')
-rwxr-xr-xkeyboard/dmenuunicode18
1 files changed, 0 insertions, 18 deletions
diff --git a/keyboard/dmenuunicode b/keyboard/dmenuunicode
deleted file mode 100755
index 066099a..0000000
--- a/keyboard/dmenuunicode
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-# The famous "get a menu of emojis to copy" script.
-
-# Get user selection via dmenu from emoji file.
-chosen=$(cut -d ';' -f1 ~/.local/share/emojis | dmenu -l 30 | sed "s/ .*//")
-
-# Exit if none chosen.
-[ -z "$chosen" ] && exit
-
-# If you run this command with an argument, it will automatically insert the
-# character. Otherwise, show a message that the emoji has been copied.
-if [ -n "$1" ]; then
- xdotool type "$chosen"
-else
- echo "$chosen" | tr -d '\n' | xclip -selection clipboard
- notify-send -u low "'$chosen' copied to clipboard." &
-fi