ENH move workstation conky to dhall
This commit is contained in:
parent
cf6b069f6f
commit
cb91bf9927
|
@ -0,0 +1,93 @@
|
|||
let C = ./conky/config/config.dhall
|
||||
|
||||
let filesystem =
|
||||
C.ModType.filesystem
|
||||
C.FileSystem::{
|
||||
, show_smart = True
|
||||
, fs_paths =
|
||||
[ { path = "/", name = "root" }
|
||||
, { path = "/boot", name = "boot" }
|
||||
, { path = "/home", name = "home" }
|
||||
, { path = "/mnt/data", name = "data0" }
|
||||
, { path = "/mnt/more_data", name = "data1" }
|
||||
, { path = "/tmp", name = "tmpfs" }
|
||||
]
|
||||
}
|
||||
|
||||
let graphics =
|
||||
C.ModType.graphics
|
||||
C.Graphics::{
|
||||
, dev_power = "/sys/bus/pci/devices/0000:01:00.0/power/control"
|
||||
, show_temp = True
|
||||
, 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 = 10
|
||||
, geometry = C.MemGeo::{
|
||||
, plot = C.PlotGeo_::{ height = 120, ticks_y = 10 }
|
||||
}
|
||||
}
|
||||
|
||||
let processor =
|
||||
C.ModType.processor
|
||||
C.Processor::{
|
||||
, core_rows = 2
|
||||
, core_padding = 0
|
||||
, show_stats = False
|
||||
, show_plot = True
|
||||
, table_rows = 10
|
||||
, geometry = C.ProcGeo::{
|
||||
, plot = C.PlotGeo_::{ height = 120, ticks_y = 10 }
|
||||
}
|
||||
}
|
||||
|
||||
let readwrite =
|
||||
C.ModType.readwrite C.ReadWrite::{ devices = [ "sda", "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 42
|
||||
, C.mod graphics
|
||||
, C.Block.Pad 42
|
||||
, 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 40
|
||||
, C.mod filesystem
|
||||
, C.Block.Pad 40
|
||||
, C.mod processor
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
in C.toConfig 1 1920 1080 C.Theme::{=} layout
|
|
@ -1,115 +0,0 @@
|
|||
bootstrap:
|
||||
update_interval: 1
|
||||
dimensions: [1920, 1080]
|
||||
modules:
|
||||
filesystem:
|
||||
show_smart: true
|
||||
fs_paths:
|
||||
- {path: /, name: root}
|
||||
- {path: /boot, name: boot}
|
||||
- {path: /home, name: home}
|
||||
- {path: /mnt/data, name: data0}
|
||||
- {path: /mnt/more_data, name: data1}
|
||||
- {path: /tmp, name: tmpfs}
|
||||
graphics:
|
||||
dev_power: /sys/bus/pci/devices/0000:01:00.0/power/control
|
||||
show_temp: true
|
||||
show_clock: true
|
||||
show_gpu_util: true
|
||||
show_mem_util: true
|
||||
show_vid_util: false
|
||||
memory:
|
||||
show_stats: true
|
||||
show_swap: true
|
||||
show_plot: true
|
||||
table_rows: 10
|
||||
power:
|
||||
battery: ''
|
||||
rapl_specs:
|
||||
- {name: PKG0, address: intel-rapl:0}
|
||||
processor:
|
||||
core_rows: 2
|
||||
core_padding: 0
|
||||
show_stats: false
|
||||
show_plot: true
|
||||
table_rows: 10
|
||||
readwrite:
|
||||
devices: [sda, nvme0n1]
|
||||
|
||||
layout:
|
||||
anchor: [12, 11]
|
||||
panels:
|
||||
- columns:
|
||||
- {blocks: [system, 19, graphics, 16, memory], width: 436}
|
||||
margins: [20, 10]
|
||||
- 10
|
||||
- columns:
|
||||
- {blocks: [readwrite], width: 436}
|
||||
- 20
|
||||
- {blocks: [network], width: 436}
|
||||
margins: [20, 10]
|
||||
- 10
|
||||
- columns:
|
||||
- {blocks: [pacman, 24, filesystem, 23, processor], width: 436}
|
||||
margins: [20, 10]
|
||||
|
||||
theme:
|
||||
font:
|
||||
family: Neuropolitical
|
||||
sizes:
|
||||
normal: 13
|
||||
plot_label: 8
|
||||
table: 11
|
||||
header: 15
|
||||
geometry:
|
||||
plot:
|
||||
seconds: 90
|
||||
ticks: [9, 4]
|
||||
height: 56
|
||||
spacing: 20
|
||||
table:
|
||||
name_chars: 8
|
||||
padding: [6, 15]
|
||||
header_padding: 20
|
||||
row_spacing: 17
|
||||
header:
|
||||
underline_offset: 26
|
||||
padding: 19
|
||||
patterns:
|
||||
header: 0xefefef
|
||||
panel:
|
||||
bg: {color: 0x121212, alpha: 0.7}
|
||||
text:
|
||||
active: 0xbfe1ff
|
||||
inactive: 0xc8c8c8
|
||||
critical: 0xff8282
|
||||
border: 0x888888
|
||||
plot:
|
||||
grid: 0x666666
|
||||
outline: 0x777777
|
||||
data:
|
||||
border:
|
||||
gradient:
|
||||
- {stop: 0, color: 0x003f7c}
|
||||
- {stop: 1, color: 0x1e90ff}
|
||||
fill:
|
||||
gradient_alpha:
|
||||
- {stop: 0.2, color: 0x316ece, alpha: 0.5}
|
||||
- {stop: 1, color: 0x8cc7ff, alpha: 1.0}
|
||||
indicator:
|
||||
bg:
|
||||
gradient:
|
||||
- {stop: 0, color: 0x565656}
|
||||
- {stop: 0.5, color: 0xbfbfbf}
|
||||
- {stop: 1, color: 0x565656}
|
||||
fg:
|
||||
active:
|
||||
gradient:
|
||||
- {stop: 0, color: 0x316BA6}
|
||||
- {stop: 0.5, color: 0x99CEFF}
|
||||
- {stop: 1, color: 0x316BA6}
|
||||
critical:
|
||||
gradient:
|
||||
- {stop: 0, color: 0xFF3333}
|
||||
- {stop: 0.5, color: 0xFFB8B8}
|
||||
- {stop: 1, color: 0xFF3333}
|
Loading…
Reference in New Issue