Battery info is not included in tmux right status if on a desktop
without battery.
This commit is contained in:
parent
51097e4aae
commit
fd811cbfb3
1 changed files with 6 additions and 2 deletions
|
|
@ -9,7 +9,11 @@ battery_result=$($HOME/.config/confutils/get-battery.sh)
|
||||||
|
|
||||||
space=" "
|
space=" "
|
||||||
session=$(format_for_tmux "#S")
|
session=$(format_for_tmux "#S")
|
||||||
battery=$(format_for_tmux "$battery_result")
|
|
||||||
calendar=$(format_for_tmux " $(date +"%a %b %d")")
|
calendar=$(format_for_tmux " $(date +"%a %b %d")")
|
||||||
|
|
||||||
|
if [ -n "$battery_result" ]; then
|
||||||
|
battery=$(format_for_tmux "$battery_result")
|
||||||
echo $session$space$battery$space$calendar
|
echo $session$space$battery$space$calendar
|
||||||
|
else
|
||||||
|
echo $session$space$calendar
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue