diff --git a/haiku-apps/bamkeys/bamkeys-1.0.0.recipe b/haiku-apps/bamkeys/bamkeys-1.0.0.recipe new file mode 100644 index 000000000..ca7f2d57a --- /dev/null +++ b/haiku-apps/bamkeys/bamkeys-1.0.0.recipe @@ -0,0 +1,73 @@ +SUMMARY="Spatially map your display to navigate windows with the keyboard" +DESCRIPTION="BamKeys lets you break your display up into \ +a grid of zones. Each zone is assigned a keyboard combination. +Whenever you press that keyboard combination, BamKeys will focus \ +the front-most window that intersects with that zone, regardless \ +of the program it belongs to! Pressing the same zone's keyboard \ +combination repeatedly will focus widows further back. If you have \ +three windows that intersect a zone, pressing that zones hotkey three \ +times will cycle through all those windows. + +Configuring - +Open up the BamKeys Preferences, you'll see a little display with a 3x3 \ +grid, a check box, two pop up menus, and a bunch of key cap looking \ +things. +The default key mappings for this 3x3 grid are: the left command (or alt) \ +key + numeric keypad 1 through 9 (with NumLock ON). These settings can be \ +changed by: + +• Using the mouse: +1. Click the zone on the little display you want to change. It will darken. +2. Press (and release) the key combination you want to use. +3. Click the zone again to de-select it. + +• Using the keyboard: +1. Tab until the screen is selected. +2. Press the space-bar. A zone will darken in the grid. +3. You can use the arrow keys to change the selected zone. +4. Pressing (and releasing) a keyboard shortcut will set the hotkey for \ +that zone. +5. Pressing space bar will unselect all zones." +HOMEPAGE="https://github.com/bvarner/bamkeys" +COPYRIGHT="2016 Bryan Varner" +LICENSE="MIT" +REVISION="1" +srcGitRev="0f2d06d4737fd4c244c0f7f70bef3b51fa93f9ba" +SOURCE_URI="https://github.com/bvarner/bamkeys/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="2e29d6212e5b5afc35787f42c06ce16aa94496584ddb64138ea334014c3731d1" +SOURCE_DIR="bamkeys-$srcGitRev" + +ARCHITECTURES="x86_gcc2 !x86 !x86_64" + +PROVIDES=" + bamkeys = $portVersion + app:BamKeys = $portVersion + add_on:BamKeys_Filter = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " + +BUILD_PREREQUIRES=" + makefile_engine + cmd:g++ + cmd:make + " + +BUILD() +{ + make OBJ_DIR=objects +} + +INSTALL() +{ + mkdir -p $preferencesDir + mkdir -p $addOnsDir/input_server/filters + cp input_filter/objects/BamKeys_Filter $addOnsDir/input_server/filters/ + cp preflet/objects/BamKeys $preferencesDir/BamKeys + addPreferencesDeskbarSymlink $preferencesDir/BamKeys +}