Project

General

Profile

unexist.dev

/

subtle » subtle-contrib

Assorted tidbits and projects

Selector

Overview

Client selector that works like the subscription selector in Google Reader

{{lightbox(contrib/selector, Selector)}}

Colors

Color triplet Meaning
Focus Currently selected client
Occupied Visible clients on current view
View Currently not visible clients

Keys

Keys Action
Left, Up Move to left
Right, Down Move to right
Tab Cycle through windows/matches
Escape Leave input mode/exit selector
Return Focus currently selected and hide/exit selector
Any capital/digit Select client prefixed with capital letter/digit
Any text Select client with matching instance name

Usage

Either call it like ruby selector.rb from commandline or add following loader and grab to your subtle config.

{{hide}}begin
  require "#{ENV["HOME"]}/path/to/selector.rb" 
rescue LoadError => error
  puts error
end

grab "W-x" do
  Subtle::Contrib::Selector.run
end

Install

Currently there is no package available and you need either to clone the repository:

hg clone http://hg.subforge.org/subtle-contrib

Or download the latest archive:

http://hg.subforge.org/subtle-contrib/archive/tip.tar.bz2

These scripts may work, if you encounter any problems please ask in the usual places.

Configuration

Per 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.

Fonts

{{hide}}begin
  require "#{ENV["HOME"]}/path/to/selector.rb" 

  # Set font
  Subtle::Contrib::Selector.font = "xft:DejaVu Sans Mono:pixelsize=80:antialias=true" 
rescue LoadError => error
  puts error
end