ADD work laptop conky
This commit is contained in:
parent
0dfedaeff1
commit
66f7780de8
|
@ -0,0 +1,96 @@
|
|||
let C = ./conky/config/config.dhall
|
||||
|
||||
let filesystem =
|
||||
C.ModType.filesystem
|
||||
C.FileSystem::{
|
||||
, show_smart = False
|
||||
, show_seafile = False
|
||||
, fs_paths =
|
||||
[ { path = "/", name = "root" }
|
||||
, { path = "/boot", name = "boot" }
|
||||
, { path = "/home", name = "home" }
|
||||
, { path = "/tmp", name = "tmpfs" }
|
||||
]
|
||||
}
|
||||
|
||||
let graphics =
|
||||
C.ModType.graphics
|
||||
C.Graphics::{
|
||||
, dev_power = "/sys/bus/pci/devices/0000:01:00.0/power"
|
||||
, show_temp = False
|
||||
, show_clock = True
|
||||
, show_gpu_util = True
|
||||
, show_mem_util = True
|
||||
, show_vid_util = False
|
||||
}
|
||||
|
||||
let memory =
|
||||
C.ModType.memory
|
||||
C.Memory::{
|
||||
, show_stats = True
|
||||
, show_swap = True
|
||||
, show_plot = True
|
||||
, table_rows = 5
|
||||
}
|
||||
|
||||
let power =
|
||||
C.ModType.power
|
||||
C.Power::{
|
||||
, battery = "BAT0"
|
||||
, rapl_specs = [ { name = "PKG0", address = "intel-rapl:0" } ]
|
||||
}
|
||||
|
||||
let processor =
|
||||
C.ModType.processor
|
||||
C.Processor::{
|
||||
, core_groups =
|
||||
[ { threads = 1, rows = 2, padding = 0 }
|
||||
, { threads = 2, rows = 2, padding = 0 }
|
||||
]
|
||||
, show_stats = True
|
||||
, show_plot = True
|
||||
, table_rows = 5
|
||||
}
|
||||
|
||||
let readwrite = C.ModType.readwrite C.ReadWrite::{ devices = [ "nvme0n1" ] }
|
||||
|
||||
let toCol = \(bs : List C.Block) -> C.Column.CCol { blocks = bs, width = 436 }
|
||||
|
||||
let toPanel =
|
||||
\(cs : List C.Column) ->
|
||||
C.Panel.PPanel { columns = cs, margins = { x = 20, y = 10 } }
|
||||
|
||||
let layout =
|
||||
{ anchor = { x = 12, y = 11 }
|
||||
, panels =
|
||||
[ toPanel
|
||||
[ toCol
|
||||
[ C.mod (C.ModType.system C.System::{=})
|
||||
, C.Block.Pad 19
|
||||
, C.mod graphics
|
||||
, C.Block.Pad 19
|
||||
, C.mod power
|
||||
, C.Block.Pad 19
|
||||
, C.mod memory
|
||||
]
|
||||
]
|
||||
, C.Panel.PPad 10
|
||||
, toPanel
|
||||
[ toCol [ C.mod readwrite ]
|
||||
, C.Column.CPad 20
|
||||
, toCol [ C.mod (C.ModType.network C.Network::{=}) ]
|
||||
]
|
||||
, C.Panel.PPad 10
|
||||
, toPanel
|
||||
[ toCol
|
||||
[ C.mod (C.ModType.pacman C.Pacman::{=})
|
||||
, C.Block.Pad 21
|
||||
, C.mod filesystem
|
||||
, C.Block.Pad 21
|
||||
, C.mod processor
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
in C.toConfig 1 1920 1080 C.Theme::{=} layout
|
|
@ -2,4 +2,6 @@
|
|||
{{- include ".files/conky-configs/laptop.dhall" -}}
|
||||
{{- else if eq .features.conky_alias "workstation" -}}
|
||||
{{- include ".files/conky-configs/workstation.dhall" -}}
|
||||
{{- else if eq .features.conky_alias "work-laptop" -}}
|
||||
{{- include ".files/conky-configs/work-laptop.dhall" -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in New Issue