Difference between revisions of "Dwm"
From NixOS Wiki
m (Fix typos) |
Hypnosis2839 (talk | contribs) (replace overlays with override, deduplicate info) |
||
Line 1: | Line 1: | ||
− | <code>dwm</code> is a window manager made by the suckless team | + | <code>dwm</code> is a window manager made by the suckless team. |
== Installation == | == Installation == | ||
− | + | Enable <code>dwm</dwm> in your system configuration: | |
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
Line 11: | Line 11: | ||
− | == Creating | + | == Creating override == |
− | To | + | To patch dwm, override `services.xserver.windowManager.dwm.package` as below: |
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
− | + | services.xserver.windowManager.dwm.package = pkgs.dwm.overrideAttrs (oldAttrs: rec { | |
− | + | 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"` | |
− | + | hash = ""; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}) | }) | ||
− | ]; | + | ]; |
+ | }) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
[https://nixos.wiki/wiki/St st] | [https://nixos.wiki/wiki/St st] | ||
+ | |||
+ | [https://tools.suckless.org/dmenu/ DMenu] | ||
[[Category:Window managers]] | [[Category:Window managers]] | ||
[[Category:Applications]] | [[Category:Applications]] |
Revision as of 16:16, 17 August 2023
dwm
is a window manager made by the suckless team.
Installation
Enable dwm</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.overrideAttrs (oldAttrs: rec {
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"`
hash = "";
})
];
})
See also