Change window position on screen

171 Views Asked by At

I'm new to Haskell and Xmonad, so I downloaded this beautiful configuration by Axarva. I'm starting to tweak it to my liking, and something that I definitively want to change is the launcher on the bottom.

So far, I managed to place it up on top with the tint2conf GUI, just like the image below:

enter image description here

But, as you can see, I have all that space below that I am using for nothing. So, I'd like to place all my windows lower, and make them a little bit bigger. How could I do this?

I tried to change the hooks layout in the xmonad.hs config file

      -- hooks, layouts
        manageHook = myManageHook, 
        layoutHook = gaps [(L,30), (R,30), (U,40), (D,60)] $ spacingRaw True (Border 10 10 10 10) True (Border 10 10 10 10) True $ smartBorders $ myLayout,
        handleEventHook    = myEventHook,
        logHook            = myLogHook,
        startupHook        = myStartupHook >> addEWMHFullscreen
    }

Played with the (U,X) and (D,X) values but it did not seem to work. When changing (U,X) from (U,40) to (U,30) or (U,60), and reloading the session with $mod+q, the windows do not seem to change. The same happens if I log out and start a new session. When I try to do the same for the (D,X) values, I get the same result.

I also tried using the tint2conf GUI for this purpose, but I cannot find any setting to do what I want to do.

EDIT 2:

Setting layoutHook = gaps [(L,30), (R,30), (U,50), (D,10)] $ spacingRaw True (Border 10 10 10 10) True (Border 10 10 10 10) True $ smartBorders $ myLayout, gets the windows in the position I need. However, this layout only loads when pressing $mod+Shift+Space. New windows still open with the default layout.

0

There are 0 best solutions below