https://github.com/dotlambda/dmensamenu
Print German canteen menus using dmenu and OpenMensa
https://github.com/dotlambda/dmensamenu
dmenu openmensa
Last synced: 10 months ago
JSON representation
Print German canteen menus using dmenu and OpenMensa
- Host: GitHub
- URL: https://github.com/dotlambda/dmensamenu
- Owner: dotlambda
- License: mit
- Created: 2017-06-26T12:23:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T15:50:29.000Z (over 5 years ago)
- Last Synced: 2025-08-23T12:37:44.752Z (10 months ago)
- Topics: dmenu, openmensa
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dmensamenu
==========
Print canteen menus using `dmenu`.
The menus are fetched from https://openmensa.org/.
Requirements
------------
Dmensamenu is written in Python 3 and depends on [Requests](http://python-requests.org/).
It also requires [dmenu](https://tools.suckless.org/dmenu/) to be installed.
Installation
------------
### From your package repo
[](https://repology.org/metapackage/dmensamenu)
### From source
$ pip install --user git+https://github.com/dotlambda/dmensamenu.git
Usage
-----
$ dmensamenu ID
where *ID* is the OpenMensa canteen ID.
If you don't know yours, just use `dmensamenu --search` and search for it.
After pressing Return, the ID will be printed to stdout.
You can even pass extra arguments to dmenu:
$ dmensamenu --dmenu "dmenu -l \$lines -nb \#101b2a -nf \#dcdccc -sb \#dcdccc -sf \#101b2a -fn 'Fira Mono'" 281
or replace dmenu by Rofi:
$ dmensamenu --dmenu "rofi -dmenu -i" --search --city Berlin
See `dmensamenu --help` for all available options.