Selector » History » Version 1
Anonymous, 02/03/2011 02:29 PM
1 | 1 | h1. Selector\015\012\015\012{{>toc}}\015\012\015\012h2. Overview\015\012\015\012Client selector that works like the subscription selector in "Google Reader":http://www.google.com/reader\015\012\015\012{{lightbox(contrib/selector, Selector)}}\015\012\015\012h2. Colors\015\012\015\012|_. Color triplet |_. Meaning |\015\012| Focus | Currently selected client |\015\012| Occupied | Visible clients on current view |\015\012| View | Currently not visible clients |\015\012\015\012h2. Keys\015\012\015\012|_. Keys |_. Action |\015\012| Left, Up | Move to left |\015\012| Right, Down | Move to right |\015\012| Tab | Cycle through windows/matches |\015\012| Escape | Leave input mode/exit selector |\015\012| Return | Focus currently selected and hide/exit selector |\015\012| Any capital/digit | Select client prefixed with capital letter/digit |\015\012| Any text | Select client with matching instance name |\015\012\015\012h2. Usage\015\012\015\012Either call it like @ruby selector.rb@ from commandline or add following loader and [[subtle:grabs|grab]] to your [[subtle:subtle]] config.\015\012\015\012<pre>{{hide}}<code class="ruby">\015\012begin\015\012 require "#{ENV["HOME"]}/path/to/selector.rb"\015\012rescue LoadError => error\015\012 puts error\015\012end\015\012\015\012grab "W-x" do\015\012 Subtle::Contrib::Selector.run\015\012end\015\012</code></pre>\015\012\015\012h2. Configuration\015\012\015\012Per default, the [[Wiki#Selector|selector]] uses *fixed* as font and loads entries from */usr/bin*. This can be changed after requiring the @selector.rb@ and +before+ running it for the first time.\015\012\015\012h3. Fonts\015\012\015\012<pre>{{hide}}<code class="ruby">\015\012begin\015\012 require "#{ENV["HOME"]}/path/to/selector.rb"\015\012\015\012 # Set font\015\012 Subtle::Contrib::Selector.font = "xft:DejaVu Sans Mono:pixelsize=80:antialias=true"\015\012rescue LoadError => error\015\012 puts error\015\012end\015\012</code></pre> |
---|