Patched the config/rc scripts to maintain the existing default font when using the new dmenu.
Tim. Index: Makefile =================================================================== RCS file: /cvs/ports/x11/wmii/Makefile,v retrieving revision 1.20 diff -u -p -r1.20 Makefile --- Makefile 16 Feb 2015 22:57:14 -0000 1.20 +++ Makefile 10 Nov 2015 01:41:34 -0000 @@ -3,7 +3,7 @@ COMMENT= dynamic window manager DISTNAME= wmii-3.6 -REVISION= 5 +REVISION= 6 CATEGORIES= x11 HOMEPAGE= http://wmii.suckless.org/ cvs server: Diffing patches Index: patches/patch-rc_rc_wmii_rc =================================================================== RCS file: patches/patch-rc_rc_wmii_rc diff -N patches/patch-rc_rc_wmii_rc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-rc_rc_wmii_rc 10 Nov 2015 01:41:34 -0000 @@ -0,0 +1,20 @@ +$OpenBSD$ +--- rc/rc.wmii.rc.orig Mon Nov 9 20:22:02 2015 ++++ rc/rc.wmii.rc Mon Nov 9 20:23:01 2015 +@@ -37,6 +37,7 @@ LEFT=h + RIGHT=l + + WMII_FONT='-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*' ++DMENU_FONT='Fixed-10' + WMII_NORMCOLORS=('#888888' '#222222' '#333333') + WMII_FOCUSCOLORS=('#ffffff' '#285577' '#4C7899') + WMII_BACKGROUND='#333333' +@@ -63,7 +64,7 @@ fn viewtitle { echo $* } + + # Convenience Functions + fn wmiimenu { +- dmenu -b -fn $WMII_FONT \ ++ dmenu -b -fn $DMENU_FONT \ + -nf $WMII_NORMCOLORS(1) -nb $WMII_NORMCOLORS(2) \ + -sf $WMII_FOCUSCOLORS(1) -sb $WMII_FOCUSCOLORS(2) + } Index: patches/patch-rc_sh_wmii =================================================================== RCS file: patches/patch-rc_sh_wmii diff -N patches/patch-rc_sh_wmii --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-rc_sh_wmii 10 Nov 2015 01:41:34 -0000 @@ -0,0 +1,20 @@ +$OpenBSD$ +--- rc/sh.wmii.orig Mon Nov 9 20:23:13 2015 ++++ rc/sh.wmii Mon Nov 9 20:24:18 2015 +@@ -17,6 +17,7 @@ LEFT=h + RIGHT=l + + WMII_FONT=fixed ++DMENU_FONT='Fixed-10' + WMII_NORMCOLORS=('#222222' '#5FBF77' '#2A7F3F') + WMII_FOCUSCOLORS=('#ffffff' '#153F1F' '#2A7F3F') + WMII_BACKGROUND='#333333' +@@ -26,7 +27,7 @@ WMII_TERM=urxvt + fn wmiimenu { + (nf nb nil sf sb nil) := ($WMII_NORMCOLORS $WMII_FOCUSCOLORS) + os -d ${hostenv HOME} ( +- dmenu -b -fn $WMII_FONT ++ dmenu -b -fn $DMENU_FONT + -nf $nf -nb $nb -sf $sf -sb $sb) + } + Index: patches/patch-rc_wmiirc_sh =================================================================== RCS file: patches/patch-rc_wmiirc_sh diff -N patches/patch-rc_wmiirc_sh --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-rc_wmiirc_sh 10 Nov 2015 01:41:34 -0000 @@ -0,0 +1,24 @@ +$OpenBSD$ +--- rc/wmiirc.sh.orig Mon Nov 9 20:20:45 2015 ++++ rc/wmiirc.sh Mon Nov 9 20:25:28 2015 +@@ -14,9 +14,10 @@ WMII_FOCUSCOLORS='#ffffff #285577 #4c7899' + + WMII_BACKGROUND='#333333' + WMII_FONT='-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*' ++DMENU_FONT='Fixed-10' + + set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS) +-WMII_MENU="dmenu -b -fn '$WMII_FONT' -nf '$1' -nb '$2' -sf '$4' -sb '$5'" ++WMII_MENU="dmenu -b -fn '$DMENU_FONT' -nf '$1' -nb '$2' -sf '$4' -sb '$5'" + WMII_9MENU="wmii9menu -font '$WMII_FONT' -nf '$1' -nb '$2' -sf '$4' -sb '$5' -br '$6'" + WMII_TERM="xterm" + +@@ -168,7 +169,7 @@ grabmod $MODKEY + border 1 + EOF + +-export WMII_MENU WMII_9MENU WMII_FONT WMII_TERM ++export WMII_MENU WMII_9MENU WMII_FONT DMENU_FONT WMII_TERM + export WMII_FOCUSCOLORS WMII_SELCOLORS WMII_NORMCOLORS + + # Feed events to `wmiiloop' for processing