sites

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

commit 5efc012923e28e3d4ec9489cf65238233f1a0237
parent 59697deda71f676f605c7e26c00516ac5ba5a824
Author: Klemens Nanni <kl3@posteo.org>
Date:   Wed, 17 Feb 2016 05:14:05 +0100

[dwm] Add another example for battery status

Diffstat:
Mdwm.suckless.org/scripts/simple_monitors.md | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dwm.suckless.org/scripts/simple_monitors.md b/dwm.suckless.org/scripts/simple_monitors.md @@ -12,10 +12,16 @@ Battery Your battery may be called something different, so check /proc/acpi for its name. Also, change 89000 to whatever the capacity is for your battery. This returns the remaining battery power as a percentage. - $(echo $(awk '/rem/ { print $3/89000 }' /proc/acpi/battery/BAT0/state| hoc| cut -c3,4)% + $(echo $(awk '/rem/ { print $3/89000 }' /proc/acpi/battery/BAT0/state| hoc| cut -c3,4)% hoc comes from plan9port or 9base. +Depending on your system, you can also use + + cat /sys/class/power_supply/BAT0/capacity + +to get your battery status in percentage. + Ram used ---