Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Now launches with all wofi options from command line #15

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
5 changes: 3 additions & 2 deletions wofi-emoji
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down