1
0
mirror of https://github.com/alrayyes/dwm synced 2023-11-14 15:56:31 +00:00

Added selfrestart patch

This commit is contained in:
Ryan Kes 2019-02-18 15:14:10 +01:00
parent c99f256dd1
commit 4434dbd998
2 changed files with 7 additions and 2 deletions

View File

@ -19,6 +19,7 @@ _patches=(
"https://dwm.suckless.org/patches/autostart/dwm-autostart-20161205-bb3bd6f.diff"
"https://dwm.suckless.org/patches/cyclelayouts/dwm-cyclelayouts-20180524-6.2.diff"
"https://dwm.suckless.org/patches/gridmode/dwm-gridmode-20170909-ceac8c9.diff"
"https://dwm.suckless.org/patches/selfrestart/dwm-r1615-selfrestart.diff"
)
source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
@ -27,14 +28,15 @@ source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
"${_patches[@]}")
md5sums=('9929845ccdec4d2cc191f16210dd7f3d'
'30c9a90a677935fb17b2fd0a4ae74f3f'
'ecec97229adfaa98ebeb99b0e45df173'
'939f403a71b6e85261d09fc3412269ee'
'2c19f1a3db59e158c45483668f4cee24'
'fbb786263f2d714b18368ff64779d669'
'c75af619c04cfae7b9740ec140d1dc6c'
'46ff022e2a2c6139e71399eb19d1aebb'
'5baffd8c124095d06b133e9b31a854b2'
'6055775113fd4dc06200bc6aaafb72fb')
'6055775113fd4dc06200bc6aaafb72fb'
'aa3d5f3c45057a2a6ee73aede3fc218a')
prepare() {
cd $srcdir/$pkgname-$pkgver

View File

@ -66,6 +66,8 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
#include "selfrestart.c"
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
@ -103,6 +105,7 @@ static Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_r, self_restart, {0} },
{ MODKEY|ShiftMask, XK_q, quit, {0} },
};