Created
May 16, 2012 19:17
-
-
Save mrkmg/2713194 to your computer and use it in GitHub Desktop.
Floating Clock for linux (tclock)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 <[email protected]> # | |
######################################################################### | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great!