Browse Source

Fix path errors and update readme.

master
Mathieu Laparie 1 year ago
parent
commit
74c36f251a
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      README.md

+ 6
- 4
README.md View File

@@ -1,6 +1,6 @@
# rofiemoji-rofiunicode

Inspired by [fdw/rofimoji](https://github.com/fdw/rofimoji) and its script version by [nkoehring/rofiemoji](https://github.com/nkoehring/rofiemoji), **rofiemoji-rofiunicode** is the combination of two rofi scripts to search emojis or unicode characters directly in rofi. Unicode characters and emojis show up as separate tabs when rofi is invoked:
Inspired by [fdw/rofimoji](https://github.com/fdw/rofimoji) and its script version [nkoehring/rofiemoji](https://github.com/nkoehring/rofiemoji), **rofiemoji-rofiunicode** is a fork of the latter that combines two scripts to search and copy emojis or unicode characters directly from [davatorium/rofi](https://github.com/davatorium/rofi). Unicode characters and emojis show up as separate tabs when rofi is invoked:

![rofiemoji-rofiunicode1](.//rofiemoji-rofiunicode1.png)

@@ -19,6 +19,7 @@ The list of unicode characters was originally created by [/u/fe80c0ffee](https:/

* An emoji capable font, for example [Noto Emoji](https://www.google.com/get/noto/#emoji-zsye) or [Noto Color Emoji](https://www.google.com/get/noto/#emoji-zsye-color).
* `xsel` to copy the selection to the clipboard. You should find it in your package manager.
* `rofi`, from [davatorium/rofi](https://github.com/davatorium/rofi) but probably available in your package manager as well.

## Usage example
Add a custom keybinding using your window-manager settings for the following command:
@@ -26,17 +27,18 @@ Add a custom keybinding using your window-manager settings for the following com
```sh
rofi -show windowcd -theme-str '#window{width: 30%;}' # See the rofi documentation for details
```
Navigate through roji tabs using `Ctrl+Tab` (default) and search emojis or unicode characters by keyword. Pressing `Return` will copy the highlighted character to the clipboard.
Invoke rofi using your keybinding, navigate through tabs using `Ctrl+Tab` (default) and search emojis or unicode characters by keyword. Pressing `Return` will copy the highlighted character to the clipboard and close rofi.

## Recommended configuration
For rofi to look like the above screenshots, use the supplied `config` file and `sidetab-adapta.rasi` theme (originally taken from the [rofi-themes](https://raw.githubusercontent.com/davatorium/rofi-themes/master/User%20Themes/sidetab-adapta.rasi) collection):
For rofi to look like the above screenshots, use the supplied `config` file and `sidetab-adapta.rasi` theme (originally taken from the [davatorium/rofi-themes](https://raw.githubusercontent.com/davatorium/rofi-themes/master/User%20Themes/sidetab-adapta.rasi) collection):

```bash
mv $HOME/.config/rofi/config $HOME/.config/rofi/config.back
cp $HOME/.config/rofiemoji-rofiunicode/config.example $HOME/.config/rofi/config
mkdir -p $HOME/.local/share/rofi/themes
cp $HOME/.config/rofiemoji-rofiunicode/sidetab-adapta.rasi $HOME/.local/share/rofi/themes/
```
The `config` file is customized to my own system and preferences. It is assumed that rofi and rofiemoji-rofiunicode folders are located in `~/.config/`. Make sure you reviewed the few uncommented lines to check whether my custom preferences in `config` will work on your system. For instance, this `config` file is adapted to `gnome-terminal`, while default values might work best with other terminals.
It is assumed that `rofi/` and `rofiemoji-rofiunicode/` directories are both located in `~/.config/`. The `config` file supplied here is customized to my own preferences and to the characteristics of my system. Make sure you reviewed the few uncommented lines to check whether my custom changes will work on your system. For instance, this `config` file is set to make rofi work with gnome-terminal, but default rofi values might work best with other terminals.

## Alternative


Loading…
Cancel
Save