Better verbose mode instructions
This commit is contained in:
parent
b37838794e
commit
d0dbe0325e
2 changed files with 6 additions and 3 deletions
4
neofetch
4
neofetch
|
|
@ -976,7 +976,7 @@ getcpu () {
|
|||
scaling_max) speed_type="scaling_max_freq" ;;
|
||||
esac
|
||||
|
||||
read -r speed < \
|
||||
read -t 1 -r speed < \
|
||||
/sys/devices/system/cpu/cpu0/cpufreq/${speed_type}
|
||||
|
||||
speed=$((speed / 100000))
|
||||
|
|
@ -1991,7 +1991,7 @@ getimage () {
|
|||
|
||||
# The ascape code above prints the output AFTER the prompt so this
|
||||
# loop below reads it as input. wtf xterm
|
||||
read -d c -s -r term_size; stty echo
|
||||
read -t 1 -d c -s -r term_size; stty echo
|
||||
|
||||
# Split the string
|
||||
term_size=${term_size//'['}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue