Skyler Grey | b43ac6b | 2022-10-31 00:48:34 +0000 | [diff] [blame] | 1 | -- spell-checker:words xmonad |
| 2 | import XMonad |
| 3 | |
Skyler Grey | e2ec0de | 2022-11-02 08:07:25 +0000 | [diff] [blame] | 4 | import System.Exit |
Skyler Grey | b43ac6b | 2022-10-31 00:48:34 +0000 | [diff] [blame] | 5 | import XMonad.Util.EZConfig |
| 6 | |
Skyler Grey | e2ec0de | 2022-11-02 08:07:25 +0000 | [diff] [blame] | 7 | terminal = "kitty" -- Kitty, my beloved <3 |
| 8 | launcher = "pkill rofi; rofi -show combi" |
| 9 | networkManager = "wpa_cli select_network $(wpa_cli list_networks | tail -n +3 | rofi -dmenu -window-title 'Select Network' | awk '{print $1;}')" |
| 10 | modifierKey = mod4Mask -- Use Super as our mod key |
| 11 | |
| 12 | shift = shiftMask |
| 13 | |
Skyler Grey | b43ac6b | 2022-10-31 00:48:34 +0000 | [diff] [blame] | 14 | main :: IO () |
| 15 | main = xmonad $ def |
Skyler Grey | e2ec0de | 2022-11-02 08:07:25 +0000 | [diff] [blame] | 16 | { 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 | ] |