Trying to fix a bind key
Hello everyone, I am having an issue with setting up a bind key for brightness control keys. While I can do it, I am getting some errors. This is what I have:
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10 && notify-send " $(xbacklight -get | awk '{printf "%.0f\n", $1}')%"
I am getting this error:
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'mode', 'bar'
ERROR: Your command: exec --no-startup-id xbacklight -inc 10 && notify-send " $(xbacklight -get | awk '{printf "%.0f\n", $1}')%"
ERROR:
Thanks :). That was actually a good idea. I made a helper script with all my notify-send commands and just made them into functions. Then use the key bind to call each specific function per keybinding. A notify-send helper script if you want to call it that. :)