Add documentation, screenshot, shebang to script, config
This commit is contained in:
parent
25a507f4e2
commit
a993197ab9
18
README.md
18
README.md
|
@ -1 +1,19 @@
|
|||
# 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`
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
rofi.width: 100
|
||||
rofi.lines: 11
|
||||
rofi.columns: 5
|
||||
rofi.fullscreen: true
|
||||
rofi.hide-scrollbar: true
|
||||
rofi.location: 0
|
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
selection=$(rofi -i -dmenu $@ < $(dirname $0)/kaomoji.txt)
|
||||
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
|
||||
xdotool type --clearmodifiers "$kaomoji"
|
||||
|
|
Loading…
Reference in New Issue