From 116ff5b8a39e6cd807f977a78779d3c9879dd6e5 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 1 Jun 2024 03:27:04 +0530 Subject: [PATCH] pull out the ancient conky config --- home/wm/addon/conky/conky.conf | 77 +++++++++++++++++++++++++++++++++ home/wm/addon/conky/default.nix | 6 +++ home/wm/addon/default.nix | 1 + 3 files changed, 84 insertions(+) create mode 100644 home/wm/addon/conky/conky.conf create mode 100644 home/wm/addon/conky/default.nix diff --git a/home/wm/addon/conky/conky.conf b/home/wm/addon/conky/conky.conf new file mode 100644 index 0000000..b31af4d --- /dev/null +++ b/home/wm/addon/conky/conky.conf @@ -0,0 +1,77 @@ +conky.config = { + alignment = 'top_right', + background = false, + border_width = 0, + border_inner_margin = 6, + border_outer_margin = 6, + cpu_avg_samples = 1, + default_color = 'white', + default_outline_color = 'black', + default_shade_color = 'black', + draw_borders = true, + draw_graph_borders = true, + draw_outline = true, + draw_shades = true, + use_xft = true, + font = 'FiraCode Nerd Font:size=12', + gap_x = 24, + gap_y = 48, + minimum_height = 9, + minimum_width = 16, + net_avg_samples = 2, + no_buffers = true, + out_to_console = false, + out_to_ncurses = false, + out_to_stderr = false, + out_to_x = false, + out_to_wayland = true, + extra_newline = false, + own_window = true, + own_window_argb_visual = true, + own_window_class = 'Conky', + own_window_transparent = false, + own_window_type = 'desktop', + own_window_argb_visual = true, + own_window_argb_value = 150, + stippled_borders = 0, + update_interval = 1.0, + uppercase = false, + use_spacer = 'none', + show_graph_scale = false, + show_graph_range = false, + double_buffer = true, +} + +conky.text = [[ +$hr +${font FiraCode Nerd Font Medium:size=16}System${font}$alignr$color$nodename ($machine) +${color grey}Distribution$alignr$color$distribution +${color grey}Kernel$alignr$color$sysname $kernel +$hr +${font FiraCode Nerd Font Medium:size=16}Battery${font}$alignr$color${battery_short} +${color grey}Full/Empty In$alignr$color$battery_time +${color grey}Uptime$alignr$color$uptime_short +$hr +${font FiraCode Nerd Font Medium:size=16}Resources${font} +${color grey}RAM${alignr}$color$mem ($memwithbuffers)${color grey} used of $color$memmax +${color grey}SWAP$alignr$color$swap${color grey} used of $color$swapmax +${color grey}CPU$alignr$color${cpu cpu0}% +${cpubar cpu1 6,100} ${cpubar cpu2 6,100} ${cpubar cpu3 6,100} ${cpubar cpu4 6,100} +${cpubar cpu5 6,100} ${cpubar cpu6 6,100} ${cpubar cpu7 6,100} ${cpubar cpu8 6,100} +$hr +${font FiraCode Nerd Font Medium:size=16}Storage${font} +${color grey}/boot$alignr$color${fs_free /boot}${color grey} free of $color${fs_size /boot} +${fs_bar 6 /boot} +${color grey}/mnt/system$alignr$color${fs_free /mnt/system}${color grey} free of $color${fs_size /mnt/system} +${fs_bar 6 /mnt/system} +$hr +${font FiraCode Nerd Font:size=14}I/O${font}$alignr${font FiraCode Nerd Font:size=8}(Read/Write)${font} +${color grey}/dev/nvme0n1 $alignr$color${diskio_read /dev/nvme0n1} / ${diskio_write /dev/nvme0n1} +$hr +${font FiraCode Nerd Font:size=14}Network${font}$alignr${font FiraCode Nerd Font:size=8}(Total/Rate)${font} +${color}WiFi +${color grey}Rx: ${alignr}$color${totaldown wlan0} (${downspeedf wlan0}KiB/s) +${color grey}Tx: ${alignr}$color${totalup wlan0} (${upspeedf wlan0}KiB/s) +$hr +]] + diff --git a/home/wm/addon/conky/default.nix b/home/wm/addon/conky/default.nix new file mode 100644 index 0000000..c5449d6 --- /dev/null +++ b/home/wm/addon/conky/default.nix @@ -0,0 +1,6 @@ +_: { + services.conky = { + enable = true; + extraConfig = builtins.readFile ./conky.conf; + }; +} diff --git a/home/wm/addon/default.nix b/home/wm/addon/default.nix index 857293c..e1ba0e4 100644 --- a/home/wm/addon/default.nix +++ b/home/wm/addon/default.nix @@ -1,5 +1,6 @@ { ... }: { imports = [ + ./conky ./hyprlock ./rofi ./swaync