diff options
author | Michael Lauer <mickey@vanille-media.de> | 2007-08-08 12:37:11 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2007-08-08 12:37:11 +0000 |
commit | 77916aa42c69fa2a78670515c826cf18a429fc06 (patch) | |
tree | 0399ebacfb1356155a4aaccaa39d6d768fb1023e | |
parent | 75d253fe17fa87ebd4ad94ec18df8e1c1d9262d2 (diff) |
openmoko-terminal2: supply sane font defaults to mrxvt
-rw-r--r-- | packages/openmoko2/openmoko-terminal2_1.0.0.bb | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/packages/openmoko2/openmoko-terminal2_1.0.0.bb b/packages/openmoko2/openmoko-terminal2_1.0.0.bb index 5b21cc4e57..8d9a5245ca 100644 --- a/packages/openmoko2/openmoko-terminal2_1.0.0.bb +++ b/packages/openmoko2/openmoko-terminal2_1.0.0.bb @@ -1,7 +1,7 @@ DESCRIPTION = "The OpenMoko Command Line Console" SECTION = "openmoko/applications" RDEPENDS += "mrxvt" -PR = "r0" +PR = "r1" inherit openmoko2 @@ -14,3 +14,29 @@ do_install() { install -m 0644 ${WORKDIR}/openmoko-terminal.png ${D}${datadir}/pixmaps/ install -m 0644 ${WORKDIR}/openmoko-terminal.desktop ${D}${datadir}/applications/ } + +pkg_postinst_${PN}() { + if [ "x$D" != "x" ]; then + exit 1 + fi + echo "adding font defaults to system-wide mrxvtrc..." + cat <<EOF >> ${sysconfdir}/mrxvt/mrxvtrc +# +# ---------------------------------- FONTS ----------------------------------- # +# +Mrxvt.xft: 1 +Mrxvt.xftFont: Bitstream Vera Sans Mono +Mrxvt.xftSize: 8 +Mrxvt.xftAntialias: 1 + +# Don't load a multi-char font. This will reduce the line space if your multi +# char font has different dimensions than the regular font. You might need to +# comment it out if you want to use XIM and non-english fonts. +Mrxvt.xftNomFont: 1 + +# Font to use for tab bar / menus. This need not be mono-spaced ;). +Mrxvt.xftPFont: Bitstream Vera Sans +Mrxvt.xftPSize: 8 +EOF + +} |