Skip to content

Instantly share code, notes, and snippets.

@carljv
Created January 10, 2015 00:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carljv/d2e2e8aaae5f1a363b83 to your computer and use it in GitHub Desktop.
Save carljv/d2e2e8aaae5f1a363b83 to your computer and use it in GitHub Desktop.
Ubersicht widget script for Google Calendar
# Ubersicht - Display Google Calendar via gcalcli
# this is the shell command that gets executed every time this widget refreshes
command: "/Users/cvogel/anaconda/bin/gcalcli calw 4 --width=20 --nocolor --nolineart | /usr/local/bin/pandoc -f markdown -t html"
# the refresh frequency in milliseconds
refreshFrequency: 30*60*1000
# render gets called after the shell command has executed. The command's output
# is passed in as a string. Whatever it returns will get rendered as HTML.
render: (output) -> """
#{output}
"""
# the CSS style for this widget, written using Stylus
# (http://learnboost.github.io/stylus/)
style: """
font-size: 10px
box-sizing: border-box
color: #333
font-family: Helvetica Neue
font-weight: 300
left: 1%
line-height: 1.1
margin-left: 0px
top: 1%
width: 960px
text-align: left
table
background-color: rgba(60, 60, 60, .65)
border-collapse: collapse
box-shadow: 1px 1px 2px #444
border-radius: 10px
td p
padding-bottom: 5px
tr:first-of-type td
text-align: center
tr
border-top: solid 2px #777
/*rgb(100,100,100)*/
tr:first-of-type
border-top: none
tr td:first-of-type
border-left: none
td
color: #aaa
font-family: "Source Sans Pro"
letter-spacing: 1px
font-weight: 300
font-size: 13px
padding: 3px
border-left: solid 2px #777
vertical-align: top
border-radius 10px
p:first-child
padding-top: 0px
margin-top: 0px
font-size: 18 px
font-weight: 500
strong
background: #ad7a7c
color: #fff
display: block
font-size: 16px
font-style: italic
font-weight: 200
margin: 12px -20px
padding: 8px 20px
em
font-weight: 400
font-style: normal
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment