Skip to main content

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

If you don't want to keep the terminal open after the command has finished, prepend the command with [NOKEEP]. If you don't want to run the command in a terminal, prepend the command with [NOTERM].

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. Currently xterm is used to display the result of the command and it is expected to be installed.

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

  • new field for optional working directory
  • support more menu systems (e.g. rofi, openbox)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tcim-0.2.0.tar.gz (16.2 kB view details)

Uploaded Source

File details

Details for the file tcim-0.2.0.tar.gz.

File metadata

  • Download URL: tcim-0.2.0.tar.gz
  • Upload date:
  • Size: 16.2 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

Hashes for tcim-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4326f80ba65d09c0b0042a8107164e89fbbd1735b0c3005f810794775350141c
MD5 a7f5128845b4a0e32eb11de55db17fb2
BLAKE2b-256 9ec132d86ff3c9994f2162d262f21511319ce96142417801310b00af6acb0b1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page