kenshaw / wofimoji

A emoji picker for wofi
MIT License
2 stars 1 forks source link

wofimoji

Command wofimoji is a wofi emoji picker.

Installing | Building | Using | Releases

Releases Discord Discussion

Installing

wofimoji can be installed via Release, via AUR or via Go:

Installing via Release

  1. Download a release for your platform
  2. Extract the wofimoji file from the .tar.bz2 file
  3. Move the extracted executable to somewhere on your $PATH

Installing via AUR (Arch Linux)

Install wofimoji from the Arch Linux AUR in the usual way with the yay command:

# install
$ yay -S wofimoji

Alternately, build and install using makepkg:

# clone package repo and make/install package
$ git clone https://aur.archlinux.org/wofimoji.git && cd wofimoji
$ makepkg -si
==> Making package: wofimoji 0.2.0-1 (Sat 11 Nov 2023 02:30:02 PM WIB)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
...

Installing via Go

Install wofimoji in the usual Go fashion:

# install latest wofimoji version
$ go install github.com/kenshaw/wofimoji@latest

Using

$ wofimoji --help
wofimoji, the wofi emoji picker

Usage:
  wofimoji [flags]

Flags:
  -a, --action action           action (default copy)
      --clipboarder string      clipboarder command (default "wl-copy")
  -c, --config string           config file
  -h, --help                    help for wofimoji
      --prompt string           wofi prompt (default "emoji")
      --selector string         selector command (default "wofi")
  -f, --selector-args strings   selector args
  -t, --skin-tone tone          skin tone (default neutral)
  -T, --template file           template file
      --typer string            typer command (default "wtype")
  -v, --version                 version for wofimoji

Sway

With sway, or other similar windowing system:

bindsym {
  # launch wofimoji using light skin tones, and passing a unique cache file to wofi
  Mod4+e exec wofimoji --skin-tone light --selector-args "--cache-file=$HOME/.cache/wofi-wofimoji"
}

Same, but shorter:

bindsym {
  Mod4+e exec wofimoji -t light -f "--cache-file=$HOME/.cache/wofi-wofimoji"
}