Adapt x11/wmii to font changes in dmenu. From trondd at kagu-tsuchi com

This commit is contained in:
sthen 2015-11-12 09:59:41 +00:00
parent 3033d56acf
commit 1d049b101b
4 changed files with 48 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.20 2015/02/16 22:57:14 naddy Exp $
# $OpenBSD: Makefile,v 1.21 2015/11/12 09:59:41 sthen Exp $
COMMENT= dynamic window manager
DISTNAME= wmii-3.6
REVISION= 5
REVISION= 6
CATEGORIES= x11
HOMEPAGE= http://wmii.suckless.org/

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-rc_rc_wmii_rc,v 1.3 2015/11/12 09:59:41 sthen Exp $
--- rc/rc.wmii.rc.orig Thu Nov 12 09:56:54 2015
+++ rc/rc.wmii.rc Thu Nov 12 09:57:06 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'

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-rc_sh_wmii,v 1.1 2015/11/12 09:59:41 sthen Exp $
--- rc/sh.wmii.orig Thu Nov 12 09:57:17 2015
+++ rc/sh.wmii Thu Nov 12 09:57:33 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'

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-rc_wmiirc_sh,v 1.3 2015/11/12 09:59:41 sthen Exp $
--- rc/wmiirc.sh.orig Thu Nov 12 09:57:42 2015
+++ rc/wmiirc.sh Thu Nov 12 09:58:10 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