Project

General

Profile

numwin.rb

simple sublet - Alessa Norman, 12/18/2018 02:26 PM

 
1
# NumWin
2
configure :numwin do |s| # {{{
3
  s.interval = s.config[:interval]      || 60
4
end # }}}
5

    
6
on :view_focus do |s| # {{{
7
        s.data = Subtlext::View.current.clients.length.to_s + " -"
8
end # }}}
9

    
10
on :client_create do |s| # {{{
11
        s.data = Subtlext::View.current.clients.length.to_s + " -"
12
end # }}}
13

    
14
on :client_kill do |s| # {{{
15
        s.data = Subtlext::View.current.clients.length.to_s + " -"
16
end # }}}
17

    
18
on :start do |s| # {{{
19
        s.data = Subtlext::View.current.clients.length.to_s + " -"
20
end # }}}
21

    
22
on :reload do |s| # {{{
23
        s.data = Subtlext::View.current.clients.length.to_s + " -"
24
end # }}}