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
  Current Situation Mobian Installer (PPPro) arno_nuehm 14 2,732 04-03-2022, 12:16 AM
Last Post: Barugon
  Modem unreliable on the PPP with Mobian EwigeBlumenkraft 2 583 03-17-2022, 02:11 AM
Last Post: EwigeBlumenkraft
  Mobian : Firefox, toolbar has moved to the bottom. grump_fiddle_reinstall 1 469 03-07-2022, 04:55 PM
Last Post: fxc
  Switchng to Mobian from Manjaro on PPPro for test run iwm 6 1,541 02-08-2022, 03:39 AM
Last Post: bcnaz

Forum Jump:


Users browsing this thread: 1 Guest(s)