94 lines
4.3 KiB
Haskell
94 lines
4.3 KiB
Haskell
Config {
|
|
|
|
-- appearance
|
|
font = "xft:Fira Code:size=9:antialias=true:hinting=true"
|
|
, additionalFonts = [ "xft:FiraCode Nerd Font:style=Regular: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 = "<action=`xdotool key super+a`><icon=haskell_20.xpm/></action> %bat% <fc=#bd93f9>%cpu% %memory%</fc> <action=`nm-connection-editor`>%network%</action> <action=`toggle-sink-mute`>%volume%</action> <fc=#6272a4>|</fc> %UnsafeStdinReader% }{ %keyboard% <fc=#6272a4>|</fc> %disk% <fc=#6272a4>|</fc> %date% <fc=#6272a4>|</fc> %updates% %trayerpad%"
|
|
|
|
-- general behavior
|
|
, 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)
|
|
|
|
-- plugins
|
|
-- Numbers can be automaticallJy colored according to their value. xmobar
|
|
-- decides color based on a three-tier/two-cutoff system, controlled by
|
|
-- command options:
|
|
-- --Low sets the low cutoff
|
|
-- --High sets the high cutoff
|
|
--
|
|
-- --low sets the color below --Low cutoff
|
|
-- --normal sets the color between --Low and --High cutoffs
|
|
-- --High sets the color above --High cutoff
|
|
--
|
|
-- The --template option controls how the plugin is displayed. Text
|
|
-- color can be set by enclosing in <fc></fc> tags. For more details
|
|
-- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
|
|
, commands =
|
|
-- cpu activity monitor
|
|
[ Run Cpu [ "--template" , "cpu <total>%"
|
|
, "--Low" , "30" -- units: %
|
|
, "--High" , "60" -- units: %
|
|
, "--low" , "#50fa7b"
|
|
, "--normal" , "#ffb86c"
|
|
, "--high" , "#ff5555"
|
|
] 10
|
|
|
|
-- memory usage monitor
|
|
-- , Run Memory [ "--template" ,"mem: <usedratio>% (<used>Mb)"
|
|
, Run Memory [ "--template" ,"mem <usedratio>%"
|
|
, "--Low" , "20" -- units: %
|
|
, "--High" , "70" -- units: %
|
|
, "--low" , "#50fa7b"
|
|
, "--normal" , "#ffb86c"
|
|
, "--high" , "#ff5555"
|
|
] 10
|
|
|
|
-- time and date indicator
|
|
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
|
|
, Run Date "<fc=#268bd2><fn=1>\xf073 </fn> %a %Y-%m-%d</fc> <fc=#6272a4>|</fc> <fc=#2AA198><fn=1>\xf017 </fn>%H:%M:%S</fc>" "date" 10
|
|
|
|
-- Runs a simple script that counts the number of system updates to apply
|
|
, Run Com "xmobar-status-updates" [] "updates" 3600
|
|
|
|
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
|
|
, Run Com "xmobar-trayer-padding-icon" [] "trayerpad" 20
|
|
|
|
-- Script that pulls network information and builds string to display
|
|
, Run Com "xmobar-status-net" [] "network" 5
|
|
|
|
-- Script that pulls keyboard layout and builds string to display
|
|
, Run Com "xmobar-status-keyboard" [] "keyboard" 20
|
|
|
|
-- 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
|
|
|
|
-- Script polls the batter for info and displays nicely
|
|
, Run Com "xmobar-status-bat" [] "bat" 20
|
|
|
|
-- Script that outputs the free space on /
|
|
, Run Com "xmobar-status-disk" [] "disk" 20
|
|
|
|
-- Prints out the left side items such as workspaces, layout, etc.
|
|
, Run UnsafeStdinReader
|
|
|
|
]
|
|
}
|