this post was submitted on 11 Apr 2021
2 points (100.0% liked)

Bash

705 readers
14 users here now

Talk about the Bash Shell and Bash scripting

founded 4 years ago
MODERATORS
 

HI,

I don't use bar and status, only WM and some apps, so I use PS1 for see clock and battery status, clock change each time I enter a new prompt line but status battery change only with new shell

example :

PS1="$(cat /sys/class/power_supply/BAT0/capacity)% \A"

thanks

you are viewing a single comment's thread
view the rest of the comments
[–] answersplease77 1 points 1 year ago

do you have power management? battery watcher? any script to keep your laptop from reaching low battery level?