Dwm: Difference between revisions

imported>Hypnosis2839
m clean up formatting
fix links
 
(3 intermediate revisions by one other user not shown)
Line 10: Line 10:
</syntaxhighlight>
</syntaxhighlight>


== Creating override ==
== Creating an override ==
=== Patching dwm ===


To patch dwm, override <code>services.xserver.windowManager.dwm.package</code> as below:
To patch dwm, override <code>services.xserver.windowManager.dwm.package</code> as below:
Line 30: Line 31:
};
};
</syntaxhighlight>
</syntaxhighlight>
=== Using custom sources ===
If you have a locally stored source tree for dwm with changes already applied, you can use that instead:
<syntaxhighlight lang="nix">
services.xserver.windowManager.dwm.package = pkgs.dwm.overrideAttrs {
  src = ./path/to/dwm/source/tree;
};
</syntaxhighlight>
Alternatively, you can set <code>src</code> to [https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers the output of a fetcher], if you have the source tree stored online.
== Troubleshooting ==
If your change does not appear to take effect:
* You must '''not''' have <code>dwm</code> listed anywhere in your <code>environment.systemPackages</code> or <code>home.packages</code>.
* Remove any packages installed via <code>nix-env</code> or <code>nix profile</code>.
* After rebuilding and switching, reboot and check again.


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


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