1
submitted 3 years ago* (last edited 3 years ago) by rmc0@lemmy.ml to c/bash@lemmy.ml

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

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 11 Apr 2021
1 points (100.0% liked)

Bash

698 readers
19 users here now

Talk about the Bash Shell and Bash scripting

founded 4 years ago
MODERATORS