Skip to content

Instantly share code, notes, and snippets.

@mrkmg
Created May 16, 2012 19:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrkmg/2713194 to your computer and use it in GitHub Desktop.
Save mrkmg/2713194 to your computer and use it in GitHub Desktop.
Floating Clock for linux (tclock)
#!/bin/sh
### Floating Clock ######################################################
# Created by Scott Garrett https://github.com/Wintervenom #
# Found via https://bbs.archlinux.org/viewtopic.php?pid=557778#p557778 #
# Maintained By Kevin Gravier <kevin@mrkmg.com> #
#########################################################################
cols=`tput cols`
touch /tmp/tclock.run
while [ -e /tmp/tclock.run ]; do
tput sc
tput cup 0 $((cols - 13))
printf " $(date +%r) "
tput rc
sleep 1
done
@haiy
Copy link

haiy commented Nov 17, 2013

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment