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

tput civis
sleep=$(( 60 - $(date +'%S' | sed 's/^0//') ))
while :; do
	if [ $(apm -a) -eq 1 ]; then
		printf '%3s%%' "$(apm -l)"
	else
		test $(apm -b) -eq 2 && tput setaf 1 bold
		printf '%3.3sm' "$(apm -m)"
		tput sgr0
	fi
	printf ' %s\r' "$(date +'%a %H:%M')"
	sleep $sleep
	sleep=60
done
-0500'>2018-02-01Remove fb.c and color.cJune McEnroe 2018-02-01Add gfxxJune McEnroe 2018-01-31Map \h to sort includesJune McEnroe 2018-01-31Only load 128 glyphs in fbclockJune McEnroe 2018-01-30Style tweak fbclockJune McEnroe 2018-01-30Remove Tarmak and Colemak keylayoutsJune McEnroe 2018-01-29Generalize hnelJune McEnroe 2018-01-29Remove Tarmak remappings from vimJune McEnroe 2018-01-29Switch back to QWERTY on LinuxJune McEnroe 2018-01-29Take fbclock font in env varJune McEnroe 2018-01-29Support fbclock fonts wider than 8June McEnroe 2018-01-29Take font path on fbclock argvJune McEnroe 2018-01-29Add fbclockJune McEnroe 2018-01-29Remove color from MakefileJune McEnroe 2018-01-29Set t_Co = 8June McEnroe 2018-01-29Add :Q command aliasJune McEnroe 2018-01-29Add setuid target for briJune McEnroe 2018-01-28Add init function to fb interfaceJune McEnroe 2018-01-28Add color.cJune McEnroe