undoZen / Re-rodentbane

Reincarnation of rodentbane - awesomeWM mouse-less navigation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Re-rodentbane

Reincarnation of rodentbane - awesomeWM mouse-less navigation

Installation

copy rerodentbane.lua into your $XDG_HOME/awesome/ directory and add local rodentbane = require("rerodentbane") to your rc.lua file. Add a keybind to start the rodentbane to globalkeys eg:

awful.key({modkey, }, "q", rerodentbane)

Restart awesome and join the fun!

Usage

Invoking the rerodenbane will draw a grid of 9 boxes Each box have one button assigned

+-+-+-+
|a|k|f|
+-+-+-+                                         
|h|;|l|
+-+-+-+
|s|j|d|
+-+-+-+

Pressing one the key will redraw the grid smaller in the area selected. In average it takes as much as 3 keypresses to get to the place required Default keybinds for rodentbane:

Resize grid:
  +-+-+-+
  |a|k|f|
  +-+-+-+                                         
  |h|;|l|
  +-+-+-+
  |s|j|d|
  +-+-+-+
Move grid:
  SHIFT + h, j, k, l
Undo last move/resize:
  u
Left click:
  Space
Right click:
  Alt+Space
Middle click:
  Shift+Space
Double click:
  Control+Space
Only move mouse:
  Return

You can modify the keys by calling rerodentbane.bind({modkeys}, key, function). Note that this will disable default bindings.

rerodentbane.bind({"Control"}, "h", function()
    rerodentbane.warp() -- Place the cursor in the center of the active area
    rerodentbane.click(1) -- Click button 1 (left)
    rerodentbane.stop() -- Leave rerodentbane mode
end)

Available functions are:

  • click_press(button)
  • click_release(button)
  • click(button)
  • warp()
  • stop()
  • cut()
  • undo()

About

Reincarnation of rodentbane - awesomeWM mouse-less navigation


Languages

Language:Lua 100.0%