forked from GH-forks/shmoji
feat: wmenu support
wmenu is the new default menu for Sway: https://github.com/swaywm/sway/releases/tag/1.9
This commit is contained in:
parent
c912061584
commit
ef1172db4a
2 changed files with 12 additions and 3 deletions
7
README
7
README
|
@ -6,7 +6,7 @@ demo: https://asciinema.org/a/525695
|
|||
|
||||
|
||||
$ shmoji -h
|
||||
usage: [download | bemenu | rofi | fzf]
|
||||
usage: [download | bemenu | dmenu | rofi | wmenu | fzf]
|
||||
|
||||
examples:
|
||||
# download emojis
|
||||
|
@ -21,6 +21,9 @@ examples:
|
|||
# launch shmoji with rofi
|
||||
shmoji rofi
|
||||
|
||||
# launch shmoji with wmenu
|
||||
shmoji wmenu
|
||||
|
||||
# launch shmoji with wofi
|
||||
shmoji wofi
|
||||
|
||||
|
@ -30,7 +33,7 @@ examples:
|
|||
|
||||
how do i use this in...
|
||||
sway:
|
||||
bindsym $mod+Shift+o exec --no-startup-id shmoji bemenu
|
||||
bindsym $mod+Shift+o exec --no-startup-id shmoji wmenu
|
||||
|
||||
i3:
|
||||
bindsym $mod+Shift+o exec --no-startup-id shmoji rofi
|
||||
|
|
6
shmoji
6
shmoji
|
@ -62,6 +62,12 @@ case "$cmd" in
|
|||
emoji=$(cat "$emojifile" | rofi -dmenu | cut -d " " -f 1 | tr -d '\n')
|
||||
[ "$emoji" ] && xdotool windowactivate --sync $win type --clearmodifiers $emoji
|
||||
;;
|
||||
wmenu)
|
||||
emojicheck
|
||||
depends wmenu wl-copy
|
||||
emoji=$(cat "$emojifile" | wmenu)
|
||||
emojiprint "$emoji" | wl-copy
|
||||
;;
|
||||
wofi)
|
||||
emojicheck
|
||||
depends wofi wl-copy
|
||||
|
|
Loading…
Reference in a new issue