fix: WM retrieving

This commit is contained in:
David JULIEN 2021-03-16 00:17:32 +01:00
parent 2e215e97d0
commit 316cbaae09
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ 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="$(basename "$SHELL")"
wm="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)" wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | cut -d ' ' -f 2)"
# 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