2016-09-15 10:19:49 +00:00
|
|
|
Config {
|
|
|
|
|
|
|
|
-- Appearance
|
2019-01-18 00:56:08 +00:00
|
|
|
font = "xft:OpenSans:size=9:antialias=true"
|
2017-02-28 13:12:56 +00:00
|
|
|
, bgColor = "#073642"
|
|
|
|
, fgColor = "#93a1a1"
|
2020-05-15 05:22:25 +00:00
|
|
|
, position = TopW L 93 -- Leave space for Trayer
|
2016-09-15 10:19:49 +00:00
|
|
|
|
|
|
|
-- Layout
|
2020-03-17 12:12:34 +00:00
|
|
|
, sepChar = "%" -- delineator between plugin names and straight text
|
|
|
|
, alignSep = "}{" -- separator between left-right alignment
|
2020-05-15 05:22:25 +00:00
|
|
|
, template = "%StdinReader% } { %YBRK% | UV: %uv Brisbane% | %cpu% %coretemp% %cpufreq% | %memory% | %swap% | %dynnetwork% | %battery% | %date%"
|
2016-09-15 10:19:49 +00:00
|
|
|
|
|
|
|
-- Behaviour
|
2020-03-17 12:12:34 +00:00
|
|
|
, lowerOnStart = False -- send to bottom of window stack on start
|
|
|
|
, pickBroadest = False -- choose widest display (multi-monitor)
|
|
|
|
, overrideRedirect = False -- set the Override Redirect flag (Xlib)
|
2016-09-15 10:19:49 +00:00
|
|
|
|
|
|
|
--Plugins
|
|
|
|
, commands =
|
|
|
|
-- CPU Activity Monitor
|
2020-05-15 05:22:25 +00:00
|
|
|
[ Run Cpu [ "--template" , "CPU: <total>%"
|
2016-09-15 10:19:49 +00:00
|
|
|
, "--Low" , "30" -- units: %
|
|
|
|
, "--High" , "70" -- units: %
|
2017-02-28 13:12:56 +00:00
|
|
|
, "--low" , "#2aa198"
|
|
|
|
, "--normal" , "#859900"
|
|
|
|
, "--high" , "#dc322f"
|
2016-09-15 10:19:49 +00:00
|
|
|
] 10
|
|
|
|
|
|
|
|
-- cpu core temperature monitor
|
|
|
|
, Run CoreTemp [ "--template" , "Temp: <core0>°C|<core1>°C"
|
|
|
|
, "--Low" , "30" -- units: °C
|
|
|
|
, "--High" , "80" -- units: °C
|
2017-02-28 13:12:56 +00:00
|
|
|
, "--low" , "#2aa198"
|
|
|
|
, "--normal" , "#859900"
|
|
|
|
, "--high" , "#dc322f"
|
2016-09-15 10:19:49 +00:00
|
|
|
] 50
|
|
|
|
|
|
|
|
-- CPU Frequency
|
|
|
|
, Run CpuFreq [ "--template" , "<cpu0>GHz <cpu1>GHz"
|
|
|
|
] 10
|
|
|
|
|
|
|
|
-- Memory Usage Monitor
|
|
|
|
, Run Memory [ "--template" , "MEM <usedratio>%"
|
|
|
|
, "--Low" , "20" -- units: %
|
|
|
|
, "--High" , "90" -- units: %
|
2017-02-28 13:12:56 +00:00
|
|
|
, "--low" , "#2aa198"
|
|
|
|
, "--normal" , "#859900"
|
|
|
|
, "--high" , "#dc322f"
|
2016-09-15 10:19:49 +00:00
|
|
|
] 10
|
|
|
|
|
|
|
|
-- Battery Monitor
|
2018-02-23 14:45:44 +00:00
|
|
|
, Run BatteryP ["BAT"] [ "--template" , "BAT: <acstatus>"
|
2016-09-15 10:19:49 +00:00
|
|
|
, "--Low" , "10" -- units: %
|
|
|
|
, "--High" , "80" -- units: %
|
2017-02-28 13:12:56 +00:00
|
|
|
, "--low" , "#dc322f"
|
|
|
|
, "--normal" , "#859900"
|
|
|
|
, "--high" , "#2aa198"
|
2016-09-15 10:19:49 +00:00
|
|
|
|
|
|
|
, "--" -- battery specific options
|
2020-03-17 12:12:34 +00:00
|
|
|
-- discharging status
|
|
|
|
, "-o" , "<left>% (<timeleft>)"
|
|
|
|
-- AC "on" status
|
|
|
|
, "-O" , "<fc=#2aa198>Charging</fc>"
|
|
|
|
-- charged status
|
|
|
|
, "-i" , "<fc=#859900>Charged</fc>"
|
2016-09-15 10:19:49 +00:00
|
|
|
] 50
|
|
|
|
|
|
|
|
-- Read from STDIN
|
|
|
|
, Run StdinReader
|
|
|
|
|
2020-03-17 12:12:34 +00:00
|
|
|
-- Display the current Wireless SSID
|
|
|
|
-- , Run Wireless "wlp1s0" [ "-t", "<essid>" ] 10
|
|
|
|
|
2016-09-15 10:19:49 +00:00
|
|
|
-- Weather Monitor
|
2020-05-15 05:22:25 +00:00
|
|
|
, Run Weather "YBRK" [ "--template" , " <skyCondition> <tempC>C <rh>% <pressure> hPa"
|
2016-09-15 10:19:49 +00:00
|
|
|
, "--Low" , "10"
|
|
|
|
, "--High" , "35"
|
2017-02-28 13:12:56 +00:00
|
|
|
, "--low" , "#2aa198"
|
|
|
|
, "--normal" , "#859900"
|
|
|
|
, "--high" , "#dc322f"
|
2016-09-15 10:19:49 +00:00
|
|
|
] 36000
|
|
|
|
|
|
|
|
-- Time and Date Display
|
2017-02-28 13:12:56 +00:00
|
|
|
, Run Date "<fc=#268bd2>%a %b %_d %H:%M</fc>" "date" 10
|
2017-08-29 10:20:42 +00:00
|
|
|
|
|
|
|
-- Display the current UV
|
2020-03-17 12:12:34 +00:00
|
|
|
, Run UVMeter "Brisbane" [ "-H" , "3"
|
2017-08-29 10:20:42 +00:00
|
|
|
, "-L" , "3"
|
|
|
|
, "--low" , "#859900"
|
|
|
|
, "--high" , "#dc322f"
|
|
|
|
] 900
|
2020-05-15 05:22:25 +00:00
|
|
|
|
2019-01-18 00:56:08 +00:00
|
|
|
-- MPD status
|
|
|
|
, Run MPD ["-t","<artist> - <title> (<album>) <statei> ","--", "-P", ">>", "-Z", "|", "-S", "><"] 10
|
2020-05-15 05:22:25 +00:00
|
|
|
|
|
|
|
, Run Swap [] 10
|
|
|
|
, Run DynNetwork [ "--template" , "<dev>: <tx>kB/s"
|
|
|
|
, "--Low" , "50000" -- units: B/s
|
|
|
|
, "--High" , "500000" -- units: B/s
|
|
|
|
, "--low" , "#2d9574"
|
|
|
|
, "--normal" , "orange"
|
|
|
|
, "--high" , "red"
|
|
|
|
] 10
|
2016-09-15 10:19:49 +00:00
|
|
|
]
|
|
|
|
}
|