Added charging status and battery capacity
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
91ed363182
commit
7199787f94
11
.tmux.conf
11
.tmux.conf
@ -1,8 +1,11 @@
|
||||
# Colors
|
||||
orange='#eb7718'
|
||||
red='#ef3e36'
|
||||
green='#6da34d'
|
||||
dark_blue='#001b2e'
|
||||
blue='#294c60'
|
||||
light_blue='#adb6c4'
|
||||
violet='#413c58'
|
||||
beige='#ffefd3'
|
||||
black='#000000'
|
||||
white='#ffffff'
|
||||
@ -27,11 +30,11 @@ set -g set-titles on
|
||||
set -g status-position bottom
|
||||
set -g status-justify left
|
||||
set -g status-style "bg=${dark_blue} fg=${white}"
|
||||
set -g status-right-length 50
|
||||
set -g status-left-length 20
|
||||
set -g status-right-length 150
|
||||
set -g status-left-length 50
|
||||
|
||||
set -g status-left ''
|
||||
set -g status-right "#(echo $USER)@#h #[fg=${black}, bg=${light_blue}] #(cat /proc/loadavg | cut -d' ' -f 1-3) #[bg=${beige}] %d/%m %H:%M:%S "
|
||||
set -g status-left ""
|
||||
set -g status-right "#(whoami)@#h #[bg=${violet}] #(if grep -Fxq "1" /sys/class/power_supply/AC/online; then echo "⚡"; fi)#(if [ -e /sys/class/power_supply/BAT0 ]; then echo '%' | cat /sys/class/power_supply/BAT0/capacity - | tr '\n' ' ' ; fi) #[fg=${black}, bg=${light_blue}] #(cat /proc/loadavg | cut -d' ' -f 1-3) #[bg=${beige}] %d/%m %H:%M:%S "
|
||||
|
||||
setw -g window-status-current-style "bg=${orange} bold"
|
||||
setw -g window-status-current-format "#[fg=${dark_blue}] #I#[fg=${black}]:#[fg=${white}]#W#[fg=${blue}]#F "
|
||||
|
Loading…
Reference in New Issue
Block a user