rsblocks/rsblocks.yml
Mustafa Salih b1d81bf8c9
getting data programmatically (#56)
* getting loadavg programmatically

* added missing uptime in rsblock.yml

* using clock_gettime syscall to get uptime
2021-05-12 16:46:48 +03:00

109 lines
1.8 KiB
YAML

# This is the full configuration template available for rsblocks.
# NOTE: the (delay) is in **SECONDS** and the float point "." is required.
seperator: '┃'
# Time always running, no enabled option for this
time:
delay: 1.0
format: '%d %b, %I:%M:%S %p'
icon: ''
# Time of the system has been running
uptime:
delay: 15.0
enabled: false
icon: ''
# public ip address
pub_ip:
delay: 120.0
enabled: false
icon: ''
# ethernet/wifi bandwith (no delay for this since it will calculate the bandwith every second)
netspeed:
enabled: false
interface: 'wlan0'
recieve_icon: ''
transmit_icon: ''
memory:
delay: 2.0
enabled: true
icon: '▦'
disk:
delay: 120.0
enabled: true
icon: ''
battery:
delay: 120.0
enabled: false
icon: ''
cpu_temperature:
delay: 120.0
enabled: false
icon: ''
# cpu load average from the last minute
loadavg:
delay: 15.0
enabled: false
icon: ''
# bitcoin price
# bitcoin function using www.blockchain.com's API,
# you can visit that to check other bitcoins symbols!
bitcoins:
delay: 7200.0 # 2 hours
enabled: false
icon: ''
symbol: 'BTC-USD'
mpd:
delay: 5.0
enabled: false
host: '127.0.0.1'
icon: ''
port: '6600'
volume:
card: 'PULSE'
delay: 0.18
enabled: false
icon: ''
spotify:
delay: 0.5
enabled: false
icon: ''
# weather format options is available on
# https://github.com/chubin/wttr.in
# NOTES:
# - if the city field set to empty, it will try to read location automatically.
# - if you have multiple formats and want to insert space between them use '+' instead.
# - giving (city) a value is recommended.
weather:
city: ''
delay: 7200.0 # 7200 seconds = 2 hours
enabled: false
format: '%l:+%t'
icon: ''