summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/display-brightness/.mtn2git_empty0
-rw-r--r--packages/display-brightness/display-brightness.sh41
-rw-r--r--packages/display-brightness/display-brightness_1.0.0.bb14
-rw-r--r--packages/keylaunch/files/akita/.mtn2git_empty0
-rw-r--r--packages/keylaunch/files/akita/keylaunchrc6
-rw-r--r--packages/keylaunch/files/borzoi/.mtn2git_empty0
-rw-r--r--packages/keylaunch/files/borzoi/keylaunchrc6
-rw-r--r--packages/keylaunch/files/c7x0/.mtn2git_empty0
-rw-r--r--packages/keylaunch/files/c7x0/keylaunchrc6
-rw-r--r--packages/keylaunch/files/corgie/.mtn2git_empty0
-rw-r--r--packages/keylaunch/files/corgie/keylaunchrc6
-rw-r--r--packages/keylaunch/files/husky/.mtn2git_empty0
-rw-r--r--packages/keylaunch/files/husky/keylaunchrc6
-rw-r--r--packages/keylaunch/files/keylaunchrc16
-rw-r--r--packages/keylaunch/files/makefile-fix.patch11
-rw-r--r--packages/keylaunch/files/shepherd/.mtn2git_empty0
-rw-r--r--packages/keylaunch/files/shepherd/keylaunchrc6
-rw-r--r--packages/keylaunch/files/spitz/.mtn2git_empty0
-rw-r--r--packages/keylaunch/files/spitz/keylaunchrc6
-rw-r--r--packages/keylaunch/keylaunch_2.0.7.bb21
-rw-r--r--packages/keylaunch/keylaunch_2.0.8.bb20
21 files changed, 105 insertions, 60 deletions
diff --git a/packages/display-brightness/.mtn2git_empty b/packages/display-brightness/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/display-brightness/.mtn2git_empty
diff --git a/packages/display-brightness/display-brightness.sh b/packages/display-brightness/display-brightness.sh
new file mode 100644
index 0000000000..8141866858
--- /dev/null
+++ b/packages/display-brightness/display-brightness.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+# display-brightness.sh
+# simple script to set display-brightness for zaurus clamshell
+# author: patrick steiner <patrick.steiner@a1.net>
+# version: 1.00 | 22.02.2005 23:20
+
+
+STEP=5
+MAX_BRIGHTNESS=`cat /sys/class/backlight/*/max_brightness`
+ACTUAL_BRIGHTNESS=`cat /sys/class/backlight/*/actual_brightness`
+BRIGHTNESS_FILE="/sys/class/backlight/*/brightness"
+
+if [ ! -n "$1" ]; then
+ exit 0
+fi
+
+if [ "$1" = "up" ]; then
+ if [ $ACTUAL_BRIGHTNESS -eq $MAX_BRIGHTNESS ]; then
+ exit 0
+ else
+ let CURRENT_BRIGHTNESS=$ACTUAL_BRIGHTNESS+$STEP
+ echo $CURRENT_BRIGHTNESS >> $BRIGHTNESS_FILE
+ exit 0
+ fi
+fi
+
+if [ "$1" = "down" ]; then
+ if [ $ACTUAL_BRIGHTNESS -eq 0 ]; then
+ exit 0
+ elif [ $ACTUAL_BRIGHTNESS -lt $STEP ]; then
+ STEP=1
+ let CURRENT_BRIGHTNESS=$ACTUAL_BRIGHTNESS-$STEP
+ echo $CURRENT_BRIGHTNESS >> $BRIGHTNESS_FILE
+ exit 0
+ else
+ let CURRENT_BRIGHTNESS=$ACTUAL_BRIGHTNESS-$STEP
+ echo $CURRENT_BRIGHTNESS >> $BRIGHTNESS_FILE
+ exit 0
+ fi
+fi
diff --git a/packages/display-brightness/display-brightness_1.0.0.bb b/packages/display-brightness/display-brightness_1.0.0.bb
new file mode 100644
index 0000000000..e275b3f8bc
--- /dev/null
+++ b/packages/display-brightness/display-brightness_1.0.0.bb
@@ -0,0 +1,14 @@
+DESCRIPTION = "display brightness utility"
+AUTHOR = "Patrick Steiner <patrick.steiner@a1.net>"
+MAINTAINER = "Patrick Steiner <patrick.steiner@a1.net>"
+DEPENDS = ""
+PRIORITY = "optional"
+PR = "r0"
+LICENSE = "GPLv2"
+
+SRC_URI = "file://display-brightness.sh"
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 ${WORKDIR}/display-brightness.sh ${D}${bindir}/
+}
diff --git a/packages/keylaunch/files/akita/.mtn2git_empty b/packages/keylaunch/files/akita/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/keylaunch/files/akita/.mtn2git_empty
diff --git a/packages/keylaunch/files/akita/keylaunchrc b/packages/keylaunch/files/akita/keylaunchrc
new file mode 100644
index 0000000000..e0b729a508
--- /dev/null
+++ b/packages/keylaunch/files/akita/keylaunchrc
@@ -0,0 +1,6 @@
+key=....F9:-:gpe-calendar
+key=....F10:-:gpe-contacts
+key=....F13:-:sylpheed
+key=....F12:-:gpe-mini-browser
+key=...*F18:-:display-brightness.sh down
+key=...*F19:-:display-brightness.sh up
diff --git a/packages/keylaunch/files/borzoi/.mtn2git_empty b/packages/keylaunch/files/borzoi/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/keylaunch/files/borzoi/.mtn2git_empty
diff --git a/packages/keylaunch/files/borzoi/keylaunchrc b/packages/keylaunch/files/borzoi/keylaunchrc
new file mode 100644
index 0000000000..e0b729a508
--- /dev/null
+++ b/packages/keylaunch/files/borzoi/keylaunchrc
@@ -0,0 +1,6 @@
+key=....F9:-:gpe-calendar
+key=....F10:-:gpe-contacts
+key=....F13:-:sylpheed
+key=....F12:-:gpe-mini-browser
+key=...*F18:-:display-brightness.sh down
+key=...*F19:-:display-brightness.sh up
diff --git a/packages/keylaunch/files/c7x0/.mtn2git_empty b/packages/keylaunch/files/c7x0/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/keylaunch/files/c7x0/.mtn2git_empty
diff --git a/packages/keylaunch/files/c7x0/keylaunchrc b/packages/keylaunch/files/c7x0/keylaunchrc
new file mode 100644
index 0000000000..e0b729a508
--- /dev/null
+++ b/packages/keylaunch/files/c7x0/keylaunchrc
@@ -0,0 +1,6 @@
+key=....F9:-:gpe-calendar
+key=....F10:-:gpe-contacts
+key=....F13:-:sylpheed
+key=....F12:-:gpe-mini-browser
+key=...*F18:-:display-brightness.sh down
+key=...*F19:-:display-brightness.sh up
diff --git a/packages/keylaunch/files/corgie/.mtn2git_empty b/packages/keylaunch/files/corgie/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/keylaunch/files/corgie/.mtn2git_empty
diff --git a/packages/keylaunch/files/corgie/keylaunchrc b/packages/keylaunch/files/corgie/keylaunchrc
new file mode 100644
index 0000000000..e0b729a508
--- /dev/null
+++ b/packages/keylaunch/files/corgie/keylaunchrc
@@ -0,0 +1,6 @@
+key=....F9:-:gpe-calendar
+key=....F10:-:gpe-contacts
+key=....F13:-:sylpheed
+key=....F12:-:gpe-mini-browser
+key=...*F18:-:display-brightness.sh down
+key=...*F19:-:display-brightness.sh up
diff --git a/packages/keylaunch/files/husky/.mtn2git_empty b/packages/keylaunch/files/husky/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/keylaunch/files/husky/.mtn2git_empty
diff --git a/packages/keylaunch/files/husky/keylaunchrc b/packages/keylaunch/files/husky/keylaunchrc
new file mode 100644
index 0000000000..e0b729a508
--- /dev/null
+++ b/packages/keylaunch/files/husky/keylaunchrc
@@ -0,0 +1,6 @@
+key=....F9:-:gpe-calendar
+key=....F10:-:gpe-contacts
+key=....F13:-:sylpheed
+key=....F12:-:gpe-mini-browser
+key=...*F18:-:display-brightness.sh down
+key=...*F19:-:display-brightness.sh up
diff --git a/packages/keylaunch/files/keylaunchrc b/packages/keylaunch/files/keylaunchrc
index ea81a99f18..0296db9dad 100644
--- a/packages/keylaunch/files/keylaunchrc
+++ b/packages/keylaunch/files/keylaunchrc
@@ -1,8 +1,8 @@
-key=???Pressed XF86AudioRecord:Record Memo:gpe-soundbite record --autogenerate-filename $HOME_VOLATILE
-key=???XF86Calendar:Calendar:gpe-calendar
-key=???telephone:Contacts:gpe-contacts
-key=???XF86Mail:Running programs:gpe-taskmanager
-key=???XF86Start:matchbox-remote -desktop
-key=???XF86PowerDown:apm --suspend
-key=???Held XF86PowerDown:bl toggle
-key=???Combine XF86Calendar XF86Start:gpe-keylock
+key=????Pressed XF86AudioRecord:gpe-soundbite record --autogenerate-filename $HOME_VOLATILE
+key=????Pressed XF86Calendar:gpe-calendar
+key=????Pressed telephone:gpe-contacts
+key=????Pressed XF86Mail:gpe-taskmanager
+key=????Pressed XF86Start:~matchbox-remote -desktop
+key=????Pressed XF86PowerDown:~apm --suspend
+key=????Held XF86PowerDown:~bl toggle
+key=????Combine XF86Calendar XF86Start:gpe-keylock
diff --git a/packages/keylaunch/files/makefile-fix.patch b/packages/keylaunch/files/makefile-fix.patch
deleted file mode 100644
index 52260bf4de..0000000000
--- a/packages/keylaunch/files/makefile-fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- keylaunch-2.0.7/Makefile.orig 2006-02-02 17:44:53.000000000 +0100
-+++ keylaunch-2.0.7/Makefile 2006-02-02 17:44:55.000000000 +0100
-@@ -28,7 +28,7 @@
- all: $(PROG)
-
- $(PROG): $(OBJS)
-- $(CC) $(OBJS) $(LIBS) -o $@
-+ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
-
- install-program: all
- install -sD $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG)
diff --git a/packages/keylaunch/files/shepherd/.mtn2git_empty b/packages/keylaunch/files/shepherd/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/keylaunch/files/shepherd/.mtn2git_empty
diff --git a/packages/keylaunch/files/shepherd/keylaunchrc b/packages/keylaunch/files/shepherd/keylaunchrc
new file mode 100644
index 0000000000..e0b729a508
--- /dev/null
+++ b/packages/keylaunch/files/shepherd/keylaunchrc
@@ -0,0 +1,6 @@
+key=....F9:-:gpe-calendar
+key=....F10:-:gpe-contacts
+key=....F13:-:sylpheed
+key=....F12:-:gpe-mini-browser
+key=...*F18:-:display-brightness.sh down
+key=...*F19:-:display-brightness.sh up
diff --git a/packages/keylaunch/files/spitz/.mtn2git_empty b/packages/keylaunch/files/spitz/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/keylaunch/files/spitz/.mtn2git_empty
diff --git a/packages/keylaunch/files/spitz/keylaunchrc b/packages/keylaunch/files/spitz/keylaunchrc
new file mode 100644
index 0000000000..e0b729a508
--- /dev/null
+++ b/packages/keylaunch/files/spitz/keylaunchrc
@@ -0,0 +1,6 @@
+key=....F9:-:gpe-calendar
+key=....F10:-:gpe-contacts
+key=....F13:-:sylpheed
+key=....F12:-:gpe-mini-browser
+key=...*F18:-:display-brightness.sh down
+key=...*F19:-:display-brightness.sh up
diff --git a/packages/keylaunch/keylaunch_2.0.7.bb b/packages/keylaunch/keylaunch_2.0.7.bb
deleted file mode 100644
index 42921dfcdc..0000000000
--- a/packages/keylaunch/keylaunch_2.0.7.bb
+++ /dev/null
@@ -1,21 +0,0 @@
-inherit gpe
-
-DEPENDS = "virtual/xserver libxtst libxau libxpm"
-SECTION = "gpe"
-LICENSE = "GPL"
-DESCRIPTION = "A small utility for binding commands to a hot key.\
- Keylaunch is a minimal utility for associating commands with hot keys. This\
- GPE version is intended for use with the special keys found on most handheld\
- computers. You can connect each key to a program of your choice; if the\
- program is already running, keylaunch can bring its window to the front\
- rather than just running another copy."
-PR = "r1"
-
-SRC_URI += " file://keylaunchrc \
- file://makefile-fix.patch;patch=1"
-
-do_install_prepend () {
- install ${WORKDIR}/keylaunchrc ${S}/keylaunchrc
-}
-
-export CVSBUILD="no"
diff --git a/packages/keylaunch/keylaunch_2.0.8.bb b/packages/keylaunch/keylaunch_2.0.8.bb
deleted file mode 100644
index b509e450ee..0000000000
--- a/packages/keylaunch/keylaunch_2.0.8.bb
+++ /dev/null
@@ -1,20 +0,0 @@
-inherit gpe
-
-DEPENDS = "virtual/xserver libxtst libxau libxpm libgpelaunch"
-SECTION = "gpe"
-LICENSE = "GPL"
-DESCRIPTION = "A small utility for binding commands to a hot key.\
- Keylaunch is a minimal utility for associating commands with hot keys. This\
- GPE version is intended for use with the special keys found on most handheld\
- computers. You can connect each key to a program of your choice; if the\
- program is already running, keylaunch can bring its window to the front\
- rather than just running another copy."
-PR = "r0"
-
-SRC_URI += " file://keylaunchrc"
-
-do_install_prepend () {
- install ${WORKDIR}/keylaunchrc ${S}/keylaunchrc
-}
-
-export CVSBUILD="no"