Rofix
Simple JavaScript Rofi wrapper
Installation
npm install rofix
Useage
const Menu = const items = 'Legacy Brand Liaison' 'International Identity Liaison' 'Internal Creative Orchestrator' let menu = items width: -40 font: 'Aldrich 14' // Open Rofi dmenu with Callback functionmenu // Open Rofi dmenu using promisemenu // Get commandconsole // outputs: rofi -dmenu -threads 0 -cycle -matching "fuzzy" -i -width -40 -font "Aldrich 14"
Defaults
dmenu: ''
threads: 0
cycle: ''
matching: 'fuzzy',
i: ''
Chaining
const Menu = const items = 'Legacy Brand Liaison' 'International Identity Liaison' 'Internal Creative Orchestrator' const settings = 'width': -40 'font': 'Aldrich 14' let a = 'a b c d' settingslet b = '1 2 3 4 5' settingslet c = 'x y z' settings let menu = items settingslet selected = menu
Requirements
- xclip