gsmenu and mousetoxin

Zed Lopez <[email protected]>
Newsgroups gmane.comp.window-managers.ratpoison.devel
Message-ID <[email protected]>
I don't see that they've been mentioned, so here are a couple of
projects of interest.

gsmenu is based on Xmonad's gridselect. It's sort of a more graphic
(but not in a bad way, I feel) dmenu. It's almost certainly much
easier for selecting among a large number of open windows than the
dsrat/dsratmenu scripts I posted recently.

http://github.com/Athas/gsmenu

mousetoxin, by the same person, is a re-implementation of ratpoison in
Haskell. (I haven't looked at or tried to compile it, and have no idea
what state it's in.)

http://patch-tag.com/r/Athas/Mousetoxin/home

Here's a script that uses gsmenu to select among ratpoison windows.
There's a zillion different ways you could use it, though -- for
instance, color code by resource class, or tag (the basis for matching
the elements to your keyboard input) by some criteria other than
window title or resource class.

#!/usr/bin/env perl
use IPC::Open2;
my ($input, $output);
my @windows = map { [split /\\000/] } split /\n/, `ratpoison -c
"windows %c\\000%t\\000%n"`;
open2($input, $output, 'gsmenu -c -e');
print $output qq{name="$_->[0]" "$_->[1]" tags="$_->[0]" "$_->[1]"\n}
for @windows;
close $output;
my $i = <$input>;
exec qq{ratpoison -c "select $windows[$i][2]"}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.