mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
giving some props to the creators
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Give a battery name (e.g. BAT0) as an argument.
|
||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||
|
||||
capacity=$(cat /sys/class/power_supply/"$1"/capacity) || exit
|
||||
time=$(acpi | awk '{ print $5 }')
|
||||
|
Reference in New Issue
Block a user