From 111d68e6b039c7f7a0a5d4f869cb4ca3433ff072 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 24 Mar 2023 19:25:53 +0200 Subject: [PATCH 1/5] now takes all WOFI manual input accordinly --- README.md | 18 +++++++++++++++++- wofi-emoji | 5 +++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a8e02fb..2a58aa1 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,12 @@ 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`. @@ -13,7 +19,17 @@ Download [wofi-emoji](https://github.com/dln/wofi-emoji/raw/master/wofi-emoji), Add a shortcut key in your [sway](https://swaywm.org/) config: ``` + # ~/.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 +bind = $mainMod, PERIOD, exec, ~/.config/wofi-emoji/wofi-emoji +```` diff --git a/wofi-emoji b/wofi-emoji index de3830a..bdc99bb 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 --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 --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 From b1577abf7ddaa76b57ad0982173553e31ab2b1e0 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 24 Mar 2023 19:27:58 +0200 Subject: [PATCH 2/5] yeah --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2a58aa1..18414c5 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,7 @@ Add a shortcut key in your [hyperland]() config: # ~/.config/hypr/hyprland.conf bind = $mainMod, PERIOD, exec, ~/.config/wofi-emoji/wofi-emoji ```` + +``` + +``` From c7892a3cab189d1f53feb78987a0d7c8b025acd2 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 24 Mar 2023 19:30:09 +0200 Subject: [PATCH 3/5] fixed docs --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 18414c5..10fc4e3 100644 --- a/README.md +++ b/README.md @@ -11,19 +11,15 @@ It relies on [wtype](https://github.com/atx/wtype) when it's supported, otherwis 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. @@ -32,8 +28,4 @@ Add a shortcut key in your [hyperland]() config: ```bash # ~/.config/hypr/hyprland.conf bind = $mainMod, PERIOD, exec, ~/.config/wofi-emoji/wofi-emoji -```` - -``` - ``` From 5eb442ceff977e01c17d3ed239b4286d119d34fb Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 24 Mar 2023 19:31:58 +0200 Subject: [PATCH 4/5] fixed docs2 --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10fc4e3..0ad29e4 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,19 @@ 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 ``` From 25e9cee76f1414d7d56d0eebbb943b90c7c5b3e9 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 24 Mar 2023 19:36:55 +0200 Subject: [PATCH 5/5] displays emoji instead of drun --- wofi-emoji | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wofi-emoji b/wofi-emoji index bdc99bb..e8bc57a 100755 --- a/wofi-emoji +++ b/wofi-emoji @@ -2,9 +2,9 @@ wtype 0 if [ $? -eq 0 ] then - sed '1,/^### DATA ###$/d' $0 | wofi --show dmenu "$@" | 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 "$@" | 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