xmonad kind of sucks

This commit is contained in:
mehbark 2023-08-15 13:22:30 -04:00
parent fea62e4c69
commit a1d5509ab6
3 changed files with 6 additions and 5 deletions

View file

@ -1,8 +1,8 @@
with builtins; with builtins;
{ {
wm = "xmonad"; wm = "plasma";
# very, very non-exhaustive of course # very, very non-exhaustive of course
is-x11 = wm: elem wm ["kde" "xmonad"]; is-x11 = wm: elem wm ["plasma" "xmonad"];
is-wayland = wm: elem wm ["hyprland" "sway"]; is-wayland = wm: elem wm ["hyprland" "sway"];
} }

View file

@ -61,8 +61,8 @@ in
services.xserver.enable = x11; services.xserver.enable = x11;
# Enable the KDE Plasma Desktop Environment. # Enable the KDE Plasma Desktop Environment.
services.xserver.displayManager.sddm.enable = conf.wm == "kde"; services.xserver.displayManager.sddm.enable = conf.wm == "plasma" || conf.wm == "xmonad";
services.xserver.desktopManager.plasma5.enable = conf.wm == "kde"; services.xserver.desktopManager.plasma5.enable = conf.wm == "plasma";
# Configure keymap in X11 # Configure keymap in X11
services.xserver = { services.xserver = {

View file

@ -134,7 +134,8 @@ in
enable = true; enable = true;
config = pkgs.writeText "xmonad.hs" '' config = pkgs.writeText "xmonad.hs" ''
import XMonad import XMonad
main = xmonad def import XMonad.Config.Kde
main = xmonad kde4Config
{ terminal = "kitty" { terminal = "kitty"
, modMask = mod4Mask , modMask = mod4Mask
, borderWidth = 1 , borderWidth = 1