Altered version of the sys-mon-set widgets with more padding
- Link to original version: http://tracesof.net/uebersicht-widgets/#sys-mon-set
This commit is contained in:
26
public_ip.widget/index.coffee
Normal file
26
public_ip.widget/index.coffee
Normal file
@@ -0,0 +1,26 @@
|
||||
command: "curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'"
|
||||
|
||||
refreshFrequency: 43200000
|
||||
|
||||
style: """
|
||||
bottom: 135px
|
||||
left: 90px
|
||||
color: #ccc
|
||||
font-family: Helvetica Neue
|
||||
|
||||
div
|
||||
display: block
|
||||
text-shadow: 0 0 1px rgba(#000, 0.5)
|
||||
font-size: 24px
|
||||
font-weight: 100
|
||||
|
||||
"""
|
||||
|
||||
|
||||
render: -> """
|
||||
<div class='ip_address'></div>
|
||||
"""
|
||||
|
||||
update: (output, domEl) ->
|
||||
$(domEl).find('.ip_address').html(output)
|
||||
|
||||
Reference in New Issue
Block a user