The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Unable to bind anything to pipe symbol using keyname

asked 2013-10-23 22:41:51 +0000

Murali Suriar gravatar image

I would like to have <Mod>+| bound to "split h". I believe that the following line in .i3/config should be what's required:

bindsym $mod+Shift+bar split h

('bar' being the name shown in xev when I hit the pipe key on my UK layout keyboard. However, when I have the above line in my .i3/config, I receive the following error:

ERROR: CONFIG: syntax error, unexpected bar, expecting <number> or <word> or '+'

When I use the keycode instead:

bindsym $mod+Shift+94

Then everything works as expected. Is 'bar' being treated as a reserved word by the i3 config parser? Is there a way to achieve this behaviour without resorting to keycodes?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-24 12:13:34 +0000

Adaephon gravatar image

updated 2013-10-24 12:18:00 +0000

First of: When I tested bindsym $mod+Shift+bar split hjust now, it worked for me (with version 4.6.1-1+g4.6-88-ge99158e from build.i3wm.org), so there may be another problem in your configuration that is not actually located at 'bar'.

That aside, as far as I can tell, '|' is on the '\'-key just right of Left-Shift on UK-QWERTY. So you actually type <shift>+\ to get a '|'. Therefore

bindsym $mod+Shift+backslash split h

should work in the expected way. (For me either - 'bar' or 'backslash' - works exactly the same way)

This works for me, too:

bindsym $mod+bar split h

So the 'Shift' seems to be redundant.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-23 22:41:51 +0000

Seen: 813 times

Last updated: Oct 24 '13