You are not logged in.
I'm having a little problem. Firstly, I've only recently gotten back into Arch after not having a computer for several years, so I'm a little rusty -- rookie mistakes are not out of the question.
Now, I'm on a Thinkpad. I'm trying to configure panel.sh to display the battery next to the date, and it's not working out right. Here's what I have:
battery=$(expr $(expr $(cat /sys/class/power_supply/BAT0/energy_now) * 100) / $(cat /sys/class/power_supply/BAT0/energy_full))
right="$separator^bg() $battery% $date $separator"It seems like this would work. From the terminal, I've cat'd energy_now and energy_full and both give me an appropriate value, and expr'd them just like I have it above, which gives me an accurate percentage. Am I missing something stupid? This little problem is driving me crazy. I'd appreciate any help.
Thanks,
cdc
Offline