IM layout configuration for Psi

Hello all, I'm trying to set up the IM layout for the Psi xmpp client. I found a working config for skype online, and tried tweaking it for psi, but no luck so far. Has anyone else done this? Is there a way to dump the window properties for a window, to give me a better idea how to configure? thanks -matt

Hi, yo can view the properties of a window in X with xprop, bye! On Wed, Oct 08, 2008 at 10:54:17AM -0700, Matt Brown wrote:
Hello all,
I'm trying to set up the IM layout for the Psi xmpp client. I found a working config for skype online, and tried tweaking it for psi, but no luck so far. Has anyone else done this? Is there a way to dump the window properties for a window, to give me a better idea how to configure?
thanks -matt _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

I tried a few different ways using xprop as a guide, but still no
luck. Any more tips?
from xmonad.hs:
1st attempt:
IM (1%7) (Or (ClassName "psi") (And (ClassName "Skype") (And (Role "")
(Not (Title "Options")))))
2nd attempt:
IM (1%7) (Or (Role "psimain") (And (ClassName "Skype") (And (Role "")
(Not (Title "Options")))))
3rd attempt:
IM (1%7) (Or (Title "Psi") (And (ClassName "Skype") (And (Role "")
(Not (Title "Options")))))
Note: i was testing with only the psi buddy list window and
terminals, to be certain no other windows might have "psi" in their
props. Figured once I was able to match the buddy list window, then I
could refine it to make sure no other psi window is matched.
the main psi window xprops:
matt@matt-desktop:~$ xprop
_NET_WM_USER_TIME(CARDINAL) = 87168294
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_NAME(UTF8_STRING) = 0x50, 0x73, 0x69
XdndAware(ATOM) = ATOM
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5,
0xb7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xac, 0xb7, 0x10, 0x0, 0x0, 0x0
WM_CLIENT_LEADER(WINDOW): window id # 0x2e0044e
WM_WINDOW_ROLE(STRING) = "psimain"
_NET_WM_PID(CARDINAL) = 30731
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING
WM_NAME(STRING) = "Psi"
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLASS(STRING) = "main", "psi"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x2e00144
bitmap id # of mask for icon: 0x2e00145
window id # of group leader: 0x2e0044e
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified location: 819, 283
program specified location: 819, 283
user specified size: 203 by 996
program specified size: 203 by 996
program specified minimum size: 100 by 90
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "laptop"
On Wed, Oct 8, 2008 at 10:58 AM, Ismael Carnales
Hi, yo can view the properties of a window in X with xprop, bye!
On Wed, Oct 08, 2008 at 10:54:17AM -0700, Matt Brown wrote:
Hello all,
I'm trying to set up the IM layout for the Psi xmpp client. I found a working config for skype online, and tried tweaking it for psi, but no luck so far. Has anyone else done this? Is there a way to dump the window properties for a window, to give me a better idea how to configure?
thanks -matt _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Try this in xmonad.hs (if you're using 0.8 if not update now! ;) ): gridIM (1%7) (ClassName "psi") That would give you a Grid layout modified so 1%7 of the space is used by the roster window, you can apply the IM modifier to other layouts using: withIM (1%7) (ClassName "psi") Layout (replace Layout with your desired layout to modify) In both cases you can use (Title "title_of_the_roster_window") instead of ClassName. You can reach the IM layout documentation at: http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-IM.html byebye! On Wed, Oct 08, 2008 at 11:44:05AM -0700, Matt Brown wrote:
I tried a few different ways using xprop as a guide, but still no luck. Any more tips?
from xmonad.hs:
1st attempt: IM (1%7) (Or (ClassName "psi") (And (ClassName "Skype") (And (Role "") (Not (Title "Options")))))
2nd attempt: IM (1%7) (Or (Role "psimain") (And (ClassName "Skype") (And (Role "") (Not (Title "Options")))))
3rd attempt: IM (1%7) (Or (Title "Psi") (And (ClassName "Skype") (And (Role "") (Not (Title "Options")))))
Note: i was testing with only the psi buddy list window and terminals, to be certain no other windows might have "psi" in their props. Figured once I was able to match the buddy list window, then I could refine it to make sure no other psi window is matched.
the main psi window xprops:
matt@matt-desktop:~$ xprop _NET_WM_USER_TIME(CARDINAL) = 87168294 WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _NET_WM_NAME(UTF8_STRING) = 0x50, 0x73, 0x69 XdndAware(ATOM) = ATOM _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0xb7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xac, 0xb7, 0x10, 0x0, 0x0, 0x0 WM_CLIENT_LEADER(WINDOW): window id # 0x2e0044e WM_WINDOW_ROLE(STRING) = "psimain" _NET_WM_PID(CARDINAL) = 30731 _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING WM_NAME(STRING) = "Psi" WM_LOCALE_NAME(STRING) = "en_US.UTF-8" WM_CLASS(STRING) = "main", "psi" WM_HINTS(WM_HINTS): Client accepts input or input focus: True Initial state is Normal State. bitmap id # to use for icon: 0x2e00144 bitmap id # of mask for icon: 0x2e00145 window id # of group leader: 0x2e0044e WM_NORMAL_HINTS(WM_SIZE_HINTS): user specified location: 819, 283 program specified location: 819, 283 user specified size: 203 by 996 program specified size: 203 by 996 program specified minimum size: 100 by 90 window gravity: NorthWest WM_CLIENT_MACHINE(STRING) = "laptop"
On Wed, Oct 8, 2008 at 10:58 AM, Ismael Carnales
wrote: Hi, yo can view the properties of a window in X with xprop, bye!
On Wed, Oct 08, 2008 at 10:54:17AM -0700, Matt Brown wrote:
Hello all,
I'm trying to set up the IM layout for the Psi xmpp client. I found a working config for skype online, and tried tweaking it for psi, but no luck so far. Has anyone else done this? Is there a way to dump the window properties for a window, to give me a better idea how to configure?
thanks -matt _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

that worked for psi, but broke skype. So now I have two layouts,
which is fine. time to switch to PerWorkspace!
thanks
On Wed, Oct 8, 2008 at 12:01 PM, Ismael Carnales
Try this in xmonad.hs (if you're using 0.8 if not update now! ;) ):
gridIM (1%7) (ClassName "psi")
That would give you a Grid layout modified so 1%7 of the space is used by the roster window, you can apply the IM modifier to other layouts using:
withIM (1%7) (ClassName "psi") Layout
(replace Layout with your desired layout to modify)
In both cases you can use (Title "title_of_the_roster_window") instead of ClassName.
You can reach the IM layout documentation at:
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-IM.html
byebye!
On Wed, Oct 08, 2008 at 11:44:05AM -0700, Matt Brown wrote:
I tried a few different ways using xprop as a guide, but still no luck. Any more tips?
from xmonad.hs:
1st attempt: IM (1%7) (Or (ClassName "psi") (And (ClassName "Skype") (And (Role "") (Not (Title "Options")))))
2nd attempt: IM (1%7) (Or (Role "psimain") (And (ClassName "Skype") (And (Role "") (Not (Title "Options")))))
3rd attempt: IM (1%7) (Or (Title "Psi") (And (ClassName "Skype") (And (Role "") (Not (Title "Options")))))
Note: i was testing with only the psi buddy list window and terminals, to be certain no other windows might have "psi" in their props. Figured once I was able to match the buddy list window, then I could refine it to make sure no other psi window is matched.
the main psi window xprops:
matt@matt-desktop:~$ xprop _NET_WM_USER_TIME(CARDINAL) = 87168294 WM_STATE(WM_STATE): window state: Normal icon window: 0x0 _NET_WM_NAME(UTF8_STRING) = 0x50, 0x73, 0x69 XdndAware(ATOM) = ATOM _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0xb7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xac, 0xb7, 0x10, 0x0, 0x0, 0x0 WM_CLIENT_LEADER(WINDOW): window id # 0x2e0044e WM_WINDOW_ROLE(STRING) = "psimain" _NET_WM_PID(CARDINAL) = 30731 _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING WM_NAME(STRING) = "Psi" WM_LOCALE_NAME(STRING) = "en_US.UTF-8" WM_CLASS(STRING) = "main", "psi" WM_HINTS(WM_HINTS): Client accepts input or input focus: True Initial state is Normal State. bitmap id # to use for icon: 0x2e00144 bitmap id # of mask for icon: 0x2e00145 window id # of group leader: 0x2e0044e WM_NORMAL_HINTS(WM_SIZE_HINTS): user specified location: 819, 283 program specified location: 819, 283 user specified size: 203 by 996 program specified size: 203 by 996 program specified minimum size: 100 by 90 window gravity: NorthWest WM_CLIENT_MACHINE(STRING) = "laptop"
On Wed, Oct 8, 2008 at 10:58 AM, Ismael Carnales
wrote: Hi, yo can view the properties of a window in X with xprop, bye!
On Wed, Oct 08, 2008 at 10:54:17AM -0700, Matt Brown wrote:
Hello all,
I'm trying to set up the IM layout for the Psi xmpp client. I found a working config for skype online, and tried tweaking it for psi, but no luck so far. Has anyone else done this? Is there a way to dump the window properties for a window, to give me a better idea how to configure?
thanks -matt _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Hi, Am Mittwoch, den 08.10.2008, 10:54 -0700 schrieb Matt Brown:
I'm trying to set up the IM layout for the Psi xmpp client. I found a working config for skype online, and tried tweaking it for psi, but no luck so far. Has anyone else done this? Is there a way to dump the window properties for a window, to give me a better idea how to configure?
BTW, has anyone tried to use the IM layout for gimp? So that, say, 5%6 of the screen is reserved for the image, and the gimp toolbars are all at the side? I wonder how IM handles it if more than one window matches it’s criteria. Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

perhaps you could switch it around, so match the image window with
(5%6). all the rest would share the (1%6), in theory.
On Wed, Oct 8, 2008 at 12:15 PM, Joachim Breitner
Hi,
Am Mittwoch, den 08.10.2008, 10:54 -0700 schrieb Matt Brown:
I'm trying to set up the IM layout for the Psi xmpp client. I found a working config for skype online, and tried tweaking it for psi, but no luck so far. Has anyone else done this? Is there a way to dump the window properties for a window, to give me a better idea how to configure?
BTW, has anyone tried to use the IM layout for gimp? So that, say, 5%6 of the screen is reserved for the image, and the gimp toolbars are all at the side?
I wonder how IM handles it if more than one window matches it's criteria.
Greetings, Joachim
-- Joachim "nomeata" Breitner Debian Developer nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Hi,
On Wed, Oct 8, 2008 at 12:15 PM, Joachim Breitner
wrote: BTW, has anyone tried to use the IM layout for gimp? So that, say, 5%6 of the screen is reserved for the image, and the gimp toolbars are all at the side?
I wonder how IM handles it if more than one window matches it's criteria.
Am Mittwoch, den 08.10.2008, 13:27 -0700 schrieb Matt Brown:
perhaps you could switch it around, so match the image window with (5%6). all the rest would share the (1%6), in theory.
Right, that’s what I’m suggesting – maybe coupled with a layout that only tiles horizontally. Problem would be that if you have more than one image open, it will be relatively unpredictable which one will be on top (at least that’s what I read from the code). Greetings, Joachim -- Joachim Breitner e-Mail: mail@joachim-breitner.de Homepage: http://www.joachim-breitner.de ICQ#: 74513189 Jabber-ID: nomeata@joachim-breitner.de
participants (4)
-
Ismael Carnales
-
Joachim Breitner
-
Joachim Breitner
-
Matt Brown