Skip to main content

A dmenu wrapper script

Project description

[![Latest Version](https://pypip.in/version/itemizer/badge.svg)](https://pypi-hypernode.com/pypi/itemizer/) [![Downloads](https://pypip.in/download/itemizer/badge.svg)](https://pypi-hypernode.com/pypi/itemizer/) [![Supported Python versions](https://pypip.in/py_versions/itemizer/badge.svg)](https://pypi-hypernode.com/pypi/itemizer/) [![Development Status](https://pypip.in/status/itemizer/badge.svg)](https://pypi-hypernode.com/pypi/itemizer/) [![License](https://pypip.in/license/itemizer/badge.svg)](https://pypi-hypernode.com/pypi/itemizer/)

itemizer

A [dmenu](http://tools.suckless.org/dmenu/) wrapper script that:

  1. Lets you define menu items as key: value pairs in a [YAML](http://yaml.org/) file, like:

    Firefox: firefox Terminal: gnome-terminal Nautilus: nautilus –no-desktop –new-window

    The keys are what will be shown in dmenu. The values are the commands that will be run when you select the keys from dmenu. Unlike the usual way of using dmenu, the items shown in the menu don’t have to be the same as the commands executed when they’re selected.

  2. Sorts the items in dmenu most-recently-used first (not yet implemented!)

Installation

First install dmenu, then:

pip install itemizer

Usage

itemizer_run

It accepts all the same command-line arguments as dmenu:

itemizer_run -f -i -nb “#222222” -nf “#bbbbbb” -sb “#005577” -sf “#eeeeee” -fn “--terminus-medium-r---16-------

To customize the menu copy the [default itemizer.yaml file](itemizer/itemizer.yaml) to ~/.itemizer.yaml and edit it.

Itemizer is composed of two subcommands:

  1. itemizer list prints a newline-separated list of all the keys from your items file to stdout, suitable for piping into dmenu.

  2. itemizer show reads a key from stdin, looks up its value in your items file, and prints it to stdout. Pipe the output from dmenu into itemizer show, then pipe the ouput from itemizer show to sh.

Run itemizer -h for complete documentation of the options and subcommands.

[itemizer_run](bin/itemizer_run) is a shell script that ties itemizer list, dmenu, itemizer show and sh together, and that passes any command-line arguments that you pass it on to dmenu.

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

itemizer-1.1.1.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file itemizer-1.1.1.tar.gz.

File metadata

  • Download URL: itemizer-1.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for itemizer-1.1.1.tar.gz
Algorithm Hash digest
SHA256 b89d969bc767d8cdca774baf11bfd865b6538f595e8c223c9b3067360ffbdfd7
MD5 f627dded3a82a7ce2d718aead97ecd73
BLAKE2b-256 3c7692dd4cb87246c6b922f49f177a106b55b42ca76df5bfc988948a4f5703d7

See more details on using hashes here.

Supported by

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