summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryanpcmcquen@gmail.com>2014-04-19 00:04:07 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-04-23 07:51:44 +0700
commit12ecec5704e4387556df5122fff48664c6abe030 (patch)
tree7e9935ed1500e0dfbea323f6682f75e72328017b /desktop
parenta3cd5c9820ec5b7f78d7296f47259d7cd07c6313 (diff)
downloadslackbuilds-12ecec5704e4387556df5122fff48664c6abe030.tar.gz
desktop/dwm: Add sample patch.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/dwm/README.CONFIG8
-rw-r--r--desktop/dwm/dwm.SlackBuild11
-rw-r--r--desktop/dwm/patches/st.patch11
3 files changed, 24 insertions, 6 deletions
diff --git a/desktop/dwm/README.CONFIG b/desktop/dwm/README.CONFIG
index 1362b2c5fe..16a7d2ea57 100644
--- a/desktop/dwm/README.CONFIG
+++ b/desktop/dwm/README.CONFIG
@@ -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:
diff --git a/desktop/dwm/dwm.SlackBuild b/desktop/dwm/dwm.SlackBuild
index 7b8ccd9041..ea2c5a2696 100644
--- a/desktop/dwm/dwm.SlackBuild
+++ b/desktop/dwm/dwm.SlackBuild
@@ -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 \
diff --git a/desktop/dwm/patches/st.patch b/desktop/dwm/patches/st.patch
new file mode 100644
index 0000000000..c647a1009a
--- /dev/null
+++ b/desktop/dwm/patches/st.patch
@@ -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 */