Skip to content

A simple dmenu wrapper to create custom menus.

License

Notifications You must be signed in to change notification settings

TinyToolSH/tlaunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tlaunch

A simple dmenu wrapper to create custom menus

You use dmenu and want to build menus in a straight forward way? What about even having sub-menus? tlaunch may help.

Dependencies

Instalation

To install tlaunch you can edit the Makefile to match your local setup (tlaunch is installed into the /usr/local/bin by default).

Afterwards enter the following command to install tlaunch (if necessary as root).

sudo make install

Usage

tlaunch 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
    tlaunchs: vim $HOME/tlaunchs
  another_option: notify-send "you get the idea"

The menu file should be assigned to the TLAUNCH_FILE variable. It can be used as an environment variable at your .bashrc or .zshrc file. So when you call tlaunch, the menu is opened:

Or TLAUNCH_FILE can be assigned when calling tlaunch:

$ export TLAUNCH_FILE=quick_menu.yaml; tlaunch
$ #or
$ echo "export TLAUNCH_FILE=quick_menu.yaml" >> ~/.bashrc
$ tlaunch

tlaunch example

Team

Edimar Calebe Castanho Gabriel Gaboardi
Edimar Calebe Castanho (Calebe94) Gabriel Gaboardi (Gabo)

License

All software is covered under GNU General Public License v3.0.