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


Messages In This Thread
Bash prompt temp batery Mobian ppp - by iopser - 02-08-2022, 02:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Experimental Mobian kernel patch for extended battery life teekay 15 17,659 10-27-2025, 08:43 AM
Last Post: biketool
  bookworm vs trixie discussion for mobian in pinephone pro. zetabeta 21 23,085 10-20-2025, 07:01 AM
Last Post: biketool
  Debian vs Mobian henrythemouse 3 4,036 04-06-2025, 02:15 AM
Last Post: henrythemouse
  July 1 upgrade of Mobian Bookworm boot loops. mburns 9 9,618 02-25-2025, 08:27 AM
Last Post: Kevin Kofler
Rainbow Plasma-Mobile on Mobian Trixie, task switcher issue pineconeuser 0 2,337 01-02-2025, 09:21 AM
Last Post: pineconeuser
  Megapixels on Mobian Bookworm on PinePhone Pro - Not Launching X0X0X0X0X0 3 5,438 10-28-2024, 10:46 AM
Last Post: Jite
  Disable the GDM service in Mobian. mburns 0 2,155 11-25-2023, 10:19 PM
Last Post: mburns
  The Mobian Phosh Experience mburns 1 3,997 11-18-2023, 08:21 AM
Last Post: crocspot
  Fix the Mobian Weather App mburns 0 2,059 11-07-2023, 10:01 AM
Last Post: mburns
  Mobian Phosh Gnome Software Is Recommending A Broken Update. mburns 0 2,182 10-14-2023, 11:57 AM
Last Post: mburns

Forum Jump:


Users browsing this thread: 1 Guest(s)