Project

General

Profile

unexist.dev

subtle » subtle-contrib

Assorted tidbits and projects

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, 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 grab to your subtle config.\015\012\015\012
{{hide}}\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
\015\012\015\012h2. Install\015\012\015\012Currently there is no package available and you need either to clone the repository:\015\012\015\012bq. hg clone http://hg.subforge.org/subtle-contrib\015\012\015\012Or download the latest archive:\015\012\015\012bq. http://hg.subforge.org/subtle-contrib/archive/tip.tar.bz2\015\012\015\012_These scripts may work, if you encounter any problems please ask in the usual places._\015\012\015\012h2. Configuration\015\012\015\012Per default, the 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
{{hide}}\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