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 2015-06-08 08:45:21 +0000

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

edit retag flag offensive close merge delete

Comments

1

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

Airblader gravatar imageAirblader ( 2015-06-08 09:11:24 +0000 )edit

no luck either :/

Toufik gravatar imageToufik ( 2015-06-08 10:22:58 +0000 )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 ( 2015-06-08 12:53:07 +0000 )edit

hey thanks I just figured that out :)

Toufik gravatar imageToufik ( 2015-06-08 12:56:16 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-08 12:54:36 +0000

Toufik gravatar image

updated 2015-06-08 12:55:14 +0000

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

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-06-08 08:45:21 +0000

Seen: 87 times

Last updated: Jun 08