You use dmenu and want to build menus in a straight forward way? What about even having submenus? tmenu may help.
To install tmenu
you can edit the Makefile
to match your local setup (tmenu
is installed into the /usr/local/bin
by default).
Afterwards enter the following command to install tmenu
(if necessary as root).
sudo make install
tmenu always needs a yaml file to express the custom menu structure, like this one:
quick_menu:
network: x-terminal-emulator -e nmtui
screenshot:
selection: scrot -s '/home/user/%Y-%m-%d-%H_%M_%S.jpg'
fullscreen: scrot '/home/user/%Y-%m-%d-%H_%M_%S.jpg'
power:
shutdown: shutdown -h now
reboot: reboot
lock: slock
dotfiles:
vim: vim $HOME/.vimrc
bash: vim $HOME/.bashrc
tmenus: vim $HOME/tmenus
another_option: notify-send "you get the idea"
So when you call tmenu followed by the file, the menu is opened:
$ tmenu quick_menu.yaml
Edimar Calebe Castanho (Calebe94) | Gabriel Gaboardi (Gabo) |
All software is covered under GNU General Public License v3.0.