feat(wm): install xmonad
This commit is contained in:
parent
3c6a5f3ee2
commit
786a8cb186
3 changed files with 36 additions and 0 deletions
|
|
@ -43,6 +43,9 @@
|
||||||
# You can disable this if you're only using the Wayland session.
|
# You can disable this if you're only using the Wayland session.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
|
# emable xmonad
|
||||||
|
services.xserver.windowManager.xmonad.enable = true;
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
services.displayManager.sddm.enable = true;
|
services.displayManager.sddm.enable = true;
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
|
||||||
9
home.nix
9
home.nix
|
|
@ -85,6 +85,8 @@ in {
|
||||||
# xmonad
|
# xmonad
|
||||||
# apparently this is needed for the haskell lsp
|
# apparently this is needed for the haskell lsp
|
||||||
ghc
|
ghc
|
||||||
|
i3lock
|
||||||
|
xmobar
|
||||||
];
|
];
|
||||||
|
|
||||||
file = {
|
file = {
|
||||||
|
|
@ -247,4 +249,11 @@ in {
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xsession.windowManager.xmonad = {
|
||||||
|
enable = true;
|
||||||
|
config = ./xmonad.hs;
|
||||||
|
enableContribAndExtras = true;
|
||||||
|
};
|
||||||
|
programs.rofi.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
xmonad.hs
Normal file
24
xmonad.hs
Normal 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) )
|
||||||
|
]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue