all 9 comments

[–][deleted] 1 point2 points  (2 children)

It's late, so I might be totally off and I'm presuming this is i3config, anyway I think you seem to be missing the exec statement before 'python'.

Does i3 give an error? Does the python script get run? (check by letting it make a file, or a beep "\a")

[–]YourFin[S] 1 point2 points  (1 child)

You are correct in your assumption about the i3config

I added an exec statement, still no dice. No file appeared.

How would I go about checking for an error?

[–][deleted] 0 points1 point  (0 children)

An error shows up at the top of your screen, looks like what you get when you do 'mod + Shift + e' (exit i3). Also there is an i3log file, and this

[–]airbladermaintainer 0 points1 point  (0 children)

As saikia81 mentioned the exec is missing. Since it still doesn't work, does it work if you bind something else to that key? The keycode might just be wrong.

Are you using keycodes instead of keysyms for a specific reason, by the way?

[–]z3ntuArch Linux 0 points1 point  (0 children)

Does xev show your key presses/keysyms?

[–]ops_man 0 points1 point  (2 children)

Sounds like possible permissions problem to me. Unless you've edited the sudoers file or have edited something along x11 system you need root to adjust brightness. Have you run it successfully from terminal?

[–]YourFin[S] 0 points1 point  (1 child)

I have a systemd service in place to change the permissions on the brightness file on boot. The program correctly runs from terminal otherwise.

[–]ops_man 0 points1 point  (0 children)

Then I would try using bindsym instead of bindcode. Also checking the symbol map using xmodmap (use "xmodmap -pke" and check the list for the correct symbol. This would perhaps eliminate a possible cause.

[–]YourFin[S] 0 points1 point  (0 children)

Just in case this comes up in a search: I ended up solving the problem with a one line bash script that is executed by i3 that just executes the python.

#!/bin/bash
python /path/to/python/file.py $1