Consistency of dmenu scripts.

This commit is contained in:
Bartek Stalewski 2021-08-24 23:38:44 +02:00
parent b8958a9aad
commit 5002db57b2
3 changed files with 4 additions and 4 deletions

View file

@ -1,12 +1,12 @@
#!/bin/sh
chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -i -l 30 | sed "s/ .*//")
chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -l 30 -p emoji | sed "s/ .*//")
[ -z "$chosen" ] && exit
if [ -n "$1" ]; then
xdotool type "$chosen"
else
printf "$chosen" | xsel -l /dev/null
notify-send "'$chosen' copied to clipboard." &
notify-send "'$chosen' copied to clipboard" &
fi