Compare commits

..

No commits in common. "feat/wmenu" and "main" have entirely different histories.

2 changed files with 3 additions and 12 deletions

7
README
View file

@ -6,7 +6,7 @@ demo: https://asciinema.org/a/525695
$ shmoji -h
usage: [download | bemenu | dmenu | rofi | wmenu | fzf]
usage: [download | bemenu | rofi | fzf]
examples:
# download emojis
@ -21,9 +21,6 @@ examples:
# launch shmoji with rofi
shmoji rofi
# launch shmoji with wmenu
shmoji wmenu
# launch shmoji with wofi
shmoji wofi
@ -33,7 +30,7 @@ examples:
how do i use this in...
sway:
bindsym $mod+Shift+o exec --no-startup-id shmoji wmenu
bindsym $mod+Shift+o exec --no-startup-id shmoji bemenu
i3:
bindsym $mod+Shift+o exec --no-startup-id shmoji rofi

8
shmoji
View file

@ -39,7 +39,7 @@ case "$cmd" in
download)
depends curl
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
curl 'https://trash.j3s.sh/emojis.txt' >"$emojifile"
;;
@ -62,12 +62,6 @@ 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