Better verbose mode instructions
This commit is contained in:
parent
b37838794e
commit
d0dbe0325e
|
@ -7,5 +7,8 @@ Neofetch version
|
||||||
Verbose log
|
Verbose log
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Uncomment line 2 of the script, run neofetch again and upload the output to pastebin, gist or equiv.
|
1. Uncomment line 2 of the script.
|
||||||
|
2. Run `neofetch 2> neofetchlog`
|
||||||
|
3. Upload the contents of `neofetchlog` to pastebin, gist or equivalent.
|
||||||
|
|
||||||
|
|
||||||
|
|
4
neofetch
4
neofetch
|
@ -976,7 +976,7 @@ getcpu () {
|
||||||
scaling_max) speed_type="scaling_max_freq" ;;
|
scaling_max) speed_type="scaling_max_freq" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
read -r speed < \
|
read -t 1 -r speed < \
|
||||||
/sys/devices/system/cpu/cpu0/cpufreq/${speed_type}
|
/sys/devices/system/cpu/cpu0/cpufreq/${speed_type}
|
||||||
|
|
||||||
speed=$((speed / 100000))
|
speed=$((speed / 100000))
|
||||||
|
@ -1991,7 +1991,7 @@ getimage () {
|
||||||
|
|
||||||
# The ascape code above prints the output AFTER the prompt so this
|
# The ascape code above prints the output AFTER the prompt so this
|
||||||
# loop below reads it as input. wtf xterm
|
# 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
|
# Split the string
|
||||||
term_size=${term_size//'['}
|
term_size=${term_size//'['}
|
||||||
|
|
Reference in New Issue