deprecated
for_window [class="^.*"] border pixel 1
new_window 1pixel
thanks to deviatorslegacy's comment
Document here:
https://i3wm.org/docs/userguide.html#_default_border_style_for_new_windows
New way to do it:
default_border pixel 1
default_floating_border pixel 1
Additionally, I could assign color to border when window focus is changed. https://i3wm.org/docs/userguide.html#_changing_colors
Since the v4.21 release, the following snippet does not work anymore:
Switching back to the following snippet worked (even tho it has been categorized as deprecated):
In anticipation of a future update that make another change, I actually put both solutions in my config file, like so:
Hope it helps 😄