Talk:Xmonad

From ArchWiki
Jump to navigation Jump to search

Issues with Haskell

I had problems with Haskell and nothing is mentioned in this article. The Haskell website is pretty slow and by the look at it not really clear, so it's not really funny to go there for your information about Xmonad. So could there be please at least a mentioning about Haskell's whitespace-sensivity and other weird behaviors of this language? —This unsigned comment is by Dun (talk) 17:00, 27 December 2014. Please sign your posts with ~~~~!

Proposal: Equal spacing between windows

My preferred way of using Xmonad is to put spacing around each window. The usual way to do this is to use something like

layoutHook = spacing 10 $ Tall (1 (3/100) (1/2)) ||| Full

However, this presents a problem if you have more than one window open. Suppose you have two windows side by side. Then, the right margin of the left window is added to the left margin of the right window. Thus, you effectively have double the amount of space you wanted. This is particularly evident if you use a lot of spacing (for aesthetic purposes, e.g. to see the wallpaper). I found a workaround for this, which may be of use to other people:

 layoutHook = spacingRaw False (Border 10 0 10 0) True (Border 0 10 0 10) True $ Tall (1 (3/100) (1/2)) ||| Full

The idea is to use both the screen border and the window border. The screen border is only applied to the top and the left to the screen, the window border is applied to the right and the bottom for every window. So, they don't overlap anywhere and you have beautiful equally spaced windows :)

Want to hear your thoughts on that. —This unsigned comment is by Flemingalexander (talk) 15:15, 19 May 2020 (UTC). Please sign your posts with ~~~~!