Download

nowopen

A tool for viewing places that are now open

  • CLI
  • Lua
Code 261 linesLua 232Makefile 29
Binary data 113.6 KiBGIF 113.6 KiB
NameModifiedLinesSize
doc/ 43 lines11% of this folder's lines 1.1 KiB<1% of this folder's bytes
LICENSE 20 lines5% of this folder's lines 1.1 KiB<1% of this folder's bytes
Makefile 33 lines8% of this folder's lines 1.3 KiB<1% of this folder's bytes
README.md 35 lines9% of this folder's lines 1.2 KiB<1% of this folder's bytes
example_businesshours 17 lines4% of this folder's lines 443 B<1% of this folder's bytes
nowopen * 248 lines63% of this folder's lines 8.4 KiB7% of this folder's bytes
nowopen_preview.gif 0 lines0% of this folder's lines 113.6 KiB89% of this folder's bytes

README.md

nowopen

nowopen is a simple program to display which places are currently open.

Preview

Installing

sudo make install to install, and sudo make uninstall to uninstall. You should also create a file to store business hours in at either ~/.local/share/nowopen/businesshours (recommended) or ~/.businesshours. An example businesshours file is provided, so you can get started by running mkdir -p ~/.local/share/nowopen && cp example_businesshours ~/.local/share/nowopen/businesshours. The businesshours format looks like:

Mario Bros Plumbing (plumbers):
    7am-6:30pm
    sun: closed

Usage

Once you have a businesshours file, run nowopen [tag1 tag2...]. Establishments matching any of the specified tags (prefix matching is used) and the amount of time till they close will be displayed. E.g. nowopen plumber will show how long "Mario Bros Plumbing" is open.

Flags

  • -h/--help: Print the usage and exit.
  • -w/--where: Print where the config file is stored and exit.
  • -e/--edit: Edit the config file and exit.
  • -r/--random: Pick a single random option.
  • -p/--plain: Print the results to stdout in plain text.