Merger

Overview

The merger displays the available views in a selection window in the center of the screen in different colors:

  1. Views the client is visible in are shown in occupied color
  2. The current view in the focus color
  3. Other views just in the view color

The cursor keys move the selection through the list, Space marks the current view in the urgent color and Enter merges the tags of the selected views and effectively displays all clients that match the new tags. The tags are stored and can be reset on a next run of the merger.

 Merger

Colors

Color triplet Meaning
Focus Currently selected view
View Other views
Occupied Views client is visible
Urgent Selected views

Keys

Keys Action
Left, Up Move to left
Right, Down Move to right
Escape Hide/exit merger
Space Select view for merge
Return Merge selected views and exit hide/exit merger

Usage

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

Numbers: on /off 1 begin
 2   require "#{ENV["HOME"]}/path/to/merger.rb" 
 3 rescue LoadError => error
 4   puts error
 5 end
 6 
 7 grab "W-m" do
 8   Subtle::Contrib::Merger.run
 9 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 merger uses fixed as font, this can be changed after requiring the merger.rb and before running it for the first time.

Fonts

Numbers: on /off1 begin
2   require "#{ENV["HOME"]}/path/to/merger.rb" 
3 
4   # Set font
5   Subtle::Contrib::Merger.font = "xft:DejaVu Sans Mono:pixelsize=80:antialias=true" 
6 rescue LoadError => error
7   puts error
8 end