summaryrefslogtreecommitdiff
path: root/dmenuunicode
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-07-15 20:48:59 -0500
committerzachir <zachir@librem.one>2025-07-15 20:48:59 -0500
commit0b5757ab583354257840b72afb3ee114196c5475 (patch)
tree22ebd30d6c27016064a737312fbc04eff1850ee4 /dmenuunicode
parent321d0dd7d4cd63b30b322d529f64e567d18086b2 (diff)
Remove a bunch of scripts I no longer need
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