desktop/dwm: Add sample patch.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a3cd5c9820
commit
12ecec5704
|
@ -21,15 +21,17 @@ dwm draws a small border around windows to indicate their focus state.
|
|||
|
||||
CUSTOMIZATION
|
||||
-------------
|
||||
Place patches in patches/ (this directory is not included by default).
|
||||
Any files in this directory will be applied before the build.
|
||||
If you wish to make changes to the default keybindings or other
|
||||
settings, produce a patch against config.h.
|
||||
config.h is a copy of config.def.h distributed with the source
|
||||
tarball.
|
||||
|
||||
Place any patches in the patches/ directory before starting the
|
||||
SlackBuild script.
|
||||
SlackBuild script. A sample patch is included that will change
|
||||
the default terminal from 'uxterm' to 'st'.
|
||||
This video shows how I created the patch:
|
||||
|
||||
https://asciinema.org/a/7886
|
||||
|
||||
Example:
|
||||
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
# Slackware build script for dwm
|
||||
|
||||
# Copyright (c) 2014 Ryan P.C. McQuen, with permission of original
|
||||
# maintainer Tom Canich.
|
||||
# Copyright 2014 Ryan P.C. McQuen, WA, ryan.q@linux.com
|
||||
#
|
||||
# With permission of original maintainer Tom Canich.
|
||||
# All rights reserved.
|
||||
|
||||
# Copyright (c) 2009,2011 Tom Canich, State College, Pennsylvania, USA
|
||||
|
@ -76,11 +77,15 @@ mv config.def.h config.h
|
|||
|
||||
### Per community request, this section has been restored
|
||||
### for those that wish to include custom patches.
|
||||
### The patches/ directory must be created. -Ryan
|
||||
### A sample patch is included in the patches/ directory
|
||||
### that will change the default terminal from 'uxterm'
|
||||
### to 'st'. -Ryan
|
||||
#
|
||||
#for i in $(ls $CWD/patches); do
|
||||
# patch -p0 < $CWD/patches/$i
|
||||
#done
|
||||
|
||||
|
||||
make \
|
||||
OPTS="$SLKCFLAGS" \
|
||||
PREFIX=/usr \
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
--- config.h 2014-04-17 21:48:40.014970116 -0700
|
||||
+++ st.h 2014-04-17 21:48:55.490969058 -0700
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
/* commands */
|
||||
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
|
||||
-static const char *termcmd[] = { "uxterm", NULL };
|
||||
+static const char *termcmd[] = { "st", NULL };
|
||||
|
||||
static Key keys[] = {
|
||||
/* modifier key function argument */
|
Loading…
Reference in New Issue