Kernel: Print kernel name by default

This commit is contained in:
Dylan Araps 2016-10-29 14:33:36 +11:00
parent 0871c362ef
commit 7c327683a8
4 changed files with 10 additions and 6 deletions

View file

@ -267,9 +267,11 @@ gettitle() {
getkernel() {
case "$kernel_shorthand" in
"on") kernel="$(uname -r)" ;;
"off") kernel="$(uname -srm)" ;;
"on") kernel_flags="-sr" ;;
"tiny") kernel_flags="-r" ;;
"off") kernel_flags="-srm" ;;
esac
kernel="$(uname $kernel_flags)"
}
# }}}
@ -2886,7 +2888,8 @@ usage() { cat << EOF
NOTE This only works on linux.
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
NOTE: This is only possible on Linux, macOS, and Solaris
--kernel_shorthand on/off Shorten the output of kernel
--kernel_shorthand Shorten the output of kernel
Takes: on, tiny, off
--uptime_shorthand on/off Shorten the output of uptime (tiny, on, off)
--refresh_rate on/off Whether to display the refresh rate of each monitor
Unsupported on Windows