FreeBSD Bugzilla – Attachment 189807 Details for
Bug 225227
x11-wm/dwm: [feature, patch] Add a config knob to use Super instead of Alt for the mod key (+ minor Makefile fixes)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add a config knob to use Super instead of Alt for the mod key, strip the binary and clean up the Makefile
dwm-super-mod-key.diff (text/plain), 1.80 KB, created by
Mateusz Piotrowski
on 2018-01-16 17:05:44 UTC
(
hide
)
Description:
Add a config knob to use Super instead of Alt for the mod key, strip the binary and clean up the Makefile
Filename:
MIME Type:
Creator:
Mateusz Piotrowski
Created:
2018-01-16 17:05:44 UTC
Size:
1.80 KB
patch
obsolete
>diff -N -r -u dwm.orig/Makefile dwm/Makefile >--- dwm.orig/Makefile 2016-04-01 16:33:55.000000000 +0200 >+++ dwm/Makefile 2018-01-16 17:27:24.877344000 +0100 >@@ -3,10 +3,11 @@ > > PORTNAME= dwm > PORTVERSION= 6.1 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= x11-wm > MASTER_SITES= http://dl.suckless.org/${PORTNAME}/ \ > http://schot.a-eskwadraat.nl/files/ >+ > PATCH_SITES= http://dwm.suckless.org/patches/ > > MAINTAINER= schot@a-eskwadraat.nl >@@ -17,12 +18,16 @@ > > LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig > >-OPTIONS_DEFINE= XINERAMA DOCS >+OPTIONS_DEFINE= XINERAMA DOCS SUPERASMODKEY > OPTIONS_DEFAULT=XINERAMA > >+SUPERASMODKEY_DESC= Use Super instead of Alt for the dwm mod key >+ > XINERAMA_USE= XORG=xinerama > XINERAMA_MAKE_ARGS_OFF= XINERAMAFLAGS= XINERAMALIBS= > >+SUPERASMODKEY_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-config.def.h >+ > USE_XORG= x11 xft > MAKE_ARGS= CC="${CC}" PREFIX="${PREFIX}" MANPREFIX="${MANPREFIX}/man" \ > X11INC="${LOCALBASE}/include" X11LIB="${LOCALBASE}/lib" >@@ -45,5 +50,6 @@ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} >+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dwm > > .include <bsd.port.mk> >diff -N -r -u dwm.orig/files/extra-patch-config.def.h dwm/files/extra-patch-config.def.h >--- dwm.orig/files/extra-patch-config.def.h 1970-01-01 01:00:00.000000000 +0100 >+++ dwm/files/extra-patch-config.def.h 2018-01-16 17:05:34.164813000 +0100 >@@ -0,0 +1,11 @@ >+--- config.def.h.orig 2018-01-16 16:05:12 UTC >++++ config.def.h >+@@ -42,7 +42,7 @@ static const Layout layouts[] = { >+ }; >+ >+ /* key definitions */ >+-#define MODKEY Mod1Mask >++#define MODKEY Mod4Mask >+ #define TAGKEYS(KEY,TAG) \ >+ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ >+ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225227
: 189807