blob: 76cc166a41ff9e53f73a1c747af75200487b1cac [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
12shift = shiftMask
13
Skyler Greyb43ac6b2022-10-31 00:48:34 +000014main :: IO ()
15main = xmonad $ def
Skyler Greye2ec0de2022-11-02 08:07:25 +000016 { modMask = modifierKey -- Use Super as our mod key
17 , XMonad.terminal = Main.terminal
18 } `additionalKeys`
19 [ ((modifierKey, xK_d), spawn launcher)
20 , ((modifierKey, xK_n), spawn networkManager)
21 , ((modifierKey .|. shift, xK_q), kill)
22 , ((modifierKey, xK_q), spawn "xmonad --restart")
23 , ((modifierKey .|. shift, xK_c), io (exitWith ExitSuccess))
24 ]