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

How to match ipython window

asked Feb 13 '15

Nikolaus Rath gravatar image

updated Jul 28 '15

i3convert gravatar image

Hello,

I'm trying to load an i3 layout that includes an ipython3 qtconsole window. The relevant part of the layout definition is:

{
    "border": "normal",
    "floating": "auto_off",
    "geometry": {
       "height": 510,
       "width": 761,
       "x": 0,
       "y": 0
    },
    "name": "IPython",
    "percent": 0.391100702576112,
    "swallows": [
       {
        "title": "^IPython$"
       }
    ],
    "type": "con"
}

I'm starting the application like this:

i3-msg "workspace 1; append_layout ${HOME}/.i3/workspace-1.json"
emacs &
icedove &
iceweasel &
ipython3 qtconsole &

..and xprop says about the Ipython window:

$ xprop
[...]
WM_NAME(STRING) = "IPython"
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLASS(STRING) = "", ""
WM_HINTS(WM_HINTS):
        Client accepts input or input focus: True
        Initial state is Normal State.
        bitmap id # to use for icon: 0x260000d
        window id # of group leader: 0x2600007
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        program specified minimum size: 125 by 109
        window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "nelarikon"
WM_COMMAND(STRING) = {  }

but the window never seems to get placed into its designated position.

What am I doing wrong?

2 answers

Sort by » oldest newest most voted
0

answered Mar 7 '15

Nikolaus Rath gravatar image

I've reported this as issue 1526, and it seems that a workaround is to use something other than IPython for the name entry. Very odd.

0

answered Feb 13 '15

Michael Rose gravatar image

Have you tried "class": "^Qtconsoleapp\.py$"

Comments

That just gives "lexical error: inside a string, '\' occurs before a character which it may not." If I replace \. with just ., it still does not work.

Nikolaus Rath gravatar imageNikolaus Rath (Feb 13 '15)edit

Where should the "class": "^Qtconsoleapp\.py$" be placed? In the json file?

Gamonics gravatar imageGamonics (Feb 14 '15)edit

Question Tools

Stats

Asked: Feb 13 '15

Seen: 255 times

Last updated: Mar 07