|
| 1 | +import Xmobar |
| 2 | +import AConfig (getConfig, AConfig (..)) |
| 3 | + |
| 4 | +config :: AConfig -> Config |
| 5 | +config cnf = |
| 6 | + Config { verbose = False |
| 7 | + , wmClass = "xmobar" |
| 8 | + , wmName = "xmobar" |
| 9 | + , border = NoBorder |
| 10 | + , borderColor = "#BFBFBF" |
| 11 | + , borderWidth = 1 |
| 12 | + , textOffsets = [] |
| 13 | + , font = cl_font cnf |
| 14 | + , additionalFonts = [] |
| 15 | + , bgColor = cl_black cnf |
| 16 | + , fgColor = cl_grey cnf |
| 17 | + , alpha = 150 |
| 18 | + -- , position = Top |
| 19 | + , position = TopSize L 100 (cl_barHeight cnf) |
| 20 | + , textOffset = -1 |
| 21 | + , iconOffset = -1 |
| 22 | + , lowerOnStart = True |
| 23 | + , pickBroadest = False |
| 24 | + , persistent = False |
| 25 | + , hideOnStart = False |
| 26 | + , iconRoot = cl_iconRoot cnf |
| 27 | + , allDesktops = True |
| 28 | + , overrideRedirect = True |
| 29 | + , commands = [ Run $ Network "enp0s31f6" ["-L","0","-H","32000", "-m", "3", "--normal",cl_aqua cnf,"--high",cl_red cnf, "-t", "<rx>KB|<tx>KB"] 50 |
| 30 | + , Run $ MultiCpu [ "--low", cl_aqua cnf, "--normal",cl_aqua cnf,"--high",cl_red cnf, "-t", "<total>%"] 50 |
| 31 | + , Run $ Memory ["-t","<usedratio>%", "-L", "0", "-H", "90", "--normal",cl_aqua cnf,"--high",cl_red cnf, "-m", "2"] 50 |
| 32 | + , Run $ Date "%a %b %_d %H:%M" "date" 600 |
| 33 | + , Run $ Alsa "default" "Master" ["-t", "<volume>%", "--low", cl_aqua cnf, "--normal",cl_aqua cnf,"--high",cl_red cnf] |
| 34 | + , Run $ Com "nvidia-settings" ["-t","-q","[gpu:0]/GPUCoreTemp" ] "gputemp" 50 |
| 35 | + , Run $ MultiCoreTemp [ "--low", cl_aqua cnf, "--normal",cl_aqua cnf,"--high",cl_red cnf, "-t", "<avg>°C"] 50 |
| 36 | + , Run $ CatInt 0 "/sys/devices/platform/nct6775.2592/hwmon/hwmon3/fan2_input" [ |
| 37 | + "-L", "0", "-H", "1082", "--normal",cl_aqua cnf,"--high",cl_red cnf] 50 |
| 38 | + , Run $ StdinReader |
| 39 | + ] |
| 40 | + , sepChar = "%" |
| 41 | + , alignSep = "}{" |
| 42 | + , template = "%StdinReader%}\ |
| 43 | + \{<icon=volume.xpm/> %alsa:default:Master% | %enp0s31f6% | <icon=memory.xpm/> %memory% | <icon=cpu.xpm/> %multicpu% %multicoretemp% %cat0% | <icon=gpu.xpm/> %gputemp%°C | <fc=" ++ cl_lilly cnf ++ ">%date%</fc>" |
| 44 | + } |
| 45 | + |
| 46 | +main :: IO () |
| 47 | +main = xmobar $ config getConfig |
| 48 | + |
0 commit comments