From 0b5757ab583354257840b72afb3ee114196c5475 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 15 Jul 2025 20:48:59 -0500 Subject: Remove a bunch of scripts I no longer need --- dmenuunicode | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 dmenuunicode (limited to 'dmenuunicode') 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 -- cgit v1.2.3