Dwm: Difference between revisions

From NixOS Wiki
imported>Hypnosis2839
→‎Creating override: simplify override
imported>Hypnosis2839
m clean up formatting
Line 4: Line 4:
== Installation ==
== Installation ==


Enable <code>dwm</dwm> in your system configuration:
Enable <code>dwm</code> in your system configuration:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
services.xserver.windowManager.dwm.enable = true;
services.xserver.windowManager.dwm.enable = true;
</syntaxhighlight>
</syntaxhighlight>


== Creating override ==
== Creating override ==
Line 29: Line 28:
     })
     })
   ];
   ];
}
};
</syntaxhighlight>
</syntaxhighlight>


== See also ==
== See also ==
[https://nixos.wiki/wiki/St st]
* [https://nixos.wiki/wiki/St st]
 
* [https://tools.suckless.org/dmenu/ DMenu]
[https://tools.suckless.org/dmenu/ DMenu]


[[Category:Window managers]]
[[Category:Window managers]]
[[Category:Applications]]
[[Category:Applications]]

Revision as of 17:25, 17 August 2023

dwm is a window manager made by the suckless team.

Installation

Enable dwm in your system configuration:

services.xserver.windowManager.dwm.enable = true;

Creating override

To patch dwm, override services.xserver.windowManager.dwm.package as below:

services.xserver.windowManager.dwm.package = pkgs.dwm.override {
  patches = [
    # for local patch files, replace with relative path to patch file
    ./path/to/local.patch
    # for external patches
    (pkgs.fetchpatch {
      # replace with actual URL
      url = "https://dwm.suckless.org/patches/path/to/patch.diff";
      # replace hash with the value from `nix-prefetch-url "https://dwm.suckless.org/patches/path/to/patch.diff" | xargs nix hash to-sri --type sha256`
      # or just leave it blank, rebuild, and use the hash value from the error
      hash = "";
    })
  ];
};

See also