You are not logged in.

#1 2015-10-04 06:56:19

2sly4you
Member
Registered: 2015-10-04
Posts: 3

[Solved] for_window not working in i3

Hello. I'm new here, so please correct me if I do something wrong.

I am having trouble getting the for_window command to work in i3. I am using i3 version 4.10.4. I am trying to remove the border from my urxvt windows. I'm using

for_window [class="urxvt"] border normal 0

but it doesn't seem to do anything. All new urxvt windows still have a border. Here is the rest of my i3 config: http://pastebin.com/fMH91TFv (It is a little messy as I am currently rewriting it)

I have also tried removing the borders with a keyboard shortcut. That works fine.

Thanks for any help.

Last edited by 2sly4you (2015-10-04 16:26:47)

Offline

#2 2015-10-04 14:18:46

karlch
Member
Registered: 2015-06-14
Posts: 105

Re: [Solved] for_window not working in i3

Try using class="URxvt" smile

Offline

#3 2015-10-04 16:26:27

2sly4you
Member
Registered: 2015-10-04
Posts: 3

Re: [Solved] for_window not working in i3

Thanks, that fixed it. Also, I found that

xprop | grep -i 'class'

will help you find the correct class name.

Offline

#4 2015-10-04 16:43:34

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] for_window not working in i3

2sly4you wrote:

will help you find the correct class name.

You don't need grep.

xprop WM_CLASS

And there are some more hints and examples in the i3 manual, for example about the difference between substring and exact matching:
https://i3wm.org/docs/userguide.html#_a … workspaces
https://i3wm.org/docs/userguide.html#command_criteria

Last edited by progandy (2015-10-04 16:48:02)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2015-10-04 16:53:32

2sly4you
Member
Registered: 2015-10-04
Posts: 3

Re: [Solved] for_window not working in i3

Oh, cool. I missed that part of the manual. Thanks!

Offline

Board footer

Powered by FluxBB