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

How to open a program to float mode with specific dimensions?

asked 2013-01-03 22:24:34 +0000

Zucca gravatar image

As the title says. :) But just only once. When normally opened the program would go tiled.

I need this on my config which will run that program at startup.

(the program is urxvtc, and yes, it has that geometry setting which can do the magic I need, but I ask this because if I needed some other program to open that way)

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2013-01-22 23:26:13 +0000

dkeg gravatar image

you can have it set in either your autostart or as a set keybinding. Either or both will work

as stated above you can specify

for_window [class='Urxvt'] floating enable
then specify a keybinding
bindsym $MOD+Enter exec urxvt -g 78x24
and / or specify a position on the screen
bindysm $MOD+Enter exec urxvt -g [height]x[width][+,-]x[+,-]y
bindsym $MOD+Enter exec urxvt -g 78x24+50+20

The above will put in in the upper left

edit flag offensive delete link more

Comments

-g switch is only valid with most terminal apps and some other simple X apps. (-g is not i3 related switch) That will not work with Audacious for example.

Zucca gravatar imageZucca ( 2013-03-19 20:53:54 +0000 )edit

yes, you are correct, I had realized later at some point and / or may have just read through your post to quickly, don't remember which.

dkeg gravatar imagedkeg ( 2013-03-19 22:01:18 +0000 )edit
0

answered 2013-01-03 23:43:26 +0000

Michael gravatar image

You can use urxvt’s -name property and then match on that:

# autostart urxvt with instance set to "foo"
exec urxvtc -name foo

for_window [instance="^foo$"] floating enable

Also make sure you know about the scratchpad functionality (see the userguide), maybe that already does what you want (you don’t specify what you want…)

edit flag offensive delete link more

Comments

That alone won't force an application window to a centain (user spicified) size. :\

Zucca gravatar imageZucca ( 2013-01-06 22:07:10 +0000 )edit

Question Tools

Stats

Asked: 2013-01-03 22:24:34 +0000

Seen: 2,824 times

Last updated: Jan 22 '13