diff --git a/.config/xmobar/xmobarrc-main.hs b/.config/xmobar/xmobarrc-main.hs
index ba617af..a1fa688 100644
--- a/.config/xmobar/xmobarrc-main.hs
+++ b/.config/xmobar/xmobarrc-main.hs
@@ -1,19 +1,19 @@
-Config {
+Config {
-- appearance
- font = "xft:Fira Code:size=12:antialias=true:hinting=true"
- , additionalFonts = [ "xft:FiraCode Nerd Font:size=9:antialias=true:hinting=true" ]
- , bgColor = "#282a36"
- , fgColor = "#f8f8f2"
- , position = Top
- , border = BottomB
- , borderColor = "#282a36"
- , iconRoot = "/home/solomon/.xmonad/xpm/" -- default: "."
+ font = "xft:Fira Code:size=12:antialias=true:hinting=true"
+ , additionalFonts = [ "xft:FiraCode Nerd Font:size=9:antialias=true:hinting=true" ]
+ , bgColor = "#282a36"
+ , fgColor = "#f8f8f2"
+ , position = Top
+ , border = BottomB
+ , borderColor = "#282a36"
+ , iconRoot = "/home/solomon/.xmonad/xpm/" -- default: "."
-- layout
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
- , template = " %cpu% %memory% %network% %volume% | %UnsafeStdinReader% }{ %keyboard% | %date% | %YPAD% | %updates% %trayerpad%"
+ , template = " %cpu% %memory% %network% %volume% | %UnsafeStdinReader% }{ %keyboard% | %date% | %weather% | %updates% %trayerpad%"
-- general behavior
, lowerOnStart = True -- send to bottom of window stack on start
@@ -37,50 +37,16 @@ Config {
-- The --template option controls how the plugin is displayed. Text
-- color can be set by enclosing in tags. For more details
-- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
- , commands =
- -- weather monitor
- [ Run Weather "YPAD" ["--template" , ": C"
- , "--Low" , "10"
- , "--High" , "25"
- , "--normal" , "#50fa7b"
- , "--high" , "#ff5555"
- , "--low" , "lightblue"
- ] 36000
-
- -- network activity monitor
- -- , Run Network "enp33s0" [ "--template" , "eth: kB/s kB/s"
- -- , "--Low" , "100000" -- units: B/s
- -- , "--High" , "500000" -- units: B/s
- -- , "--low" , "#50fa7b"
- -- , "--normal" , "#ffb86c"
- -- , "--high" , "#ff5555"
- -- ] 10
- -- , Run Network "wlp36s0" [ "--template" , "wlan: kB/s kB/s"
- -- , "--Low" , "100000" -- units: B/s
- -- , "--High" , "500000" -- units: B/s
- -- , "--low" , "#50fa7b"
- -- , "--normal" , "#ffb86c"
- -- , "--high" , "#ff5555"
- -- ] 10
-
- -- network activity monitor (dynamic interface resolution)
- -- , Run DynNetwork [ "--template" , "net: kB/s kB/s"
- -- , "--Low" , "100000" -- units: B/s
- -- , "--High" , "500000" -- units: B/s
- -- , "--low" , "#50fa7b"
- -- , "--normal" , "#ffb86c"
- -- , "--high" , "#ff5555"
- -- ] 10
-
- -- cpu activity monitor
- , Run Cpu [ "--template" , "cpu: %"
+ , commands =
+ -- cpu activity monitor
+ [ Run Cpu [ "--template" , "cpu: %"
, "--Low" , "30" -- units: %
, "--High" , "60" -- units: %
, "--low" , "#50fa7b"
, "--normal" , "#ffb86c"
, "--high" , "#ff5555"
] 10
-
+
-- memory usage monitor
-- , Run Memory [ "--template" ,"mem: % (Mb)"
, Run Memory [ "--template" ,"mem: %"
@@ -91,29 +57,9 @@ Config {
, "--high" , "#ff5555"
] 10
- -- time and date indicator
+ -- time and date indicator
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "\xf073 %a %_d %b %Y | \xf017 %H:%M:%S" "date" 10
-
- -- keyboard layout indicator
- -- , Run Kbd [ ("us(dvorak)" , "DV")
- -- , ("us" , "US")
- -- ]
-
- -- Battery information. This is likely to require some customization
- -- based upon your specific hardware. Or, for a desktop you may want
- -- to just remove this section entirely.
- -- , Run BatteryP ["BAT0"]
- -- [ "--template", " %, "
- -- , "-L", "10", "-H", "80"
- -- , "-l", "#ff5555", "-h", "#50fa7b"
- -- , "--", "-O", "Charging", "-o", "Battery"
- -- -- , "-a", "notify-send -u critical 'Battery running out!!'"
- -- -- , "-A", "10"
- -- ] 10
-
- -- Runs a standard shell command 'uname -r' to get kernel version
- -- , Run Com "uname" ["-r"] "" 3600
-- Runs a simple script that counts the number of system updates to apply
, Run Com "/home/solomon/.config/xmobar/count-updates.sh" [] "updates" 3600
@@ -130,6 +76,9 @@ Config {
-- Script that pulls volume related data and builds string to dislpay
, Run Com "xmobar-status-vol" [] "volume" 5
+ -- Script that pulls weather related data and builds string to display
+ , Run Com "xmobar-status-weather" ["YPAD"] "weather" 300
+
-- Prints out the left side items such as workspaces, layout, etc.
, Run UnsafeStdinReader
diff --git a/.config/xmobar/xmobarrc-single.hs b/.config/xmobar/xmobarrc-single.hs
index 2c1a65f..e119e60 100644
--- a/.config/xmobar/xmobarrc-single.hs
+++ b/.config/xmobar/xmobarrc-single.hs
@@ -1,14 +1,14 @@
Config {
-- appearance
- font = "xft:Fira Code:size=9:antialias=true:hinting=true"
- , additionalFonts = [ "xft:Font Awesome:size=9:antialias=true:hinting=true" ]
- , bgColor = "#282a36"
- , fgColor = "#f8f8f2"
- , position = Top
- , border = BottomB
- , borderColor = "#282a36"
- , iconRoot = "/home/solomon/.xmonad/xpm/" -- default: "."
+ font = "xft:Fira Code:size=9:antialias=true:hinting=true"
+ , additionalFonts = [ "xft:Font Awesome:size=9:antialias=true:hinting=true" ]
+ , bgColor = "#282a36"
+ , fgColor = "#f8f8f2"
+ , position = Top
+ , border = BottomB
+ , borderColor = "#282a36"
+ , iconRoot = "/home/solomon/.xmonad/xpm/" -- default: "."
-- layout
@@ -45,7 +45,7 @@ Config {
, "--High" , "60" -- units: %
, "--low" , "#50fa7b"
, "--normal" , "#ffb86c"
- , "--high" , "#ff5555"
+ , "--high" , "#ff5555"
] 10
-- memory usage monitor
@@ -62,60 +62,6 @@ Config {
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "\xf073 %a %Y-%m-%d | \xf017 %H:%M:%S" "date" 10
- -- weather monitor
- -- Run Weather "YPAD" ["--template" , ": \x00b0C"
- -- , "--Low" , "10"
- -- , "--High" , "25"
- -- , "--normal" , "#50fa7b"
- -- , "--high" , "#ff5555"
- -- , "--low" , "lightblue"
- -- ] 36000
-
- -- network activity monitor
- -- , Run Network "enp33s0" [ "--template" , "eth: kB/s kB/s"
- -- , "--Low" , "100000" -- units: B/s
- -- , "--High" , "500000" -- units: B/s
- -- , "--low" , "#50fa7b"
- -- , "--normal" , "#ffb86c"
- -- , "--high" , "#ff5555"
- -- ] 10
- -- , Run Network "wlp36s0" [ "--template" , "wlan: kB/s kB/s"
- -- , "--Low" , "100000" -- units: B/s
- -- , "--High" , "500000" -- units: B/s
- -- , "--low" , "#50fa7b"
- -- , "--normal" , "#ffb86c"
- -- , "--high" , "#ff5555"
- -- ] 10
-
- -- network activity monitor (dynamic interface resolution)
- -- , Run DynNetwork [ "--template" , "net: kB/s kB/s"
- -- , "--Low" , "100000" -- units: B/s
- -- , "--High" , "500000" -- units: B/s
- -- , "--low" , "#50fa7b"
- -- , "--normal" , "#ffb86c"
- -- , "--high" , "#ff5555"
- -- ] 10
-
- -- keyboard layout indicator
- -- , Run Kbd [ ("us(dvorak)" , "DV")
- -- , ("us" , "US")
- -- ]
-
- -- Battery information. This is likely to require some customization
- -- based upon your specific hardware. Or, for a desktop you may want
- -- to just remove this section entirely.
- -- , Run BatteryP ["BAT0"]
- -- [ "--template", " %, "
- -- , "-L", "10", "-H", "80"
- -- , "-l", "#ff5555", "-h", "#50fa7b"
- -- , "--", "-O", "Charging", "-o", "Battery"
- -- -- , "-a", "notify-send -u critical 'Battery running out!!'"
- -- -- , "-A", "10"
- -- ] 10
-
- -- Runs a standard shell command 'uname -r' to get kernel version
- -- , Run Com "uname" ["-r"] "" 3600
-
-- Runs a simple script that counts the number of system updates to apply
, Run Com "xmobar-status-updates" [] "updates" 3600