summaryrefslogtreecommitdiff
path: root/dmenuunicode
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-07-15 20:50:37 -0500
committerzachir <zachir@librem.one>2025-07-15 20:50:37 -0500
commitb57c4b69d461ac785d793b8aedfd75db899c1bc9 (patch)
tree9da78a27832b41fde890af813fc914845cdbace0 /dmenuunicode
parentc4ce28f4bc2ab0fb74707cd7f321da449ffd948e (diff)
parent4f5fb6b16fb0dc03ed2aae56658cc0fa0265a7ff (diff)
Merge branch 'master' into artix
Diffstat (limited to 'dmenuunicode')
-rwxr-xr-xdmenuunicode36
1 files changed, 0 insertions, 36 deletions
diff --git a/dmenuunicode b/dmenuunicode
deleted file mode 100755
index c843353..0000000
--- a/dmenuunicode
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-# The famous "get a menu of emojis to copy" script.
-
-printhelp () {
- exit
-}
-
-while getopts "hd:" o; do case "${o}" in
- d) ARGS="$ARGS$OPTARG " ;;
- *) printhelp ;;
-esac done
-
-if [ -n "$WAYLAND_DISPLAY" ]; then
- CLIP="wl-copy"
-elif [ -n "$DISPLAY" ]; then
- CLIP="xclip -selection clipboard"
-else
- print "Can't tell if Wayland or X; what gives?\n"
- exit 1
-fi
-
-# Get user selection via dmenu -i -l 30 from emoji file.
-chosen=$(cut -d ';' -f1 ~/.local/share/larbs/chars/* | dmenu -l 15 $ARGS | 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
- printf "$chosen" | $CLIP
- notify-send "'$chosen' copied to clipboard." &
-fi