Switch to rofi.
This commit is contained in:
parent
e8e2fb2fb5
commit
122f54d3ae
6 changed files with 20 additions and 19 deletions
11
_desktop/_scripts/selector-chars
Executable file
11
_desktop/_scripts/selector-chars
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
chosen=$(cut -d ';' -f1 $XDG_CONFIG_HOME/qtile/chars/* | rofi -dmenu -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
|
Loading…
Add table
Add a link
Reference in a new issue