Getting Brightness and Volume Buttons to Work on Arch Linux

0
34
Asked By TechWanderer92 On

I'm experienced with Linux but still new to Arch. Recently, I set up MangoWC on my new Thinkpad and I'm trying to get my brightness and volume buttons functioning properly. I thought the easiest way to achieve this would be by assigning a script in my Mango config file. For brightness up, I have:

```
bind=XF86MonBrightnessUp,spawn,/home/shakaka/.myscripts/bright.sh
```

And the content of bright.sh is:

```
#! /usr/bin/env bash
brightnessctl set +5%
```

Dimming is set up similarly, just for the lower brightness. I've reloaded my Mango config and rebooted, but nothing seems to work. I'm looking for help figuring this out!

3 Answers

Answered By ScriptNinja53 On

Your issue might seem complex, but sometimes these settings are just finicky, especially in Arch. You mentioned you've done chmod +x on your script, which is good! Since it registers the keypress, have you tried confirming if `brightnessctl` works independently without needing the script at all? If the keybind activates a different spawn command and works, that could point to something minor with the script setup.

Answered By CoderTurtle87 On

It sounds like you're dealing with a frustrating issue! First, make sure that `brightnessctl` is installed and check if it works directly in the terminal. You might also want to run your bright.sh script manually in the terminal to see if there are any errors.

As a test, try changing the bind to a simpler command. Instead of using a script, you could try:

```
bind=XF86MonBrightnessUp,spawn,brightnessctl set +5%
```

This could help eliminate some potential points of failure. Also, try checking if the XF86MonBrightnessUp key works with a different command, perhaps by opening an application like a text editor to see if it responds at all.

Answered By PixelJuggler21 On

I've encountered similar problems before! One thing to keep in mind is that the script doesn’t seem necessary for a single command like `brightnessctl`. If your script works fine when you run it straight in the terminal, that’s a good sign. But since you’ve set it up correctly, maybe check if your keybinds are recognized.

Tools like `wev` you've mentioned should confirm that the key presses are detected. If that’s the case, you may need to check if MangoWC is correctly processing those inputs.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.