I can NOT recommend the KDE plasma widgets
Quote:I would like to include the remaining battery time, but the standard conky variables are not working. The battery indicator on the tray does show the estimate on mouse-over, so the system somehow knows.
Does anyone know how to solve this?

The file `/sys/class/power_supply/cw2015-battery/time_to_empty_now` contains the remaining time in minutes, I wrote a small bash script to format it (hh:mm):

time=$(cat /sys/class/power_supply/cw2015-battery/time_to_empty_now)
minutes=$(printf "%02d" $(($time%60)))
echo $hours:$minutes

Save this code in a bash file (`bat_remaining_time.sh` for example), give it the execution permission (`chmod +x bat_remaining_time.sh`) and try to execute it (./bat_remaining_time.sh).

If everything works, you can add this command to your conky config to display it (the number 10 after `execi` means that the script is executed every 10 seconds):

${execi 10 /bin/bash /path/to/script/bat_remaining_time.sh}

Messages In This Thread
RE: I can NOT recommend the KDE plasma widgets - by JasonG-FR - 07-04-2020, 05:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  printing -- Manjaro ARM KDE plasma straightwalker 8 3,231 07-04-2021, 10:55 PM
Last Post: KC9UDX
Photo Remove activity manager bar on right side of screen - plasma kde motezart 3 2,766 10-20-2020, 10:36 AM
Last Post: motezart
  Issue with screeen tilers - Anyone can recommend? motezart 0 1,063 10-20-2020, 10:35 AM
Last Post: motezart

Forum Jump:

Users browsing this thread: 1 Guest(s)