-
Notifications
You must be signed in to change notification settings - Fork 614
Using Rofi with Fish Shell
timm0e edited this page Oct 14, 2018
·
3 revisions
For all you fish shell users, all 9 of you! It would be nice if Rofi worked well with your shell. This functionality can be yours for the low price of 2 lines added to ~/.Xresources
rofi.run-command: fish -c '{cmd}'
This will tell rofi to run commands via fish.
rofi.run-list-command: 'fish -c functions'
The functions shell command outputs a comma separated list of defined fish shell functions that serve as candidates for completion by Rofi. This also prevents rofi from giving you an error regarding not being an existing command when triggering kb-accept-custom, which is by default bound to Shift+Return and Ctrl+Return. Attention: This creates some delay if your fish shell takes some time to start (e.g. with oh-my-fish)
After adding these lines don't forget to run:
xrdb ~/.Xresources
in order for your changes to take effect immediately.