Merge branch 'dev' into gentoo

scripts: fetch is more robust about wm and shell
This commit is contained in:
David JULIEN 2021-11-23 01:08:05 +01:00
commit 186732989f
No known key found for this signature in database
GPG Key ID: 4B388E8BD9D47382

View File

@ -20,7 +20,8 @@ kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(printf '%s\n' /var/db/pkg/*/* | wc -l)" packages="$(printf '%s\n' /var/db/pkg/*/* | wc -l)"
shell="$($SHELL --version | sed -e 's/(.*)//')" shell="$($SHELL --version | sed -e 's/(.*)//')"
wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | cut -d ' ' -f 2)" shell="$($SHELL --version | sed -e 's/(.*)//')"
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