Add documentation, screenshot, shebang to script, config

This commit is contained in:
Ceda EI 2018-11-14 00:10:14 +05:30
parent 25a507f4e2
commit a993197ab9
4 changed files with 26 additions and 0 deletions

View File

@ -1 +1,19 @@
# Kaomoji Rofi # Kaomoji Rofi
Rofi script for typing kaomojis.
![Kaomoji Rofi Preview](ss.png)
## Requirements
+ `rofi`
+ `xdotool`
## Installation
+ `git clone https://gitlab.com/ceda_ei/kaomoji-rofi`
+ Add a keybinding to run `/path/where/you/cloned/kaomoji-rofi/kaomoji.sh`
## Configuration
All options passed to kaomoji.sh are passed to rofi. The screenshot has been
taken with the following command. `kaomoji.sh -config config -theme some_theme.rasi`

6
config Normal file
View File

@ -0,0 +1,6 @@
rofi.width: 100
rofi.lines: 11
rofi.columns: 5
rofi.fullscreen: true
rofi.hide-scrollbar: true
rofi.location: 0

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt) selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||") kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
xdotool type --clearmodifiers "$kaomoji" xdotool type --clearmodifiers "$kaomoji"

BIN
ss.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 KiB