Home

Awesome

zeitkatze

C/C++ CI AUR version License: MIT

Zeitkatze is time cat -- literally

=(^.^)= =(ˇ.ˇ)= =(o.o)m =(*.*)= =(^.^)= =(ˇ.ˇ)= =(o.o)m =(*.*)= =(^.^)= =(ˇ.ˇ)= =(o.o)m =(*.*)=

Table of contents

  1. About
  2. Installataion
    1. For Arch-based distros
    2. Manual installation
  3. Development
  4. Usage
  5. Future ideas
  6. Issues
  7. Bugs

1. About

What's the simplest stopwatch in a linux console? Well, just type time cat to start, and push ctrl-c to stop. Zeitkatze is the same thing, with just a little extra.

It continuously updates the total elapsed time display, you can hit ctrl-c once to display a split time, and if you quit (hitting ctrl-d, or ctrl-c twice in succession, or q), zeitkatze prints the total time and exits. You can measure a new split time (or "lap time") by pressing ctrl-c once or by hitting Enter.

2. Installation

2.1 For Arch-based distros

If you run an Arch-based distro (Arch, Manjaro, Artix, etc.), you can install it from the AUR, e.g. via the yay package wrapper:

yay -S zeitkatze

2.2 Manual installation

2.2.1 Installation

You can download the repo as a zip file and install it by pasting the following commands in your terminal:

cd `mktemp -d`
wget https://github.com/leonmavr/zeitkatze/archive/refs/heads/master.zip
unzip master.zip
cd zeitkatze-master
sudo make install

It will be written in /usr/bin/zeitkatze.

2.2.2 Uninstallation

To uninstall it manually you can execute the following from any terminal:

sudo rm `which zeitkatze` && rm -rf ~/.config/zeitkatze

Or from the root level of the repository:

sudo make uninstall

3. Development

To execute any of the following steps, it's assumed that you're in the root directory (same directory as the Makefile).

To compile:

make

To clean:

make clean

You can use it by simply running the executable. It accepts certain command line options described in section 4 -- Usage.

./zeitkatze

Don't forget that the naming coding coding conventions follow the C++ Google standard (example) and the spacing and indentation convention the clang format. You can execute the script scripts/clang_format.sh to format all source files.

4. Usage

Short specifierLong specifierArgument typeDefaultDescription
-n--no-colorNoneOffDisables colors when formatting the times on the terminal
-p--precisioninteger2How many decimal places to show when measuring time
-o--one-lineNoneOffWhether or not to print the output in one line - in this case only prints lap times
-r--reset-emotesNoneOffIf true, re-writes (and overwrites) the default cat emotes at file ~/.config/zeitkatze/cats.txt
-h--helpNoneOffPrint usage instructions and exit

Other features/tips:

<p float="left"> <img src="https://raw.githubusercontent.com/leonmavr/zeitkatze/master/assets/demo.gif" width="450" /> <img src="https://raw.githubusercontent.com/leonmavr/zeitkatze/master/assets/demo_one_line.gif" width="450" /> </p>

5. Future ideas

6. Issues

7. Bugs