diff --git a/.local/bin/fetch b/.local/bin/fetch index c130ef9..dfb3e71 100755 --- a/.local/bin/fetch +++ b/.local/bin/fetch @@ -20,7 +20,8 @@ kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(printf '%s\n' /var/db/pkg/*/* | wc -l)" 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'. # the format of the file is 'key: 000kB' and an additional