UP | HOME
grm blog. Work is copyrighted unless otherwise stated.
2021-05-13 Thu
^

xlnch menus

Here is how I use xlnch to build menus for quick access to everything.

I keep all my xlnch config files under ~/.xlnch, the ~/.xlnch/start file is invoked via a keybinding from my window manager. Here is an example:

#!/bin/xlnch
b:browse:~/.xlnch/browse
F:files:~/.xlnch/files
f::firefox

Pressing f will launch firefox while b and F will launch submenues. Here is ~/.xlnch/browse for example:

#!/bin/xlnch
b:blog:firefox "https://portal.eyesin.space/"
g:git:firefox "https://git.eyesin.space/"
d:drew:firefox "https://drewdevault.com/"
D:drew gemini:emacs --eval "(progn (require 'elpher) (elpher-go \"gemini://drewdevault.com/\"))"
b:back:~/.xlnch/start

Here I can browse some frequent sites and also go back to the previous menu.