12 lines
295 B
Bash
Executable File
12 lines
295 B
Bash
Executable File
#!/bin/sh
|
|
|
|
chosen=$(cut -d ';' -f1 $XDG_CONFIG_HOME/qtile/chars/* | dmenu -l 20 -i -p "select character to copy" | sed "s/ .*//")
|
|
[ -z "$chosen" ] && exit
|
|
|
|
if [ -n "$1" ]; then
|
|
xdotool type "$chosen"
|
|
else
|
|
printf "$chosen" | wl-copy -n
|
|
notify-send -t 2000 "'$chosen' copied to clipboard" &
|
|
fi
|