From 66f7780de85dd11ab5f28aec232716ba3dbffc4f Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sat, 30 Sep 2023 01:09:27 -0400 Subject: [PATCH] ADD work laptop conky --- .files/conky-configs/work-laptop.dhall | 96 ++++++++++++++++++++++++++ dot_config/conky.dhall.tmpl | 2 + 2 files changed, 98 insertions(+) create mode 100644 .files/conky-configs/work-laptop.dhall diff --git a/.files/conky-configs/work-laptop.dhall b/.files/conky-configs/work-laptop.dhall new file mode 100644 index 0000000..5b93a1b --- /dev/null +++ b/.files/conky-configs/work-laptop.dhall @@ -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 diff --git a/dot_config/conky.dhall.tmpl b/dot_config/conky.dhall.tmpl index 844cc23..22b9154 100644 --- a/dot_config/conky.dhall.tmpl +++ b/dot_config/conky.dhall.tmpl @@ -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 -}}