Skip to content

Commit

Permalink
xmobar: Use WeatherX for more detailed information
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathas-Conceicao <jadoliveira@inf.ufpel.edu.br>
  • Loading branch information
Jonathas-Conceicao committed Jun 27, 2020
1 parent 97460c7 commit 964dc3f
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/xmobar.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,24 @@ config = defaultConfig
, allDesktops = True
, overrideRedirect = True

-- Weather uses ICAO code, remeber to update the template call too
-- WeatherX uses ICAO code, remeber to update the template call too
-- [("SBPK", "Pelotas - RS"), ("SBAR", "Aracaju - SE")]
, commands = [ Run $ Weather "SBPK"
(["--template", "Satolep: <tempC>°C"]
++ addHiLo "18" "25")
36000
, commands = [ Run $ WeatherX "SBPK"
[ ("clear", "Clear")
, ("sunny", "Sunny")
, ("mostly clear", "M-Clear")
, ("mostly sunny", "M-sunny")
, ("partly sunny", "P-sunny")
, ("fair", "Fair")
, ("cloudy", "Cloudy")
, ("overcast", "Overcast")
, ("partly cloudy", "P-Cloudy")
, ("mostly cloudy", "M-Cloudy")
, ("considerable cloudiness", "Raining")
]
(["--template", "Satolep: <tempC>°C <skyConditionS> <rh>% <windKmh>km/h"]
++ addHiLo "18" "25")
18000

, Run $ Cpu
(["--template", icon "cpu.xbm" ++ " <total>%"]
Expand Down

0 comments on commit 964dc3f

Please sign in to comment.