Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/home/user/.config/awesome/rc.lua:688/694: attempt to index a nil value (field 'volume') #3833

Open
diavolicchio opened this issue Jul 27, 2023 · 2 comments

Comments

@diavolicchio
Copy link

Output of awesome --version:

awesome v4.3 (Too long)
• Compiled against Lua 5.3.6 (running with Lua 5.3)
• D-Bus support: ✔
• execinfo support: ✔
• xcb-randr version: 1.6
• LGI version: 0.9.2

How to reproduce the issue:
I'm on an HP laptop and when i hit the f8 and f7 keys for volume up and volume down corrispondently i get an error

Actual result:
When i hit them i get this error thrown at me: "/home/user/.config/awesome/rc.lua:688: attempt to index a nil value (field 'volume')" if it try to increase volume
and "/home/user/.config/awesome/rc.lua:694: attempt to index a nil value (field 'volume')" if i try to decrease volume

Expected result:

It should decrease and increase volume.

My rc.lua if needed:
https://pastebin.com/qbf29j6u

It's the default Arcolinux distro awesome config, anyone can help?

@Aire-One
Copy link
Member

Hello @diavolicchio,

/home/user/.config/awesome/rc.lua:688: attempt to index a nil value (field 'volume')

Looking at your config, line 688 is

os.execute(string.format("amixer -q set %s 1%%+", beautiful.volume.channel))

You have to make sure beautiful.volume exists. AFAICT it should be part of the theme with this config.

The issue with the other button is the same problem.

It's the default Arcolinux distro awesome config, anyone can help?

I'm not familiar with Arcolinux. You should report the issue to them, so that they can fix it.

@ducks
Copy link

ducks commented Jan 20, 2024

howdy @diavolicchio,

based on your rc.lua file, you are using the blackburn theme which has the volume widget commented out:
https://github.com/arcolinux/arcolinux-awesome/blob/master/etc/skel/.config/awesome/themes/blackburn/theme.lua#L172

it looks like the arcolinux default is the multicolor theme which does not have that widget commented out.

rc file showing chosen_theme:
https://github.com/arcolinux/arcolinux-awesome/blob/master/etc/skel/.config/awesome/rc.lua#L109

multicolor theme volume widget:
https://github.com/arcolinux/arcolinux-awesome/blob/master/etc/skel/.config/awesome/themes/multicolor/theme.lua#L197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants