paoloap / bosch

Awesome WM 'Bosch Theme and related plugins'
25 stars 0 forks source link

Attempt to index a nil value errors #1

Open aravind-vasudevan opened 7 years ago

aravind-vasudevan commented 7 years ago

Hi,

I have been trying to get this theme to work. I have followed all the instructions in your readme, but with no success. Originally, the lain and vicious packages were missing. I installed both of them. Now there are bunch more errors. All of them are attempting to index a nil at boshc/bwibox/audio.lua:28, boshc/bwibox/network.lua:29, boshc/bwibox/system.lua:47. Any ideas on how to fix these?

Thanks!

paoloap commented 7 years ago

Both errors are related to shell scripts which "extract" the text from regular linux commands lines so that it can be put in widgets. In detail, these scripts are placed in ~/.config/awesome/bosch/scripts/ . I try to explain how they work, using one of them as example:

batterywidget.sh consists in a cycle that every second extracts data about battery (percentage, if it's charging, discharging or full) and writes them into a text file put in same directory and called "battery_data". So there's that files, updated every second, which has a form like the following:

Discharging
9

This information is taken to make the lua widget in top bar work.

First of all, you should check if these shell scripts are actually running, execute this on terminal: ps aux | grep ".sh" and paste the output. BTW I totally forgot to put lain and vicious in dependencies. I'm going to add them. Well... considering that you are trying this discouraged "jump to the black hole", probably you will find many errors after these, that have to be fixed. Probably at this point it would be better to meet in some chat/irc channel so that I can follow you. Any idea?