terminal commands in menus
Project description
tcim - terminal commands in menus
An easy way to call hard to remember or complex terminal commands or scripts from a menu.
supported menu systems
- dmenu
- xdg desktop menu
files
commands.tsv contains your commands and is located in ~/.config/tcim.
It can be edited using the menu (see usage) or manually using your favourite text editor.
Since it is a .tsv file, you could even use a spreadsheet program like libreoffice calc.
file format
commands.tsv is a tab-separated values file:
name <tab> comment <tab> command
example:
list filesystems report file system space usage df -h
The command can't contain double quotes ".
If you need double quotes, move the command into a script file and use it in the command field.
installation
pip install tcim
usage
dmenu
call tcim-dmenu to list the available commands in a dmenu.
xdg desktop menu
call tcim-update-xdg-menu to update your desktop menu, used by many desktop environments.
Once called, everything (e.g. editing the commands-file) is available from the menu.
uninstall
pip uninstall tcim doesn't uninstall .desktop menu entries created by tcim-update-xdg-menu.
You can use this command to get rid of them:
xdg-desktop-menu uninstall command-menu.directory ~/.local/share/applications/command-*
todo
- [NOTERM] don't start in terminal
- [NOKEEP] don't keep terminal open
- new field for optional working directory
- support more menu systems (e.g. rofi, openbox)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tcim-0.1.0.tar.gz.
File metadata
- Download URL: tcim-0.1.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7f388ebd5bddc959baaa49a2fb5a508af500b2cac2c6066fa3f0657ef5968ae
|
|
| MD5 |
536880364538348ea304c816fc016c54
|
|
| BLAKE2b-256 |
c230d1e481b0b989f3ff499723940962ffb5be5ee69309804b2803f7d67177c2
|