summaryrefslogtreecommitdiff
path: root/.local/bin/dmenu/unicode-select
blob: b797691c0627739d6100a489f4a72b0da20b6cfb (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Select unicode character via dmenu and copy to clipboard

line="$(cat ~/.local/share/unicode_list | dmenu -i -l 10)"
grep "$line" ~/.local/share/unicode_list | tr -d [:print:] | 
		xclip -r -selection "clipboard" && 
		notify-send "$(xclip -selection "clipboard" -o) copied to clipboard"