about summary refs log tree commit diff
path: root/src/Main.hs
blob: 74b63a146bb17da2fcf841885ea2743e32eaa5ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
-- |
-- Module      : Main
-- Copyright   : (c) 2018-2020 Azat Bahawi
-- License     : BSD3-style (see LICENSE)
-- Maintainer  : Azat Bahawi <azahi@teknik.io>
-- Stability   : unstable
-- Portability : unportable

module Main where

import           XMonad                         ( Default(def)
                                                , XConfig
                                                  ( borderWidth
                                                  , clickJustFocuses
                                                  , focusFollowsMouse
                                                  , focusedBorderColor
                                                  , handleEventHook
                                                  , keys
                                                  , layoutHook
                                                  , logHook
                                                  , manageHook
                                                  , modMask
                                                  , mouseBindings
                                                  , normalBorderColor
                                                  , startupHook
                                                  , terminal
                                                  , workspaces
                                                  )
                                                , xmonad
                                                )
import           XMonad.Actions.DynamicProjects ( dynamicProjects )
import           XMonad.Actions.Navigation2D    ( withNavigation2DConfig )
import qualified XMonad.Custom.Bindings        as C
import qualified XMonad.Custom.Event           as C
import qualified XMonad.Custom.Layout          as C
import qualified XMonad.Custom.Log             as C
import qualified XMonad.Custom.Manage          as C
import qualified XMonad.Custom.Misc            as C
import qualified XMonad.Custom.Navigation      as C
import qualified XMonad.Custom.Projects        as C
import qualified XMonad.Custom.Startup         as C
import qualified XMonad.Custom.Theme           as C
import qualified XMonad.Custom.Workspaces      as C
import           XMonad.Hooks.EwmhDesktops      ( ewmh )
import           XMonad.Hooks.ManageDocks       ( docks )
import           XMonad.Layout.Fullscreen       ( fullscreenSupport )

main :: IO ()
main =
  xmonad
    $ ewmh
    $ fullscreenSupport
    $ docks
    $ withNavigation2DConfig C.navigation
    $ dynamicProjects C.projects
    $ def { borderWidth        = C.border
          , workspaces         = C.workspaces
          , layoutHook         = C.layoutHook
          , terminal           = C.term C.applications
          , normalBorderColor  = C.colorN
          , focusedBorderColor = C.colorF
          , modMask            = C.modMask
          , keys               = C.keys
          , logHook            = C.logHook
          , startupHook        = C.startupHook
          , mouseBindings      = C.mouseBindings
          , manageHook         = C.manageHook
          , handleEventHook    = C.handleEventHook
          , focusFollowsMouse  = False
          , clickJustFocuses   = False
          }

Consider giving Nix/NixOS a try! <3