Add initial rofi-bangs script

Can be executed with rofi-bang. It will take a comma-separated list of
commands (for now statically sourced from rofi config dir), show labels
and 'bangs' for them (in the manner of !c or !yt) which, if typed will
instantly execute their command. In this manner, it becomes possible to
create a quickly accessible menu using rofi.

E.g. we could have !b to search bookmarks. As soon as !b is typed the
'bang' instance of rofi exits and executes the associated command. If
the command starts up another, visually identical, rofi instance with a
preselection of different user bookmarks, it appears as if we just
jumped into a bookmark list in the same rofi instance.

Of course, the commands can be anything. They don't have to invoke more
rofi instances.
This commit is contained in:
Marty Oehme 2019-09-04 23:04:07 +02:00
parent f1bcae1767
commit 264e095224
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,6 @@
Calculator,!c,source,"rofi -show calc -modi calc -no-show-match -no-sort -theme Arc-Dark"
Clipboard,!y,source,"rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' -theme Arc-Dark"
Emojis,!e,source,"rofimoji --rofi-args '-theme sidebar'"
Youtube,!yt,source,"someroficommand"
Wikipedia,!w,source,"someroficommand"
DuckDuckGo,!ddg,source,"someroficommand"
Can't render this file because it contains an unexpected character in line 2 and column 33.