mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
feat: add battery percent padding
This commit is contained in:
parent
129a370ffd
commit
547fe8f6f1
1 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ battery_status() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
CYGWIN* | MINGW32* | MSYS* | MINGW*)
|
CYGWIN* | MINGW32* | MSYS* | MINGW*)
|
||||||
# leaving empty - TODO - windows compatability
|
# leaving empty - TODO - windows compatibility
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*) ;;
|
*) ;;
|
||||||
|
|
@ -119,7 +119,7 @@ battery_label() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
bat_stat=$(battery_status)
|
bat_stat=$(battery_status)
|
||||||
bat_perc=$(battery_percent)
|
bat_perc=" $(battery_percent)"
|
||||||
bat_label=$(get_tmux_option "@tmux2k-battery-label" "$(battery_label "$bat_perc")")
|
bat_label=$(get_tmux_option "@tmux2k-battery-label" "$(battery_label "$bat_perc")")
|
||||||
|
|
||||||
if [ -z "$bat_stat" ]; then
|
if [ -z "$bat_stat" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue