blob: 725ae28776c65ffdc80d2477a5b27f7df345f71e [file] [log] [blame]
Skyler Greyb43ac6b2022-10-31 00:48:34 +00001-- spell-checker:words xmonad
2import XMonad
3
Skyler Greye2ec0de2022-11-02 08:07:25 +00004import System.Exit
Skyler Greyb43ac6b2022-10-31 00:48:34 +00005import XMonad.Util.EZConfig
6
Skyler Greye2ec0de2022-11-02 08:07:25 +00007terminal = "kitty" -- Kitty, my beloved <3
8launcher = "pkill rofi; rofi -show combi"
9networkManager = "wpa_cli select_network $(wpa_cli list_networks | tail -n +3 | rofi -dmenu -window-title 'Select Network' | awk '{print $1;}')"
10modifierKey = mod4Mask -- Use Super as our mod key
11
Skyler Grey34021e32022-11-04 09:28:03 +000012statusBar = "pkill polybar; polybar"
13
Skyler Greye2ec0de2022-11-02 08:07:25 +000014shift = shiftMask
15
Skyler Grey34021e32022-11-04 09:28:03 +000016startupHook = do
17 spawn statusBar
18
Skyler Greyb43ac6b2022-10-31 00:48:34 +000019main :: IO ()
Skyler Grey34021e32022-11-04 09:28:03 +000020main = xmonad $ ewmh def
Skyler Greye2ec0de2022-11-02 08:07:25 +000021 { modMask = modifierKey -- Use Super as our mod key
22 , XMonad.terminal = Main.terminal
Skyler Grey34021e32022-11-04 09:28:03 +000023 , startupHook = startupHook
Skyler Greye2ec0de2022-11-02 08:07:25 +000024 } `additionalKeys`
25 [ ((modifierKey, xK_d), spawn launcher)
26 , ((modifierKey, xK_n), spawn networkManager)
27 , ((modifierKey .|. shift, xK_q), kill)
28 , ((modifierKey, xK_q), spawn "xmonad --restart")
29 , ((modifierKey .|. shift, xK_c), io (exitWith ExitSuccess))
30 ]