Added experimental birthday function
This commit is contained in:
parent
5542cc8ce1
commit
825d5f68d2
1 changed files with 24 additions and 0 deletions
24
fetch
24
fetch
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue