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

How to restore a scratchpad?

asked Jun 8 '15

Toufik gravatar image

I am using the append_layout commands to restore my layouts upon login. Everything goes where it's supposed to, except for my chat window that I have to send manually to a scratchapd.

It's a minor annoyance but still would be great to have it fixed.

I also tried to add this to my .i3/config:

exec --no-startup-id 'i3-msg [title="default-chat"] move scratchpad'

'default-chat' is a chat joined by Pidgin by default upon startup. But this doesn't work. My guess is that this window isn't created yet by the time this line gets executed

Comments

1

Use "for_window [title='default-chat'] move scratchpad" instead.

Airblader gravatar imageAirblader (Jun 8 '15)edit

no luck either :/

Toufik gravatar imageToufik (Jun 8 '15)edit

Just to be clear, `for_window [title="default-chat"] move scratchpad` is the whole line you need to put into your configuration instead of `exec ....`.

Adaephon gravatar imageAdaephon (Jun 8 '15)edit

hey thanks I just figured that out :)

Toufik gravatar imageToufik (Jun 8 '15)edit

1 answer

Sort by » oldest newest most voted
0

answered Jun 8 '15

Toufik gravatar image

updated Jun 8 '15

I take my comment back.

for_window did the trick.

I was trying to add 'for_window' in the command above which didn't work. Instead I added this line in my .i3/config:

for_window [title="default-chat"] move scratchpad

And now it works perfectly

All credits to @Airblader

Question Tools

Stats

Asked: Jun 8 '15

Seen: 87 times

Last updated: Jun 08