Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Clock sublet file
- # wjeb to do ~/.local/share/subtle/sublets, nazwij clock.rb
- # i zrob w .local/share/subtle/icons gimpem plik clock.xbm, pusty 2x2px
- configure :clock do |s| # {{{
- s.interval = s.config[:interval] || 60
- s.format = s.config[:format_string] || "%y/%m/%d %H:%M"
- s.icon = Subtlext::Icon.new("clock.xbm")
- end # }}}
- on :run do |s| # {{{
- s.data = s.icon + Time.now().strftime(s.format)
- end # }}}
Advertisement
Add Comment
Please, Sign In to add comment