You are not logged in.
Hi gang,
I keep getting dinged for a syntax error (perhaps missing comma?) on this line, as follows (and I cannot figure this out!)
"python3 ~/.config/qtile/config.py File "home/steve/.config/qtile/config.py", line 199
Key([], "XF86AudioLowerVolume", lazy.spawn("a mixer sset Master 2db-"),
desc="Lower volume by 2db"),
Syntax error: invalid syntax. Perhaps you forgot a comma?"
If I comment out this line, my config loads properly.
Can someone point me in the right direction here?
Any helpful suggestions much appreciated!
Last edited by steve1701 (2024-08-13 22:22:42)
Offline
- Key([], "XF86AudioLowerVolume", lazy.spawn("a mixer sset Master 2db-"),
+ Key([], "XF86AudioLowerVolume", lazy.spawn("amixer sset Master 2db-")),
EDIT: I added the change based on V1del's comment which I completely overlooked.
Last edited by Trilby (2024-08-14 12:28:52)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
You probably also want to remove the space from amixer and if you're actually using pipewire/pulseaudio you might get more consistent and correct results with a "pactl set-sink-volume @DEFAULT_SINK@ -2dB" instead
Offline
Hello Trilby, V1del,
Thanks so much, but, these lines give the same errors.
How might I start to troubleshoot this?
Last edited by steve1701 (2024-08-15 18:42:40)
Offline
It certainly cant give the exact same error. Post the actual error output you are now getting.
EDIT: just in case, my code block had two lines in "diff" style with a "-" indicating a line that should be removed and a "+" indicating what should be there instead. Neither the "-" or the "+" should actually be copied into the file.
Last edited by Trilby (2024-08-15 18:50:15)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline