don't manage windows layout

Hello, I have a program which doesn't work nicely with xmonad because of the apparition of popup windows, supposed to be small but who take suddenly half the size of the screen. Is there a layout for xmonad which would (un)manages windows just like, say Openbox ? Thanks for your help Alain

You might want XMonad.Layout.SimplestFloat.
On Sun, Jun 11, 2023 at 6:19 PM Alain Bertrand
Hello,
I have a program which doesn't work nicely with xmonad because of the apparition of popup windows, supposed to be small but who take suddenly half the size of the screen.
Is there a layout for xmonad which would (un)manages windows just like, say Openbox ?
Thanks for your help
Alain
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com

Thanks. I got the following error and though the message is really detailed, my total ignorance of Haskel doesn't allow me to fix it. Best regards Alain ------------------- Error detected while loading xmonad configuration file: /home/alain/.xmonad/xmonad.hs xmonad.hs:26:17: error: * Ambiguous type variable `a0` arising from a use of `avoidStruts` prevents the constraint `(Show a0)` from being solved. Relevant bindings include myLayoutHook :: XMonad.Layout.LayoutModifier.ModifiedLayout AvoidStruts (Choose Full (Choose SpiralWithDir (Choose Tall (XMonad.Layout.LayoutModifier.ModifiedLayout XMonad.Layout.WindowArranger.WindowArranger SimplestFloat)))) a0 (bound at xmonad.hs:26:2) Probable fix: use a type annotation to specify what `a0` should be. These potential instances exist: instance Show Event -- Defined in `Graphics.X11.Xlib.Extras` instance Show FontSet -- Defined in `Graphics.X11.Xlib.Extras` instance [safe] Show Arc -- Defined in `Graphics.X11.Xlib.Types` ...plus 54 others ...plus 73 instances involving out-of-scope types (use -fprint-potential-instances to see them all) * In the expression: avoidStruts (Full ||| spiral (6 / 7) ||| Tall 1 0.03 0.5 ||| simplestFloat) In an equation for `myLayoutHook`: myLayoutHook = avoidStruts (Full ||| spiral (6 / 7) ||| Tall 1 0.03 0.5 ||| simplestFloat) | 26 | myLayoutHook = avoidStruts ( Full ||| spiral (6/7) ||| Tall 1 0.03 0.5 ||| simplestFloat) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------------- On 12/06/2023 00:25, Brandon Allbery wrote:
You might want XMonad.Layout.SimplestFloat.

You're not actually using `myLayoutHook`, so the compiler can't
determine the type of its layout. See line 34.
On Sun, Jun 11, 2023 at 6:43 PM Alain Bertrand
Thanks.
I got the following error and though the message is really detailed, my total ignorance of Haskel doesn't allow me to fix it.
Best regards
Alain
------------------- Error detected while loading xmonad configuration file: /home/alain/.xmonad/xmonad.hs
xmonad.hs:26:17: error: * Ambiguous type variable `a0` arising from a use of `avoidStruts` prevents the constraint `(Show a0)` from being solved. Relevant bindings include myLayoutHook :: XMonad.Layout.LayoutModifier.ModifiedLayout AvoidStruts (Choose Full (Choose SpiralWithDir (Choose Tall (XMonad.Layout.LayoutModifier.ModifiedLayout XMonad.Layout.WindowArranger.WindowArranger SimplestFloat)))) a0 (bound at xmonad.hs:26:2) Probable fix: use a type annotation to specify what `a0` should be. These potential instances exist: instance Show Event -- Defined in `Graphics.X11.Xlib.Extras` instance Show FontSet -- Defined in `Graphics.X11.Xlib.Extras` instance [safe] Show Arc -- Defined in `Graphics.X11.Xlib.Types` ...plus 54 others ...plus 73 instances involving out-of-scope types (use -fprint-potential-instances to see them all) * In the expression: avoidStruts (Full ||| spiral (6 / 7) ||| Tall 1 0.03 0.5 ||| simplestFloat) In an equation for `myLayoutHook`: myLayoutHook = avoidStruts (Full ||| spiral (6 / 7) ||| Tall 1 0.03 0.5 ||| simplestFloat) | 26 | myLayoutHook = avoidStruts ( Full ||| spiral (6/7) ||| Tall 1 0.03 0.5 ||| simplestFloat) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-------------------
On 12/06/2023 00:25, Brandon Allbery wrote:
You might want XMonad.Layout.SimplestFloat.
xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com

On 2023-06-12 06:19, Alain Bertrand wrote:
Hello,
I have a program which doesn't work nicely with xmonad because of the apparition of popup windows, supposed to be small but who take suddenly half the size of the screen.
Is there a layout for xmonad which would (un)manages windows just like, say Openbox ?
I use myManageHook for floating or ignoring such popup windows. This way you can keep your usual layout and only add some special cases for misbehaving windows. Something like this: myManageHook :: ManageHook myManageHook = composeAll [ fmap (isInfixOf "Gnuplot") title --> doFloat , className =? "Xfce4-panel" --> doIgnore , className =? "Yad" --> doFloat , isInProperty "_NET_WM_WINDOW_TYPE" "_NET_WM_WINDOW_TYPE_TOOLBAR" --> doIgnore -- fix for libreoffice dialogs , isInProperty "_NET_WM_WINDOW_TYPE" "_NET_WM_WINDOW_TYPE_SPLASH" --> doIgnore -- splash screens , isFullscreen --> doFullFloat , isDialog --> doFloat , role =? "pop-up" --> doFloat ] (you can check the window properties using xprop utility) -- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E

Hi, Thanks for this suggestion. As it turned out, the app I want to use has unfriendly behaviour even with XMonad.Layout.SimplestFloat and I think that I will need to use this solution. Best regards, Alain On 12/06/2023 09:34, Platon Pronko wrote:
On 2023-06-12 06:19, Alain Bertrand wrote:
Hello,
I have a program which doesn't work nicely with xmonad because of the apparition of popup windows, supposed to be small but who take suddenly half the size of the screen.
Is there a layout for xmonad which would (un)manages windows just like, say Openbox ?
I use myManageHook for floating or ignoring such popup windows. This way you can keep your usual layout and only add some special cases for misbehaving windows.
Something like this:
myManageHook :: ManageHook myManageHook = composeAll [ fmap (isInfixOf "Gnuplot") title --> doFloat , className =? "Xfce4-panel" --> doIgnore , className =? "Yad" --> doFloat , isInProperty "_NET_WM_WINDOW_TYPE" "_NET_WM_WINDOW_TYPE_TOOLBAR" --> doIgnore -- fix for libreoffice dialogs , isInProperty "_NET_WM_WINDOW_TYPE" "_NET_WM_WINDOW_TYPE_SPLASH" --> doIgnore -- splash screens , isFullscreen --> doFullFloat , isDialog --> doFloat , role =? "pop-up" --> doFloat ]
(you can check the window properties using xprop utility)
participants (3)
-
Alain Bertrand
-
Brandon Allbery
-
Platon Pronko