A few notes for creating a terminal-based dashboard
function _dash_init () {
tput civis
}
function dash_clock () {
_dash_init
while true; do
tput clear
date +"%b %d %n%H : %M : %S" | figlet -f small
sleep 1
done
}
function dash_weather () {
_dash_init
while true; do
tput clear
wego Seattle 1
sleep 900 # 15 minutes
done
- Terminal dictionary: http://www.unixmen.com/look-dictionary-definitions-via-terminal/
- English dictionary word list: https://github.com/dwyl/english-words
while true; do tput clear; date +"%b %d %n%H : %M : %S" | figlet -f small; sleep 1; done
while true; do tput clear; wego Seattle 1; sleep 900; done
tput civis # Make invisible
tput cnorm # Make normal
- xtrlock - Lock without hiding the screen