Selector¶
Overview¶
Client selector that works like the subscription selector in Google Reader
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.
Numbers: on /off 1 begin
2 require "#{ENV["HOME"]}/path/to/selector.rb"
3 rescue LoadError => error
4 puts error
5 end
6
7 grab "W-x" do
8 Subtle::Contrib::Selector.run
9 end
Install¶
Currently there is no package available and you need either to clone the repository:
Or download the latest archive:
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¶
Numbers: on /off1 begin
2 require "#{ENV["HOME"]}/path/to/selector.rb"
3
4 # Set font
5 Subtle::Contrib::Selector.font = "xft:DejaVu Sans Mono:pixelsize=80:antialias=true"
6 rescue LoadError => error
7 puts error
8 end