diff --git a/README.md b/README.md index a8e02fb..0ad29e4 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,33 @@ It relies on [wtype](https://github.com/atx/wtype) when it's supported, otherwis ![Screenshot of wofi-emoji in action](https://i.imgur.com/8XiUoh6.png) +## Usage + +wofi-emoji is built on top of wofi. +Meaning all styling can be done using css refering to [wofi documentation](https://cloudninja.pw/docs/wofi.html), and launch using flags that refered in [manual](https://man.archlinux.org/man/wofi.1.en). + ## Usage with Sway Download [wofi-emoji](https://github.com/dln/wofi-emoji/raw/master/wofi-emoji), ensure it's executable and somewhere in your `$PATH`. Add a shortcut key in your [sway](https://swaywm.org/) config: -``` +```bash # ~/.config/sway/config - bindsym Mod4+e exec path/to/wofi-emoji ``` + +## Hyprland Usage + +Download wofi-emoji using AUR or github. + +Add a shortcut key in your [hyperland]() config: + +```bash +# ~/.config/hypr/hyprland.conf +#for manual loacating the script +bind = $mainMod, PERIOD, exec, ~/.config/wofi-emoji/wofi-emoji + +#for installed binary +bind = $mainMod, PERIOD, exec, wofi-emoji +``` diff --git a/wofi-emoji b/wofi-emoji index de3830a..e8bc57a 100755 --- a/wofi-emoji +++ b/wofi-emoji @@ -2,11 +2,12 @@ wtype 0 if [ $? -eq 0 ] then - sed '1,/^### DATA ###$/d' $0 | wofi --show dmenu -i | cut -d ' ' -f 1 | tr -d '\n' | wtype - + sed '1,/^### DATA ###$/d' $0 | wofi -p "emoji" --show dmenu "$@" | cut -d ' ' -f 1 | tr -d '\n' | wtype - else - sed '1,/^### DATA ###$/d' $0 | wofi --show dmenu -i | cut -d ' ' -f 1 | tr -d '\n' | wl-copy + sed '1,/^### DATA ###$/d' $0 | wofi -p "emoji" --show dmenu "$@" | cut -d ' ' -f 1 | tr -d '\n' | wl-copy fi exit +exit ### DATA ### 😀 grinning face face smile happy joy :D grin 😃 grinning face with big eyes face happy joy haha :D :) smile funny