forked from GH-forks/shmoji
Compare commits
1 commit
main
...
feat/wmenu
Author | SHA1 | Date | |
---|---|---|---|
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
|
$ shmoji -h
|
||||||
usage: [download | bemenu | rofi | fzf]
|
usage: [download | bemenu | dmenu | rofi | wmenu | fzf]
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
# download emojis
|
# download emojis
|
||||||
|
@ -21,6 +21,9 @@ examples:
|
||||||
# launch shmoji with rofi
|
# launch shmoji with rofi
|
||||||
shmoji rofi
|
shmoji rofi
|
||||||
|
|
||||||
|
# launch shmoji with wmenu
|
||||||
|
shmoji wmenu
|
||||||
|
|
||||||
# launch shmoji with wofi
|
# launch shmoji with wofi
|
||||||
shmoji wofi
|
shmoji wofi
|
||||||
|
|
||||||
|
@ -30,7 +33,7 @@ examples:
|
||||||
|
|
||||||
how do i use this in...
|
how do i use this in...
|
||||||
sway:
|
sway:
|
||||||
bindsym $mod+Shift+o exec --no-startup-id shmoji bemenu
|
bindsym $mod+Shift+o exec --no-startup-id shmoji wmenu
|
||||||
|
|
||||||
i3:
|
i3:
|
||||||
bindsym $mod+Shift+o exec --no-startup-id shmoji rofi
|
bindsym $mod+Shift+o exec --no-startup-id shmoji rofi
|
||||||
|
|
8
shmoji
8
shmoji
|
@ -39,7 +39,7 @@ case "$cmd" in
|
||||||
download)
|
download)
|
||||||
depends curl
|
depends curl
|
||||||
mkdir -p "$emojidir"
|
mkdir -p "$emojidir"
|
||||||
# $ wc -l /var/www/trash.j3s.sh/emojis.txt
|
# $ wc -l /var/www/trash.j3s.sh/emojis.txt
|
||||||
# 3570 /var/www/trash.j3s.sh/emojis.txt
|
# 3570 /var/www/trash.j3s.sh/emojis.txt
|
||||||
curl 'https://trash.j3s.sh/emojis.txt' >"$emojifile"
|
curl 'https://trash.j3s.sh/emojis.txt' >"$emojifile"
|
||||||
;;
|
;;
|
||||||
|
@ -62,6 +62,12 @@ case "$cmd" in
|
||||||
emoji=$(cat "$emojifile" | rofi -dmenu | cut -d " " -f 1 | tr -d '\n')
|
emoji=$(cat "$emojifile" | rofi -dmenu | cut -d " " -f 1 | tr -d '\n')
|
||||||
[ "$emoji" ] && xdotool windowactivate --sync $win type --clearmodifiers $emoji
|
[ "$emoji" ] && xdotool windowactivate --sync $win type --clearmodifiers $emoji
|
||||||
;;
|
;;
|
||||||
|
wmenu)
|
||||||
|
emojicheck
|
||||||
|
depends wmenu wl-copy
|
||||||
|
emoji=$(cat "$emojifile" | wmenu)
|
||||||
|
emojiprint "$emoji" | wl-copy
|
||||||
|
;;
|
||||||
wofi)
|
wofi)
|
||||||
emojicheck
|
emojicheck
|
||||||
depends wofi wl-copy
|
depends wofi wl-copy
|
||||||
|
|
Loading…
Reference in a new issue