feat: add tmux conf
This commit is contained in:
parent
e24e1ce1a0
commit
fe7fe845e5
2 changed files with 7 additions and 0 deletions
6
scripts/battery.sh
Executable file
6
scripts/battery.sh
Executable 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
1
tmux.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
set -g status-right "#(battery.sh) | %R %d-%b"
|
Loading…
Reference in a new issue