|
|
|
|
@ -53,6 +53,7 @@ printinfo () { |
|
|
|
|
info "GPU" gpu |
|
|
|
|
info "Memory" memory |
|
|
|
|
|
|
|
|
|
# info "Birthday" birthday |
|
|
|
|
# info "Font" gtkfont |
|
|
|
|
# info "Disk" disk |
|
|
|
|
# info "Resolution" resolution |
|
|
|
|
@ -1174,6 +1175,29 @@ getdisk () { |
|
|
|
|
|
|
|
|
|
# }}} |
|
|
|
|
|
|
|
|
|
# Birthday {{{ |
|
|
|
|
|
|
|
|
|
getbirthday () { |
|
|
|
|
case "$os" in |
|
|
|
|
"Linux") |
|
|
|
|
birthday="$(ls -alct --full-time / | awk '/lost\+found/ {printf $6 " " $7}')" |
|
|
|
|
birthday=${birthday%:*} |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
"Mac OS X") |
|
|
|
|
birthday="$(ls -alctT /var/log/CDIS.custom | tail -1 | awk '{printf $6 " " $7 " " $9 " " $8}')" |
|
|
|
|
birthday=${birthday%:*} |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
*) |
|
|
|
|
birthday="Unknown" |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
esac |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# }}} |
|
|
|
|
|
|
|
|
|
# Terminal colors {{{ |
|
|
|
|
|
|
|
|
|
getcols () { |
|
|
|
|
|