substituteAll -> replaceVars

This commit is contained in:
2025-06-20 01:12:03 -04:00
parent 84ee16c98a
commit dfe853ec96

View File

@@ -2,11 +2,7 @@
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { (final: prev: {
st = prev.st.override { st = prev.st.override {
conf = builtins.readFile (pkgs.substituteAll { conf = builtins.readFile (pkgs.replaceVars ./dwm/st-config.def.h {});
src = ./dwm/st-config.def.h;
env = {
};
});
}; };
}) })
]; ];
@@ -18,21 +14,18 @@
emacsclient --create-frame --alternate-editor="" emacsclient --create-frame --alternate-editor=""
''; '';
in pkgs.dwm.override { in pkgs.dwm.override {
conf = pkgs.substituteAll { conf = pkgs.replaceVars ./dwm/config.h {
src = ./dwm/config.h; dmenucmd="${pkgs.dmenu}/bin/dmenu_run";
env = { termcmd="${pkgs.st}/bin/st";
dmenucmd="${pkgs.dmenu}/bin/dmenu_run"; editcmd="${launch_emacs}";
termcmd="${pkgs.st}/bin/st"; playcmd=pkgs.writeScript "playerctl-play-pause" ''
editcmd="${launch_emacs}"; #!${pkgs.bash}/bin/bash
playcmd=pkgs.writeScript "playerctl-play-pause" '' ${pkgs.playerctl}/bin/playerctl play-pause
#!${pkgs.bash}/bin/bash '';
${pkgs.playerctl}/bin/playerctl play-pause scrncmd=pkgs.writeScript "screenshot-region" ''
''; #!${pkgs.bash}/bin/bash
scrncmd=pkgs.writeScript "screenshot-region" '' ${pkgs.maim}/bin/maim -o -s | ${pkgs.xclip}/bin/xclip -sel clip -t image/png
#!${pkgs.bash}/bin/bash '';
${pkgs.maim}/bin/maim -o -s | ${pkgs.xclip}/bin/xclip -sel clip -t image/png
'';
};
}; };
patches = [ patches = [
./dwm/fullscreen.patch ./dwm/fullscreen.patch