Consistency of dmenu scripts.
This commit is contained in:
parent
b8958a9aad
commit
5002db57b2
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue