update
parent
2cb4741222
commit
fba8878dbe
45
src/fetch
45
src/fetch
|
@ -15,8 +15,8 @@ _cbd=$(tput bold) # 加粗
|
|||
_cnc=$(tput sgr0) # 重置(结束)
|
||||
|
||||
# vars
|
||||
FULL=▓
|
||||
EMPTY=░
|
||||
FULL=─
|
||||
EMPTY=─
|
||||
|
||||
|
||||
name=$USER
|
||||
|
@ -147,34 +147,29 @@ cat <<EOF
|
|||
│ ${logo_3} │ │
|
||||
│ │ │
|
||||
│ ${logo_4} ├──────────────┬───────────────────────────────────┤
|
||||
│ │ | │
|
||||
│ ${logo_5} │ Host | @${host} │
|
||||
│ │ OS | │
|
||||
│ ${logo_6} │ Uptime | ${uptm} │
|
||||
│ │ | │
|
||||
│ │ │ │
|
||||
│ ${logo_5} │ Host │ @${host} │
|
||||
│ │ OS │ │
|
||||
│ ${logo_6} │ Uptime │ ${uptm} │
|
||||
│ │ │ │
|
||||
├──────────────────────────┼──────────────┴───────────────────────────────────┤
|
||||
│
|
||||
│
|
||||
│
|
||||
│
|
||||
│
|
||||
│
|
||||
│ │ │
|
||||
│ ${_cbl}Kernel${_cnc} │ ${kernel_version} │
|
||||
│ ${_cma}Packages${_cnc} │ ${packages} (apt) │
|
||||
│ ${_cgr}Shell${_cnc} │ ${shell_name} ${shell_version} │
|
||||
│ ${_ccy}Resolution${_cnc} │ 2048x1280, 2048x1280 │
|
||||
│ ${_cye}WM${_cnc} │ ${wm} │
|
||||
│ ${_cbl}Terminal${_cnc} │ ${term} │
|
||||
│ ${_cbl}CPU${_cnc} │ ${term} │
|
||||
│ ${_cbl}GPU${_cnc} │ ${term} │
|
||||
│ ${_cbl}Disk${_cnc} │ $(draw "$ram" 15 35) ${ram}% │
|
||||
│ ${_cbl}Memory${_cnc} │ $(draw "$ram" 15 35) ${ram}% │
|
||||
│ │ │
|
||||
└──────────────────────────┴──────────────────────────────────────────────────┘
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
|
||||
# environment
|
||||
printf "%b" "${_cbl} Kernel ${_cwh} ⏹ ${_cnc}${kernel_version}\n"
|
||||
printf "%b" "${_cma} Packages ${_cwh} ⏹ ${_cnc}${packages} (apt)\n"
|
||||
printf "%b" "${_cgr} Shell ${_cwh} ⏹ ${_cnc}${shell_name} ${shell_version}\n"
|
||||
printf "%b" "${_cye} Terminal ${_cwh} ⏹ ${_cnc}${term}\n"
|
||||
printf "%b" "${_ccy} WM ${_cwh} ⏹ ${_cnc}${wm}\n"
|
||||
printf "%b" "${_cbl} Disk ${_cwh} ⏹ ${_cnc}${storage}\n"
|
||||
printf "%b" "${_cbl} Memery ${_cwh} ⏹ ${_cnc}$(draw "$ram" 15 35) ${ram}%\n"
|
||||
printf "\n" "${_cnc}"
|
||||
|
||||
|
||||
|
||||
# hide the cursor and wait for user input
|
||||
tput civis
|
||||
|
|
Loading…
Reference in New Issue