about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-13 11:58:43 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-13 11:58:43 +0200
commite3c5147a9a97aaf65a7a8149aff06fcf17d0a2a5 (patch)
treeafaa08593a44e09e4ecdbe7dfc9983194140f1c8 /pkgs
parentf8838aef8e144e0e9fffe4e6e5eedadb72e68b62 (diff)
downloadpnpkgs-e3c5147a9a97aaf65a7a8149aff06fcf17d0a2a5.tar.gz
pnpkgs-e3c5147a9a97aaf65a7a8149aff06fcf17d0a2a5.zip
Add centered dmenu_run
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/dwm/default.nix2
-rw-r--r--pkgs/dwm/dwm-apps.diff (renamed from pkgs/dwm/dwm-telegram.diff)13
2 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/dwm/default.nix b/pkgs/dwm/default.nix
index 704d664..a0797a1 100644
--- a/pkgs/dwm/default.nix
+++ b/pkgs/dwm/default.nix
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
   patches = [
     ./dwm-systray.diff
     ./dwm-center.diff
-    ./dwm-telegram.diff
+    ./dwm-apps.diff
   ];
 
   buildPhase = " make ";
diff --git a/pkgs/dwm/dwm-telegram.diff b/pkgs/dwm/dwm-apps.diff
index d548bbb..6bda9b5 100644
--- a/pkgs/dwm/dwm-telegram.diff
+++ b/pkgs/dwm/dwm-apps.diff
@@ -8,8 +8,17 @@ index 6c880c2..0d9eaf8 100644
  	{ NULL,      "spcalc",    NULL,       	    SPTAG(1),     0,          1,           1,         0,        -1 },
 +  { NULL,      "telegram-desktop",  NULL,     0,            1,          1,           0,         0,        -1 },
  };
- 
+
  /* layout(s) */
+@@ -102,7 +103,7 @@ static const Layout layouts[] = {
+
+ /* commands */
+ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
+-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
++static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, "-c", "bw", "2", "-l", "15", NULL };
+ static const char *termcmd[]  = { "st", NULL };
+
+ #include <X11/XF86keysym.h>
 @@ -154,7 +155,7 @@ static Key keys[] = {
  	{ MODKEY|ShiftMask,		XK_bracketleft,		spawn,		SHCMD("mpc seek -60") },
  	{ MODKEY,			XK_bracketright,	spawn,		SHCMD("mpc seek +10") },
@@ -17,5 +26,5 @@ index 6c880c2..0d9eaf8 100644
 -	{ MODKEY,			XK_backslash,		view,		{0} },
 +	{ MODKEY,			XK_backslash,		spawn,		SHCMD("telegram-desktop") },
  	/* { MODKEY|ShiftMask,		XK_backslash,		spawn,		SHCMD("") }, */
- 
+
  	{ MODKEY,			XK_a,		togglegaps,	{0} },