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

Modify properties of an existing window in-place

asked 2013-10-11 16:15:17 +0000

BatmanAoD gravatar image

Is there a way to modify the properties (such as the border style/size) of an existing window?

For instance, I have a floating window that I created while I had new_window none enabled, and now that I've reverted to new_window normal, I'd like to have this window redrawn with a border without closing and reopening it. Is this possible? I tried toggling floating mode, but the border remained the same.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-11 16:33:46 +0000

Michael gravatar image

Use the border command, e.g. border none.

edit flag offensive delete link more

Comments

The following gives me a syntax error ("unexpected $undefined at position 1"): `i3-msg for_window [window_role="vim-18462-3374170781-1381445850"] border normal`. Anything immediately popping out as incorrect there...?

BatmanAoD gravatar imageBatmanAoD ( 2013-10-11 17:01:46 +0000 )edit

There is a `-t` missing to tell that you are sending an IPC message. See: `man i3-msg`.

joepd gravatar imagejoepd ( 2013-10-12 08:59:33 +0000 )edit

for_window is a configuration directive, whereas you can only send commands. Try `i3-msg '[window_role="vim-18462-3374170781-1381445850"] border normal'`

Michael gravatar imageMichael ( 2013-10-12 13:37:39 +0000 )edit

Ah, okay. Now I'm getting "syntax error, unexpected window at position 2." Does v. 4.0.1 not allow the first token to be a window specifier? (And @joepd, the -t option must be from a newer version; my man page doesn't list any flags).

BatmanAoD gravatar imageBatmanAoD ( 2013-10-14 15:56:24 +0000 )edit

Question Tools

Stats

Asked: 2013-10-11 16:15:17 +0000

Seen: 131 times

Last updated: Oct 11 '13