feat: add tmux conf

This commit is contained in:
rick 2021-12-09 20:20:02 +01:00
parent e24e1ce1a0
commit fe7fe845e5
Signed by: Rick
GPG key ID: 2B593F087240EE99
2 changed files with 7 additions and 0 deletions

6
scripts/battery.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
percent=$(cat /sys/class/power_supply/BAT0/capacity)
charging=$(cat /sys/class/power_supply/BAT0/status | grep "^C")
[ -z "$charging" ] && status=" " || status="*"
echo $percent"% [$status]"

1
tmux.conf Normal file
View file

@ -0,0 +1 @@
set -g status-right "#(battery.sh) | %R %d-%b"