Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 19 lines (16 sloc) 0.378 kb
cb41bdc1 »
2009-05-28 Initial import
1 #!/usr/bin/env ruby
2
3 #simple script to summarize virtual desktop layout
4 #outputs a string of the form #{currentdesktop}/#{lastdesktop}
5 #Copyright 2006 Andrew 'Vagabond' Thompson
6
7 string = `wmctrl -d`
8 #p string
9 fields = []
10 string.split("\n").each do |line|
11 #puts line
12 fields = line.split(' ')
13 #p fields
14 if fields[1] == '*'
15 print fields[-1]
16 end
17 end
18
19 puts "/#{fields[-1]}"
20
Something went wrong with that request. Please try again.