Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: dd6b02d8ea
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (16 sloc) 0.378 kB
#!/usr/bin/env ruby
#simple script to summarize virtual desktop layout
#outputs a string of the form #{currentdesktop}/#{lastdesktop}
#Copyright 2006 Andrew 'Vagabond' Thompson
string = `wmctrl -d`
#p string
fields = []
string.split("\n").each do |line|
#puts line
fields = line.split(' ')
#p fields
if fields[1] == '*'
print fields[-1]
end
end
puts "/#{fields[-1]}"
Jump to Line
Something went wrong with that request. Please try again.