ctucx.git: nixfiles

ctucx' nixfiles

commit 459a216c9b3c9ec93cde70a82a3577d954b2b666
parent 906dd9feaa1180e248aa9a255c6cae8dfd03a945
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 12 Oct 2021 11:52:25 +0200

programs/sway: disable xwayland in wl-roots and sway
1 file changed, 20 insertions(+), 11 deletions(-)
M
configurations/programs/sway.nix
|
31
++++++++++++++++++++-----------
diff --git a/configurations/programs/sway.nix b/configurations/programs/sway.nix
@@ -3,6 +3,22 @@
 {
 #  environment.noXlibs = true;
 
+  nixpkgs.overlays = [(self: super: {
+
+    wlroots = super.wlroots.overrideAttrs (old: {
+      mesonFlags = (old.mesonFlags or []) ++ [
+        "-Dxwayland=disabled"
+      ];
+    });
+
+    sway-unwrapped = super.sway-unwrapped.overrideAttrs (old: {
+      mesonFlags = (old.mesonFlags or []) ++ [
+        "-Dxwayland=disabled"
+      ];
+    });
+
+  })];
+
   home-manager.users.leah = {
 
     home.packages = with pkgs; [

@@ -18,11 +34,9 @@
     wayland.windowManager.sway = let
       cfg         = config.home-manager.users.leah.wayland.windowManager.sway;
       modifier    = cfg.config.modifier;
-      terminal    = cfg.config.terminal;
-      wofi-style  = ./wofi/style.css;
-      wofi-config = ./wofi/config;
+      terminal    = "${pkgs.alacritty}/bin/alacritty";
 
-   in {
+    in {
       enable              = true;
       xwayland            = false;
       wrapperFeatures.gtk = true;

@@ -90,20 +104,15 @@
 
         bars = [];
 
-        terminal = "${pkgs.alacritty}/bin/alacritty";
-        menu     = "${pkgs.wofi}/bin/wofi --style ${wofi-style} --conf ${wofi-config} --show drun";
-
         modifier = "Mod4";
-        left     = "";
-        right    = "";
 
         workspaceAutoBackAndForth = true;
 
         keybindings = {
           "${modifier}+Delete"        = "exec true";
 
-          "${modifier}+Return"        = "exec ${cfg.config.terminal}";
-          "${modifier}+Space"         = "exec ${cfg.config.menu}";
+          "${modifier}+Return"        = "exec ${terminal}";
+          "${modifier}+Space"         = "exec ${pkgs.wofi}/bin/wofi --style ${./wofi/style.css} --conf ${./wofi/config} --show drun";
           "${modifier}+l"             = "exec ${pkgs.systemd}/bin/loginctl lock-session";
 
           "Shift+Print"               = "exec ${pkgs.grim}/bin/grim ~/Pictures/Screenshots/$(date +\"%Y-%m-%d_%H:%m:%S\").png";