File: tkabber_setstatus

package info (click to toggle)
tkabber 0.9.9-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,028 kB
  • ctags: 1,798
  • sloc: tcl: 36,852; xml: 3,704; sh: 1,386; makefile: 67
file content (21 lines) | stat: -rwxr-xr-x 403 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/wish

set tkabbers {}
foreach w [winfo interps] {
    if {[string equal -length 7 $w "tkabber"]} {
	lappend tkabbers $w
    }
}

if {$argc == 0} { set argv {{}} }

if {$argc > 1} { set argv [list $argv] }

if {[lsearch -exact $argv "XMMS playing: %s"] >= 0} { set argv {{}} }

foreach i $tkabbers {
    catch { send -async $i "set textstatus $argv
	    set userstatus \$userstatus" }
}

exit