[scripts] feat : fetch infos more robust on wm
This commit is contained in:
parent
701038dc50
commit
7fe8e25f1e
|
@ -18,8 +18,8 @@ os='Arch Linux'
|
||||||
kernel="$(uname -sr)"
|
kernel="$(uname -sr)"
|
||||||
uptime="$(uptime -p | sed 's/up //')"
|
uptime="$(uptime -p | sed 's/up //')"
|
||||||
packages="$(pacman -Q | wc -l)"
|
packages="$(pacman -Q | wc -l)"
|
||||||
shell="$(basename "$SHELL")"
|
shell="$($SHELL --version | sed -e 's/(.*)//')"
|
||||||
wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | cut -d ' ' -f 2)"
|
wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | rev | cut -d ' ' -f 1 | rev)"
|
||||||
|
|
||||||
# parse the '/proc/meminfo' file splitting on ':' and 'k'.
|
# parse the '/proc/meminfo' file splitting on ':' and 'k'.
|
||||||
# the format of the file is 'key: 000kB' and an additional
|
# the format of the file is 'key: 000kB' and an additional
|
||||||
|
|
Reference in New Issue