2019-01-15 16:27:01 -05:00
|
|
|
-- http://projects.haskell.org/xmobar/
|
|
|
|
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
|
|
|
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
|
|
|
|
2020-02-17 01:07:06 -05:00
|
|
|
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
2020-07-04 12:36:50 -04:00
|
|
|
, additionalFonts = [ "xft:FontAwesome:pixelsize=13", "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" ]
|
2020-05-16 00:04:18 -04:00
|
|
|
, bgColor = "#292d3e"
|
2020-02-17 01:07:06 -05:00
|
|
|
, fgColor = "#B45BCF"
|
2020-07-04 12:36:50 -04:00
|
|
|
, position = Static { xpos = 1920 , ypos = 0, width = 1920, height = 24 }
|
2019-01-15 16:27:01 -05:00
|
|
|
, lowerOnStart = True
|
|
|
|
, hideOnStart = False
|
|
|
|
, allDesktops = True
|
|
|
|
, persistent = True
|
2020-02-17 01:07:06 -05:00
|
|
|
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
2020-05-12 23:26:28 -04:00
|
|
|
, commands = [
|
|
|
|
-- Time and date
|
2020-05-17 19:50:29 -04:00
|
|
|
Run Date "\xf133 %b %d %Y (%H:%M)" "date" 50
|
2020-05-12 23:26:28 -04:00
|
|
|
-- Network up and down
|
2020-05-17 19:50:29 -04:00
|
|
|
, Run Network "enp6s0" ["-t", "\xf0aa <rx>kb \xf0ab <tx>kb"] 20
|
2020-05-12 23:26:28 -04:00
|
|
|
-- Cpu usage in percent
|
2020-05-17 19:50:29 -04:00
|
|
|
, Run Cpu ["-t", "\xf108 cpu: (<total>%)","-H","50","--high","red"] 20
|
2020-05-12 23:26:28 -04:00
|
|
|
-- Ram used number and percent
|
2020-05-17 19:50:29 -04:00
|
|
|
, Run Memory ["-t", "\xf233 mem: <used>M (<usedratio>%)"] 20
|
2020-05-12 23:26:28 -04:00
|
|
|
-- Disk space free
|
|
|
|
, Run DiskU [("/", "\xf0c7 hdd: <free> free")] [] 60
|
|
|
|
-- Runs custom script to check for pacman updates.
|
|
|
|
-- This script is in my dotfiles repo in .local/bin.
|
2020-05-17 19:50:29 -04:00
|
|
|
, Run Com "pacupdate" [] "" 36000
|
2020-05-12 23:26:28 -04:00
|
|
|
-- Runs a standard shell command 'uname -r' to get kernel version
|
|
|
|
, Run Com "uname" ["-r"] "" 3600
|
2020-05-17 19:50:29 -04:00
|
|
|
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
|
|
|
|
, Run Com "/home/dt/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
|
2020-05-12 23:26:28 -04:00
|
|
|
-- Prints out the left side items such as workspaces, layout, etc.
|
|
|
|
-- The workspaces are 'clickable' in my configs.
|
2019-01-15 16:27:01 -05:00
|
|
|
, Run UnsafeStdinReader
|
|
|
|
]
|
|
|
|
, sepChar = "%"
|
|
|
|
, alignSep = "}{"
|
2020-05-16 22:24:02 -04:00
|
|
|
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#666666>| </fc><fc=#b3afc2> %uname% </fc><fc=#666666>| </fc><fc=#FFB86C>%cpu% </fc><fc=#666666>| </fc><fc=#FF5555>%memory% </fc><fc=#666666>| </fc><fc=#82AAFF>%disku% </fc><fc=#666666>| </fc><fc=#c3e88d>%enp6s0% </fc><fc=#666666>| </fc><fc=#e1acff> %pacupdate%</fc><fc=#666666>| </fc><fc=#8BE9FD>%date% </fc><fc=#666666>|</fc>%trayerpad%"
|
2019-01-15 16:27:01 -05:00
|
|
|
}
|