Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=2d8d11bb792f6d1ce6427f06394d51ae2fb1e0a9
commit 2d8d11bb792f6d1ce6427f06394d51ae2fb1e0a9 Author: James Buren <[EMAIL PROTECTED]> Date: Wed Dec 3 08:04:01 2008 -0600 eeepc-frugalware-1.0-1-i686 * new package * currently nobuild until it can be fully tested diff --git a/source/apps-extra/eeepc-frugalware/FrugalBuild b/source/apps-extra/eeepc-frugalware/FrugalBuild new file mode 100644 index 0000000..a234098 --- /dev/null +++ b/source/apps-extra/eeepc-frugalware/FrugalBuild @@ -0,0 +1,26 @@ +# Compiling Time: 0.01 SBU +# Maintainer: James Buren <[EMAIL PROTECTED]> + +pkgname=eeepc-frugalware +pkgver=1.0 +pkgrel=1 +pkgdesc="A collection of things to help integrate Eee PC with frugalware." +url="http://frugalware.org/" +rodepends=('acpid' 'alsa-utils' 'xset') +groups=('apps-extra') +archs=('i686' 'x86_64') +up2date="$pkgver" +# disable building until i can extend this further +options=('nobuild') +backup=('etc/sysconfig/eeepc') +source=(eeepc hotkey hotkey.sh) +sha1sums=('2f9aca4dfae367f490268435a9b6561d247df933' \ + '688223b44c23716c4eefe88f7f53a8aa61ec80bf' \ + '437a3f504c76c9420945be786ed9b2024439840a') + +build() +{ + Ffile /etc/sysconfig/eeepc + Ffile /etc/acpi/events/hotkey + Fexe /etc/acpi/hotkey.sh +} \ No newline at end of file diff --git a/source/apps-extra/eeepc-frugalware/eeepc b/source/apps-extra/eeepc-frugalware/eeepc new file mode 100644 index 0000000..b36655c --- /dev/null +++ b/source/apps-extra/eeepc-frugalware/eeepc @@ -0,0 +1,36 @@ +# +# This file is used to modify the default actions +# of the acpi events. Please change it if it is not +# to your liking. +# + +# This is the name of the ALSA device the events will +# use. + +VOLUME_NAME="Master" + +export VOLUME_NAME + +# This is the percentage increment for raising or +# lowering the volume. + +VOLUME_INCREMENT="10" + +export VOLUME_INCREMENT + +# This is the command used to turn the screen in +# xorg off. xset utility is the default, but +# xdg-screensaver may be a viable alternative if +# you want the acpi event to trigger your screensaver +# instead. + +SCREEN_OFF="env DISPLAY=\":0\" xset dpms force off" + +export SCREEN_OFF + +# Set this to the command you want to use to run your +# "task manager","process viewer", or whatever you call it. + +TASK_MANAGER="su -l nobody -c \"env DISPLAY=\":0\"\" xterm -e \"top\"" + +export TASK_MANAGER \ No newline at end of file diff --git a/source/apps-extra/eeepc-frugalware/hotkey b/source/apps-extra/eeepc-frugalware/hotkey new file mode 100644 index 0000000..191a323 --- /dev/null +++ b/source/apps-extra/eeepc-frugalware/hotkey @@ -0,0 +1,2 @@ +event=hotkey ATKD .* +action=/etc/acpi/hotkey.sh %e diff --git a/source/apps-extra/eeepc-frugalware/hotkey.sh b/source/apps-extra/eeepc-frugalware/hotkey.sh new file mode 100755 index 0000000..51c9843 --- /dev/null +++ b/source/apps-extra/eeepc-frugalware/hotkey.sh @@ -0,0 +1,57 @@ +#!/bin/sh + +[ -f "/etc/sysconfig/eeepc" ] && source "/etc/sysconfig/eeepc" + +case $3 in + #Fn+F1 + 00000080) + #echo "a" >> /var/log/messages + ;; + # Toggle Wireless + 00000010) + echo "1" > /sys/devices/platform/eeepc/wlan + ;; + 00000011) + echo "0" > "/sys/devices/platform/eeepc/wlan" + ;; + #Fn+F3 + 00000030) + #echo "d" >> /var/log/messages + ;; + 00000031) + #echo "e" >> /var/log/messages + ;; + 00000032) + #echo "f" >> /var/log/messages + ;; + #Fn+F6 + 00000012) + #${TASK_MANAGER} + ;; + # Toggle Mute + 00000013) + amixer -q set "${VOLUME_NAME}" toggle + ;; + # Lower Volume + 00000014) + amixer -q set "${VOLUME_NAME}" "${VOLUME_INCREMENT}%-" + ;; + # Raise Volume + 00000015) + amixer -q set "${VOLUME_NAME}" "${VOLUME_INCREMENT}%+" + ;; + # Turn off backlight + 00000016) + ${SCREEN_OFF} + ;; + #Fn+F3 + 0000002x) + #echo "k" >> /var/log/messages + ;; + #Fn+F4 + 0000002x) + #echo "k" >> /var/log/messages + ;; +esac + +#echo $3 >> /var/log/messages \ No newline at end of file _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
