Skip to content

Reincarnation of rodentbane - awesomeWM mouse-less navigation

Notifications You must be signed in to change notification settings

osleg/Re-rodentbane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages