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 2015-02-13 00:30:14 +0000

Nikolaus Rath gravatar image

updated 2015-07-28 05:12:24 +0000

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-07 00:07:40 +0000

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.

edit flag offensive delete link more
0

answered 2015-02-13 00:47:04 +0000

Michael Rose gravatar image

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

edit flag offensive delete link more

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 ( 2015-02-13 17:17:54 +0000 )edit

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

Gamonics gravatar imageGamonics ( 2015-02-14 23:45:40 +0000 )edit

Question Tools

Stats

Asked: 2015-02-13 00:30:14 +0000

Seen: 255 times

Last updated: Mar 07