tmlshock

command module
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 7 Imported by: 0

README

This a hard fork of tmlshock which supports 24-bit (RGB) colors.
It started by a simple fix which evolves in playing around bubbletea and lipgloss.

It happens that bubbletea/lipgloss are easier to use than github.com/nsf/termbox-go but with lesser perforrmance when displaying millisecond (some tearing appears).
As a result in this fork the Timer & Stopwatch only display decisecond which is quick enough for human.

About tmlshock

Terminal ttl clock, including customizable clock timer and stopwatch

feature

[!NOTE] This image comes from the command zellij -l .resources/zellij_tmlshock.layout.kdl

Contents

Install

See release or run go install github.com/mdouchement/tmlshock/v2@latest.

Settings

Color

You can use color codes (down below), use color names or hex color codes

[!NOTE] Hexa color need a compatible terminal\

color

black
blue
cyan
dark-gray
green
light-green
light-blue
light-cyan
light-gray
light-magenta
light-red
light-yellow
magenta
light-red
light-yellow
red
white
yellow

Example:

tmlshock clock -c red
tmlshock clock -c 1
tmlshock clock -c ff0000

Date format

tmlshock uses Golang's time format

To use a custom date format just enter -l 02/01/2006(DD/MM/YYYY)

Example

tmlshock clock -d -l 02/01/2006

12-hour format

[!NOTE] This option only for clock.

To use a 12-hour format just enter -H

Example

tmlshock clock -H

Timer duration format

[!NOTE] This option only for timer.

tmlshock uses Golang's duration format.

Example

tmlshock timer 4h42m10s
tmlshock timer 2m
tmlshock timer 1h4s

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL