The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Trying to fix a bind key

asked 2015-03-23 15:20:54 +0000

BaNkS gravatar image

updated 2015-03-24 05:58:51 +0000

Adaephon gravatar image

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}')%"
edit retag flag offensive close merge delete


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. :)

BaNkS gravatar imageBaNkS ( 2015-03-23 18:47:21 +0000 )edit

1 answer

Sort by » oldest newest most voted

answered 2015-03-23 17:25:48 +0000

i3convert gravatar image

updated 2015-03-23 17:27:09 +0000

Probably either all the nested quotes are too much for the i3 config parser or more character escaping is needed. One workaround would be to create a bash script that has those commands and just run the script.

edit flag offensive delete link more

Question Tools


Asked: 2015-03-23 15:20:54 +0000

Seen: 169 times

Last updated: Mar 24