Add -c to dmenu, but as a noop

To support other scripts.
This commit is contained in:
Oliver Davies 2025-08-19 20:56:05 +01:00
parent bafbce7ac1
commit a054ca7ded
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,14 @@
diff --git a/dmenu.c b/dmenu.c
index fd49549..e9e2648 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -757,6 +757,8 @@ main(int argc, char *argv[])
colors[SchemeSel][ColFg] = argv[++i];
else if (!strcmp(argv[i], "-w")) /* embedding window id */
embed = argv[++i];
+ else if (!strcmp(argv[i], "-c"))
+ continue;
else
usage();

View file

@ -3,7 +3,12 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
dmenu
(dmenu.override {
patches = [
./dmenu-center-noop.patch
];
})
dmenu-bluetooth
dunst
networkmanager_dmenu