summary refs log tree commit diff
path: root/home/.local/bin/clock
blob: 8f30ea8e5fcb6dd60b5928f7ceb677bc990c4d5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -eu

tput civis
sleep=$(( 60 - $(date +'%S') ))
while :; do
	printf '%3sm %s' "$(apm -m)" "$(date +'%a %H:%M')"
	sleep $sleep
	sleep=60
done
n up hilex code somewhatJune McEnroe 2020-12-29Match lex/yacc %% %{ %} lines as MacroJune McEnroe 2020-12-29Match top-level C definitions as IdentifierTagJune McEnroe 2020-12-29Match C type declarations as IdentifierTagJune McEnroe 2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe You can tell I was just copying the HTML code huh. 2020-12-29Add hilex HTML outputJune McEnroe