python + Ubersicht.app (MacOS)
Project description
Install
$ [sudo] pip install ubersicht
Classes
ubersicht.Coffee
index.coffee generator class
attr | default value |
---|---|
command |
echo |
html |
None |
refresh |
365 days |
style |
None |
update |
$(domEl).empty().append("#{output}") |
ubersicht.Widget
widget generator class
method | description |
---|---|
create() |
create widget |
rm() |
remove widget (if exists) |
Functions
function | description |
---|---|
ubersicht.kill() |
kill Übersicht.app process |
ubersicht.pid() |
return Übersicht.app pid |
ubersicht.restart() |
restart Übersicht.app |
ubersicht.start() |
open Übersicht.app |
ubersicht.widgets() |
return list with widgets paths |
Examples
generate widget
>>> import ubersicht
>>> 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
"""
Links
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ubersicht-2018.11.20.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for ubersicht-2018.11.20-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8acd84c256fde7a97354470c3247bea738c2b2156ea88fd8a1dbc825a85e618b |
|
MD5 | f3188420e3e12471a028a938cbde6b1c |
|
BLAKE2b-256 | eafef81704a94e65b21da7de6b63e080f2f8d4e64bc3227b46289cd0481d1405 |