Bash prompt temp batery Mobian ppp
#1
Hi .
Well i was trying Mobian  and i love the little tweak of adding on .bashrc the battery prompted when ssh connection.
and i realize the path have change and  variables and so, and still there is no wiki so i will share here.
The new thing is just adding and change a couple of things, here we go:
I just create a var.  CAPACI and call it with the new  path.

Code:
# -= start battery prompt =-
battery_status(){
BATTERY=/sys/class/power_supply/rk818-charger/ #meu ppp ficar vari CAPACI nou path
CAPACI=/sys/class/power_supply/battery/ # mee ppp crido CAPACI nou path
BATSTATE=$(cat ${BATTERY}/status)
CHARGE=$(cat ${CAPACI}/capacity)
rest of the code dont change.




note:  powersuply app happens the same.
that's it. Should work with this.

ello.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  bookworm vs trixie discussion for mobian in pinephone pro. zetabeta 9 1,467 02-20-2024, 12:40 PM
Last Post: mburns
  Disable the GDM service in Mobian. mburns 0 413 11-25-2023, 10:19 PM
Last Post: mburns
  The Mobian Phosh Experience mburns 1 795 11-18-2023, 08:21 AM
Last Post: crocspot
  Fix the Mobian Weather App mburns 0 445 11-07-2023, 10:01 AM
Last Post: mburns
  Megapixels on Mobian Bookworm on PinePhone Pro - Not Launching X0X0X0X0X0 1 634 11-07-2023, 09:44 AM
Last Post: mburns
  Mobian Phosh Gnome Software Is Recommending A Broken Update. mburns 0 546 10-14-2023, 11:57 AM
Last Post: mburns
  Mobian libnotify custom notifications MadameMalady 5 1,267 08-01-2023, 08:51 AM
Last Post: MadameMalady
  Mobian .desktop file creation MadameMalady 15 2,769 07-27-2023, 04:12 PM
Last Post: MadameMalady
  XFCE mobian running nicely but some oddities grump_fiddle_reinstall 0 759 07-01-2023, 08:18 AM
Last Post: grump_fiddle_reinstall
  [Mobian] : Battery consumption and OS compatibility freelectro 2 1,002 06-02-2023, 06:55 AM
Last Post: Fred Zyphal

Forum Jump:


Users browsing this thread: 1 Guest(s)