# ~/.profile

# add after distibution defaults

# fancy s.m.a.r.t. data for conky
( printf "%s\n\n" "sda s.m.a.r.t. @ $(date +%F_%H:%M)"
 sudo smartctl --attributes /dev/sda | tail -26 \
  | awk '{printf "%-23s %17s\n", $2, $10}' ) > ${HOME}/.smart-data

# no graphical login and mouse movements needed 
tt=$(tty); if [ ${tt:5} == tty1 ]; then startx; sudo poweroff; fi

