oignon: clean bitmask-vpn
[julm/julm-nix.git] / homes / softwares / xmonad / xmobar.hs
index e7c53e5a441883deea0a5df271dbd12e87acc156..a509423ac6397790d9cc2010e28f0c4e042e6aec 100644 (file)
@@ -1,55 +1,75 @@
 Config {
-  -- font = "xft:Fixed-8",
-  -- font = "xft:DejaVu Sans Mono:pixelsize=9:antialias=true",
-  -- font = "-*-terminal-*-*-*-*-14-*-*-*-*-*-*-*",
-  font = "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*",
-  bgColor = "#000000",
-  fgColor = "#ffffff",
-  position = OnScreen 0 (TopW L 90),
-  lowerOnStart = True,
-  commands =
-   [ Run StdinReader
-   , Run Network "enp0s26u1u1"
-     [ "-t","<rx>vE^<tx>   "
-     , "-H","1000000" -- 1000KB/s
-     , "-L",  "20000" --   20KB/s
-     , "-h","red"
-     , "-n","white"
-     , "-m","3"
-     ] 10
-   , Run Network "enp0s25"
-     [ "-t","<rx>vE^<tx>   "
-     , "-H","1000000" -- 1000KB/s
-     , "-L",  "20000" --   20KB/s
-     , "-h","red"
-     , "-n","white"
-     , "-m","3"
-     ] 10
-   , Run Network "wlp2s0"
-     [ "-t","<rx><fc=,#666666>vW^</fc><tx>   "
-     , "-H","1000000" -- 1000KB/s
-     , "-L",  "20000" --   20KB/s
-     , "-h","red"
-     , "-n","white"
-     , "-m","3"
-     ] 10
-   , Run DateZone "%A %d %H:%M:%S" "fr_FR.UTF-8" "Europe/Paris" "parisTime" 1
-   , Run ThermalZone 0
-     [ "-t","<temp>C"
-     , "-L","70"
-     , "-H","90"
-     , "-h","red"
-     ] 30
-   , Run BatteryP ["BAT0"]
-     [ "-t","<left>B"
-     , "-L","50"
-     , "-H","95"
-     , "-l","red"
-     , "-h","green"
-     ]
-     600
-   ],
-  sepChar = "%",
-  alignSep = "}{",
-  template = "%StdinReader% }{ <fc=#999999>%enp0s26u1u1%%enp0s25%%wlp2s0%%enp5s0%%thermal0%  %battery%    %parisTime%</fc>"
-}
+  -- font =         "xft:Bitstream Vera Sans Mono:size=9:bold:antialias=true"
+  font = "xft:DejaVu Sans Mono:pixelsize=9:antialias=true"
+  , bgColor = "black"
+  -- , fgColor = "#646464"
+  , fgColor = "#ffffff"
+  -- , position = Top
+  , position = OnScreen 0 (TopW L 90)
+  -- , border = BottomB
+  -- , borderColor = "#646464"
+  , sepChar = "%"   -- delineator between plugin names and straight text
+  , alignSep = "}{"  -- separator between left-right alignment
+  , template = "%StdinReader% }{ %multicpu%   %thermal0%   %memory%   %dynnetwork%   %battery%   %kbd%   %parisTime% "
+  , lowerOnStart = True -- send to bottom of window stack on start
+  , hideOnStart = False -- start with window unmapped (hidden)
+  , allDesktops = True -- show on all desktops
+  , overrideRedirect = True -- set the Override Redirect flag (Xlib)
+  , pickBroadest = False -- choose widest display (multi-monitor)
+  , persistent = True -- enable/disable hiding (True = disabled)
+  , commands =
+    [ Run StdinReader
+    , Run MultiCpu
+      [ "--template", "CPU:<autototal>%"
+      , "--Low", "50" -- units: %
+      , "--High", "85" -- units: %
+      , "--low", "green"
+      , "--normal", "orange"
+      , "--high", "red"
+      ] 10
+    , Run ThermalZone 0
+      [ "--template", "Temp:<temp>°C"
+      , "--Low", "70" -- units: °C
+      , "--High", "80" -- units: °C
+      , "--low", "green"
+      , "--normal", "orange"
+      , "--high", "red"
+      ] 30
+    , Run Memory
+      [ "--template","Mem:<usedratio>%"
+      , "--Low", "20" -- units: %
+      , "--High", "90" -- units: %
+      , "--low", "green"
+      , "--normal", "orange"
+      , "--high", "red"
+      ] 10
+    , Run DynNetwork
+      [ "--template", "<dev>:Tx:<tx>|Rx:<rx>kB/s"
+      , "--Low", "20000" -- units: B/s
+      , "--High", "1000000" -- units: B/s
+      , "--low", "green"
+      , "--normal", "orange"
+      , "--high", "red"
+      ] 10
+    , Run Battery
+      [ "--template", "Batt:<acstatus>"
+      , "--Low", "20" -- units: %
+      , "--High", "80" -- units: %
+      , "--low", "red"
+      , "--normal", "orange"
+      , "--high", "green"
+      , "--" -- battery specific options
+        -- discharging status
+        , "-o", "<left>% (<timeleft>)"
+        -- AC "on" status
+        , "-O", "<fc=#dAA520>Charging</fc>"
+        -- charged status
+        , "-i", "<fc=green>Charged</fc>"
+      ] 50
+    , Run Kbd
+      [ ("fr", "Kbd:<fc=white>FR</fc>")
+      , ("us", "Kbd:<fc=white>US</fc>")
+      ]
+    , Run DateZone "%A %d %b %H:%M:%S" "fr_FR.UTF-8" "Europe/Paris" "parisTime" 1
+    ]
+  }