Tiling window manager for Mac OS X (fork of karawitan/osxmonad, modernized for arm64 + GHC 9.10)
  • Haskell 67.6%
  • Objective-C 28.9%
  • C 3.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Brian McKenna 63756a7ee1
Merge pull request #1 from yvan-sraka/master
Attempt to dust off the project to make it upstream
2018-12-26 12:01:53 +05:30
OSXMonad Add 'currentEvent' to XConf 2012-11-11 19:22:10 -07:00
src Sync OS X's and XMonad's focused window 2012-10-07 13:06:15 -06:00
.gitattributes Update .gitignore and add .gitattributes from GitHub templates 2018-12-23 23:36:36 +01:00
.gitignore Update .gitignore and add .gitattributes from GitHub templates 2018-12-23 23:36:36 +01:00
LICENSE Add README for instructions, patch and license 2012-07-26 15:31:06 +10:00
osxmonad.cabal Update xmonad Cabal dependency (from version 0.10.1 to 0.12) 2018-12-24 08:28:24 +01:00
README.md Add a README Troubleshooting section for resolution links to common issues 2018-12-24 08:36:45 +01:00
Setup.hs Cabalise 2012-07-22 22:35:21 +10:00
stack.yaml Add Haskell Stack configuration file and a README note about it 2018-12-24 08:36:20 +01:00
xmonad.patch Update xmonad.patch (from darcs to git) and associated install instructions 2018-12-24 08:26:40 +01:00

osxmonad

This is a library which allows XMonad to manage Mac OS X windows.

Status

  • Only attached hook is layoutHook
  • No workspaces
  • No borders
  • No focusFollowsMouse

Installation

Note: users with macOS 10.8 (Mountain Lion) and superior will have to download and install XQuartz.

We need XMonad's compilation step to include the -framework Cocoa flag to GHC. This repository includes a xmonad.patch (1 line diff) that you must apply to the XMonad source:

git clone https://github.com/yvan-sraka/osxmonad.git
git clone https://github.com/xmonad/xmonad.git
cd xmonad
git apply ../osxmonad/xmonad.patch
cabal configure
cabal install
cd ../osxmonad
cabal configure
cabal install

Note: cabal configure && cabal install steps could be replaced by stack install if you prefer or just want to give a try to the Haskell Tool Stack!

Configuration

Create ~/.xmonad/xmonad.hs:

import XMonad
import OSXMonad.Core

main = osxmonad defaultConfig {
            modMask = mod1Mask .|. mod4Mask,
            keys = osxKeys
        }

Now we can run xmonad to have our windows managed.

Troubleshooting

License

BSD-3