python+ubersicht.app(MacOS)
ubersicht的Python项目详细描述
安装
$ [sudo] pip install ubersicht
类
class | ^{ |
---|---|
^{ | index.coffee generator class |
^{ | widget generator class |
函数
function | ^{ |
---|---|
^{ | kill Übersicht.app process |
^{ | return Übersicht.app pid |
^{ | restart Übersicht.app |
^{ | open Übersicht.app |
^{ | return a list with widgets paths |
示例
生成小部件
>>>importubersicht>>>widget=ubersicht.Widget(name="name.widget",command="echo hello world",refresh="1s",style="color: red")>>>widget.create()>>>widget.path'/Users/username/Library/Application Support/Übersicht/widgets/name.widget'
$ cat ~/Library/Application Support/Übersicht/widgets/name.widget/index.coffee command: "echo hello world" refreshFrequency: '1s' update: (output, domEl) -> $(domEl).empty().append("#{output}") style: """color: red"""