Add -c
to dmenu, but as a noop
To support other scripts.
This commit is contained in:
parent
bafbce7ac1
commit
a054ca7ded
2 changed files with 20 additions and 1 deletions
14
modules/dwm/dmenu-center-noop.patch
Normal file
14
modules/dwm/dmenu-center-noop.patch
Normal 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();
|
||||||
|
|
|
@ -3,7 +3,12 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
dmenu
|
(dmenu.override {
|
||||||
|
patches = [
|
||||||
|
./dmenu-center-noop.patch
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
||||||
dmenu-bluetooth
|
dmenu-bluetooth
|
||||||
dunst
|
dunst
|
||||||
networkmanager_dmenu
|
networkmanager_dmenu
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue