diff options
Diffstat (limited to 'abs/core-testing/LinHES-system')
-rw-r--r-- | abs/core-testing/LinHES-system/LinHES.install | 5 | ||||
-rw-r--r-- | abs/core-testing/LinHES-system/PKGBUILD | 5 | ||||
-rwxr-xr-x | abs/core-testing/LinHES-system/tvterm.sh | 25 |
3 files changed, 33 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-system/LinHES.install b/abs/core-testing/LinHES-system/LinHES.install index 9f6a1c1..0f6689e 100644 --- a/abs/core-testing/LinHES-system/LinHES.install +++ b/abs/core-testing/LinHES-system/LinHES.install @@ -48,7 +48,12 @@ grep -q "pam_limits.so" /etc/pam.d/su fi +# Update mythtv's fluxbox keys files to use the tvterm.sh script to get +# an xterm. Then signal fluxbox to re-read the keys file. +sed -i.orig 's/^Mod1 x :.*xterm.*$/Mod1 x :ExecCommand tvterm.sh/g' \ + ~mythtv/.fluxbox/keys +pkill -HUP fluxbox } diff --git a/abs/core-testing/LinHES-system/PKGBUILD b/abs/core-testing/LinHES-system/PKGBUILD index 316bcba..017984f 100644 --- a/abs/core-testing/LinHES-system/PKGBUILD +++ b/abs/core-testing/LinHES-system/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-system pkgver=1.1 -pkgrel=29 +pkgrel=30 arch=('i686') MVDIR=$startdir/pkg/usr/LH BINDIR=$startdir/pkg/usr/bin @@ -8,7 +8,7 @@ install=LinHES.install pkgdesc="scripts and things related to having a automated system" depends=(linhes-sounds xdotool) backup=(etc/modprobe.d/alsa-base) -binfiles="LinHES-start optimize_mythdb.py myth_mtc.py myth_mtc.sh LinHES-run firstboot.sh load-modules-mythvantage.sh unclutter-toggle.sh myth_mtc.lr smolt.cron mythfrontend-start" +binfiles="LinHES-start optimize_mythdb.py myth_mtc.py myth_mtc.sh LinHES-run firstboot.sh load-modules-mythvantage.sh unclutter-toggle.sh tvterm.sh myth_mtc.lr smolt.cron mythfrontend-start" source=(LinHES-session LinHES-profile.sh $binfiles alsa-base) @@ -47,6 +47,7 @@ md5sums=('19934a456d0e112298b8aac3279f9a16' '18a884a73344ff6eb74f63b49745e0f5' 'dc3eef2a624754e16805d72bbe488b67' 'dc0be354ce77ba2b89868fc29b942c43' + '542e670e78d117657f93141e9689f54d' 'f1870a9522c79e6b248fcbf81dec3280' 'abe887472a170bd1a8e6da6a7b7e93e4' '752488eb8bfb672ce0e4c924f7faf3d1' diff --git a/abs/core-testing/LinHES-system/tvterm.sh b/abs/core-testing/LinHES-system/tvterm.sh new file mode 100755 index 0000000..dfd116b --- /dev/null +++ b/abs/core-testing/LinHES-system/tvterm.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Create a terminal with a font that mostly fills the width of the screen. + +width=$(echo $(xdpyinfo | grep dimensions:) | cut -d' ' -f2 | cut -dx -f1) + +if [ -z "$width" ] ; then + width=1024 +fi + +if [ $width -ge 1920 ] ; then + fontsize=24 +elif [ $width -ge 1440 ] ; then + fontsize=21 +elif [ $width -ge 1280 ] ; then + fontsize=18 +elif [ $width -ge 1024 ] ; then + fontsize=14 +elif [ $width -ge 800 ] ; then + fontsize=11 +elif [ $width -ge 640 ] ; then + fontsize=8 +fi + +xterm -fa 'DejaVu Sans Mono' -fs $fontsize |