tmux: add battery status (wip)

This commit is contained in:
2022-09-01 17:49:34 +03:00
parent db3bf93b4f
commit b73ae5994d
2 changed files with 7 additions and 1 deletions

6
bin/tmux_battery.sh Executable file
View File

@@ -0,0 +1,6 @@
#! /bin/bash
capacity=$(cat /sys/class/power_supply/BAT0/capacity)
status=$(cat /sys/class/power_supply/BAT0/status)
echo "Battery: $capacity%"