feat(wm): install xmonad

This commit is contained in:
Khaïs COLIN 2025-02-09 13:19:01 +01:00
parent 3c6a5f3ee2
commit 786a8cb186
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
3 changed files with 36 additions and 0 deletions

24
xmonad.hs Normal file
View file

@ -0,0 +1,24 @@
import XMonad
import XMonad.Util.EZConfig
import System.Exit
main :: IO ()
main = xmonad $ myConfig
myConfig = def
`additionalKeysP`
[
-- Screen lock & suspend
("C-M-l" , spawn "swaylock" )
, ("C-M-L" , spawn "swaylock" *> spawn "systemctl suspend")
-- Terminal
, ("S-<Return>", spawn "kitty" )
-- Frequent programs
, ("S-q", spawn "firefox" )
, ("S-a", spawn "emacs" )
, ("S-d", spawn "discord" )
, ("S-g", spawn "dolphin" )
-- Program launcher
, ("S-r", spawn "rofi -show drun -theme Paper" )
-- Exit
, ("S-M-C-q", io (exitWith ExitSuccess) )
]