diff options
-rw-r--r-- | packages/fluxbox/fluxbox/fluxbox-gpe-session | 12 | ||||
-rw-r--r-- | packages/fluxbox/fluxbox/gpe-logout.fluxbox | 17 | ||||
-rw-r--r-- | packages/fluxbox/fluxbox/keylaunchrc.fluxbox | 28 | ||||
-rw-r--r-- | packages/fluxbox/fluxbox/keys.akita | 7 | ||||
-rw-r--r-- | packages/fluxbox/fluxbox/keys.default | 0 | ||||
-rw-r--r-- | packages/fluxbox/fluxbox_0.99+1.0rc.bb | 18 |
6 files changed, 78 insertions, 4 deletions
diff --git a/packages/fluxbox/fluxbox/fluxbox-gpe-session b/packages/fluxbox/fluxbox/fluxbox-gpe-session index f6e03ede7e..099c83e4f2 100644 --- a/packages/fluxbox/fluxbox/fluxbox-gpe-session +++ b/packages/fluxbox/fluxbox/fluxbox-gpe-session @@ -9,9 +9,11 @@ MACHINE="`cat /proc/cpuinfo | sed -n "/^Hardware/s/.*\:\ \(.*\)/\1/p"`" case $MACHINE in *Akita | *Spitz | *Borzoi | *Terrier) - APPS="apps.gpe.akita";; + APPS="apps.gpe.akita" + KEYS="keys.akita";; *) - APPS="apps.gpe.default";; + APPS="apps.gpe.default" + KEYS="keys.default";; esac if test -e /usr/share/fluxbox/$APPS @@ -20,6 +22,12 @@ then test -e $HOME/.fluxbox/apps || cp /usr/share/fluxbox/$APPS $HOME/.fluxbox/apps fi +if test -e /usr/share/fluxbox/$KEYS +then + mkdir -p $HOME/.fluxbox + test -e $HOME/.fluxbox/KEYS || cp /usr/share/fluxbox/$KEYS $HOME/.fluxbox/keys +fi + if [ -e $HOME/.fluxbox/session ] then diff --git a/packages/fluxbox/fluxbox/gpe-logout.fluxbox b/packages/fluxbox/fluxbox/gpe-logout.fluxbox new file mode 100644 index 0000000000..29a6ab6ab3 --- /dev/null +++ b/packages/fluxbox/fluxbox/gpe-logout.fluxbox @@ -0,0 +1,17 @@ +#!/bin/sh + +gpe-question --icon /usr/share/pixmaps/gpe-logout.png --question "<span weight='bold' size='larger'>Are you sure you want to log out?</span> + +Unsaved data from applications will be lost." --buttons !gtk-cancel "ok:Log out" + +# check for button number returned by gpe-question: +if [ $? -eq 1 ]; then + echo "Logout."; + killall fluxbox +fi +# hack to run on simpad too + killall metacity; +else + echo "Logout cancelled."; +fi + diff --git a/packages/fluxbox/fluxbox/keylaunchrc.fluxbox b/packages/fluxbox/fluxbox/keylaunchrc.fluxbox new file mode 100644 index 0000000000..921fa9fb1f --- /dev/null +++ b/packages/fluxbox/fluxbox/keylaunchrc.fluxbox @@ -0,0 +1,28 @@ +key=....F9:-:gpe-calendar +key=....F10:-:gpe-contacts +key=....F13:-:sylpheed +#key=....F12:-:~matchbox-remote -next +#key=...*F12:-:~matchbox-remote -desktop +#key=....F11:-:~matchbox-remote -menu +#key=...*1:-:~zoom out +#key=...*2:-:~zoom in +key=...*3:-:~display-brightness.sh down +key=...*4:-:~display-brightness.sh up + +# LCD Softkeys +# Please note that the space _between_ two softkeys can be used, too ;) +key=....F20:-:~matchbox-remote -next +key=....F21:-:~matchbox-remote -desktop +key=....F22:-:~matchbox-remote -prev +key=....F23:-:sylpheed +#key=....F24:-: +key=....F25:-:gpe-contacts +#key=....F26:-: +key=....F27:-:gpe-calendar +#key=....F28:-: +key=....F29:-:gpe-mini-browser +#key=....F30:-: + +# VT changing +key=...*Left:-:~chvt 1 +key=...*Right:-:~chvt 3 diff --git a/packages/fluxbox/fluxbox/keys.akita b/packages/fluxbox/fluxbox/keys.akita new file mode 100644 index 0000000000..ec84632597 --- /dev/null +++ b/packages/fluxbox/fluxbox/keys.akita @@ -0,0 +1,7 @@ +Mod1 Tab :NextWindow +Mod1 Shift Tab :PrevWindow +F12 :NextWindow 2 +F11 :ExecCommand matchbox-remote -menu +Mod4 F11 :RootMenu +Mod4 F12 :Minimize +Mod1 r :Reconfigure diff --git a/packages/fluxbox/fluxbox/keys.default b/packages/fluxbox/fluxbox/keys.default new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/fluxbox/fluxbox/keys.default diff --git a/packages/fluxbox/fluxbox_0.99+1.0rc.bb b/packages/fluxbox/fluxbox_0.99+1.0rc.bb index 5cb05d96d5..0b03ffa9ee 100644 --- a/packages/fluxbox/fluxbox_0.99+1.0rc.bb +++ b/packages/fluxbox/fluxbox_0.99+1.0rc.bb @@ -10,7 +10,7 @@ MAINTAINER = "Matthias 'CoreDump' Hentges <oe@hentges.net>" HOMEPAGE = "http://fluxbox.sourceforge.net" LICENSE = "MIT" REALPV = "1.0rc" -PR = "r2" +PR = "r3" ###################################################################################### @@ -23,7 +23,10 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/fluxbox/fluxbox-${REALPV}.tar.gz \ file://apps.gpe.* \ file://style.gpe-default \ file://fluxbox-gpe-session \ - file://fluxbox-gpe.session" + file://fluxbox-gpe.session \ + file://keys.* \ + file://keylaunchrc.fluxbox \ + file://gpe-logout.fluxbox" ###################################################################################### @@ -41,6 +44,9 @@ FILES_${PN} = "/usr/bin \ /usr/share/fluxbox/menu " FILES_${PN}-gpe = "/usr/share/fluxbox/apps.gpe* \ + /usr/share/fluxbox/keys.* \ + /usr/bin/gpe-logout.fluxbox \ + /etc/keylaunchrc.fluxbox \ /usr/share/fluxbox/styles/gpe-default \ /usr/share/fluxbox/session \ /usr/bin/fluxbox-gpe-session" @@ -64,19 +70,27 @@ do_install_append() { install -d ${D}/usr/bin install -d ${D}/usr/share/fluxbox install -d ${D}/usr/share/fluxbox/styles + install -d ${D}/etc install -m 0644 ${WORKDIR}/apps.gpe.* ${D}/usr/share/fluxbox + install -m 0644 ${WORKDIR}/keys.* ${D}/usr/share/fluxbox install -m 0755 ${WORKDIR}/fluxbox-gpe.session ${D}/usr/share/fluxbox/session install -m 0644 ${WORKDIR}/style.gpe-default ${D}/usr/share/fluxbox/styles/gpe-default install -m 0755 ${WORKDIR}/fluxbox-gpe-session ${D}/usr/bin + install -m 0755 ${WORKDIR}/gpe-logout.fluxbox ${D}/usr/bin + install -m 0644 ${WORKDIR}/keylaunchrc.fluxbox ${D}/etc } ###################################################################################### pkg_postinst_${PN}-gpe() { update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/fluxbox-gpe-session 15 + update-alternatives --install /usr/bin/gpe-logout gpe-logout /usr/bin/gpe-logout.fluxbox 15 + update-alternatives --install /etc/keylaunchrc keylaunchrc /etc/keylaunchrc.fluxbox 15 } pkg_postrm_${PN}-gpe() { update-alternatives --remove x-window-manager /usr/bin/fluxbox-gpe-session + update-alternatives --remove gpe-logout /usr/bin/gpe-logout.fluxbox + update-alternatives --remove keylaunchrc /etc/keylaunchrc.fluxbox } |