User Tools

Site Tools


unix:wmii

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
unix:wmii [2009/12/13 14:18]
robm created
unix:wmii [2009/12/17 18:25]
robm
Line 3: Line 3:
  
   * http://glyph.twistedmatrix.com/2009/01/you-got-your-windowmaker-in-my-peanut.html   * http://glyph.twistedmatrix.com/2009/01/you-got-your-windowmaker-in-my-peanut.html
 +
 +===== Q: Why don't new window appear in the current view? ====
 +A: Because they don't match the current tag. I wrote a script to tag all new windows with the current view.
 +
 +<code python>
 +#!/usr/bin/env python
 +
 +import os
 +import sys
 +
 +p = os.popen("wmiir read /event")
 +while True:
 +    event = p.readline()
 +    if event.startswith("CreateClient"):
 +        client = event.split(" ", 1)[1].strip()
 +        os.system("wmiir xwrite /client/%s/tags $(wmiir read /tag/sel/ctl | head -n1)" % client)
 +
 +</code>
unix/wmii.txt · Last modified: 2009/12/20 20:19 by robm