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

can't auto move float scratchpad windows

asked 2013-09-26 10:30:53 +0000

lompy gravatar image

updated 2013-09-28 08:52:50 +0000

I try to use scratchpad feature to fast access some apps. But i can't figure out how to auto move and resize those apps.

If i put

exec --no-startup-id deadbeef
for_window [class="Deadbeef"] floating enable
for_window [class="Deadbeef"] move absolute position 200px 200px; 
for_window [class="Deadbeef"] move scratchpad

in my config then DeadBeef gets executed and moved to scratchpad but the position is not changed.

If i exclude

for_window [class="Deadbeef"] move scratchpad

from config then DeadBeef gets executed and the position is changed. But now i have to move DeadBeef to scratchpad manually. Is it a bug or a feature? Or am i missing something?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
3

answered 2013-09-26 16:12:52 +0000

vandannen gravatar image

updated 2013-09-28 18:13:51 +0000

When a container is moved to the scratchpad for the first time it automatically gets resized and respositioned. So, a workaround would be to move the container to scratchpad, show it again, make the move, and move it back to scratchpad:

for_window [class="Deadbeef"] move scratchpad; [class="Deadbeef"] scratchpad show; move position 200px 200px; move scratchpad (thanks to Flugsio)

edit flag offensive delete link more

Comments

Note that a patch to make “move scratchpad” not resize floating windows will be accepted, but for some reason, nobody has ever pushed it through. Submit yours at http://cr.i3wm.org :)

Michael gravatar imageMichael ( 2013-09-26 16:17:25 +0000 )edit

I have also auto move to scratchpad (like deadbeef) one terminal and one vim-notes. with your line something really cool starts to happen: 1) shortcut for moving deadbeef to skratchpad doesn't work. 2) deadbeef is not positioned. 3) vim-notes positioned instead.

lompy gravatar imagelompy ( 2013-09-26 16:53:37 +0000 )edit

And sic fourth feature: 4) when i click on deadbeef tray icon vim-notes window is triggered show/hide instead of deadbeef. How cool is that?

lompy gravatar imagelompy ( 2013-09-26 16:54:45 +0000 )edit

Remark for 4) when click on deadbeef tray icon vim-notes and urxvt a triggered one after another. If i remove those two apps from config deadbeef is positioned correctly but shortcut still does not work.

lompy gravatar imagelompy ( 2013-09-26 17:06:38 +0000 )edit

@lompy, try changing the ; to ,

Flugsio gravatar imageFlugsio ( 2013-09-26 17:20:42 +0000 )edit

Question Tools

Stats

Asked: 2013-09-26 10:30:53 +0000

Seen: 567 times

Last updated: Sep 28 '13