sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 0ddd244960cd2e3e2567970a7cbe47942009e1c7
parent 698182711875149d1b86fc1f2aac95a2d0a825a4
Author: Charbel Abi Daher <abidahercharbel@gmail.com>
Date:   Sun, 23 Aug 2020 22:47:58 +0300

Fixed shell script to show remaining memory instead of used

Diffstat:
Mdwm.suckless.org/status_monitor/index.md | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dwm.suckless.org/status_monitor/index.md b/dwm.suckless.org/status_monitor/index.md @@ -95,7 +95,7 @@ Helper Functions In The Shell ----------------------------- * [posix scripts](https://notabug.org/kl3/scripts) - basic collection of simple, fully POSIX sh compliant scripts to get various system information * [i3blocks-contrib](https://github.com/vivien/i3blocks-contrib) - collection of python, perl and shell scripts -* Free memory: `free -h | awk '(NR==2){ print $3 }'` +* Free memory: `free -h | awk '(NR==2){ print $4 }'` * Volume (device Master): `amixer get Master | awk -F'[][]' 'END{ print $4":"$2 }'` * Keyboard layout: `setxkbmap -query | awk '/layout/{ print $2 }'` * Empty disk space (mountpoint /home): `df -h | awk '{ if ($6 == "/home") print $4 }'`