From 2091952c42d2ba4d8f488fc76ca713a1bf1fffca Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 4 Jun 2026 11:50:11 +0300 Subject: [PATCH] conky: partially remake config based on Fedora defaults and wayland --- conf/conky/conky.conf | 113 ++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 65 deletions(-) diff --git a/conf/conky/conky.conf b/conf/conky/conky.conf index 77ce1bd0..cf70276a 100644 --- a/conf/conky/conky.conf +++ b/conf/conky/conky.conf @@ -1,38 +1,29 @@ -# SPDX-FileCopyrightText: 2005 Brenden Matthews, Philip Kovacs, et. al. -# -# SPDX-License-Identifier: GPL-3.0-only +-- SPDX-FileCopyrightText: 2005 Brenden Matthews, Philip Kovacs, et. al. +-- +-- SPDX-License-Identifier: GPL-3.0-only -# SPDX-FileCopyrightText: 2004 Hannu Saransaari and Lauri Hakkarainen -# -# SPDX-License-Identifier: BSD-3-Clause +-- SPDX-FileCopyrightText: 2004 Hannu Saransaari and Lauri Hakkarainen +-- +-- SPDX-License-Identifier: BSD-3-Clause -- vim: ts=4 sw=4 noet ai cindent syntax=lua ---[[ -Conky, a system monitor, based on torsmo -Any original torsmo code is licensed under the BSD license - -All code written since the fork of torsmo is licensed under the GPL - -Please see COPYING for details - -Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen -Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) -All rights reserved. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program. If not, see . -]] +-- Conky, a system monitor https://github.com/brndnmtthws/conky +-- +-- This configuration file is Lua code. You can write code in here, and it will +-- execute when Conky loads. You can use it to generate your own advanced +-- configurations. +-- +-- Try this (remove the `--`): +-- +-- print("Loading Conky config") +-- +-- For more on Lua, see: +-- https://www.lua.org/pil/contents.html +-- +-- Conky Lua API: https://conky.cc/lua +-- Configuration settings: https://conky.cc/config_settings conky.config = { alignment = 'top_left', background = true, @@ -41,12 +32,13 @@ conky.config = { default_color = '#dedede', default_outline_color = '#dedede', default_shade_color = '#dedede', + double_buffer = true, draw_borders = true, draw_graph_borders = true, draw_outline = false, draw_shades = false, - use_xft = true, - font = 'DejaVu Sans Mono:size=8', + extra_newline = false, + font = 'Atkinson Hyperlegible Mono:size=12', gap_x = 6, gap_y = 28, minimum_height = 5, @@ -54,58 +46,49 @@ conky.config = { net_avg_samples = 2, no_buffers = true, out_to_console = false, + out_to_ncurses = false, out_to_stderr = false, - extra_newline = false, + out_to_wayland = true, + out_to_x = false, own_window = true, - own_window_transparent = false, - own_window_argb_visual = true, - own_window_argb_value = 95, own_window_class = 'Conky', - own_window_type = 'override', + own_window_type = 'desktop', + own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager', + show_graph_range = false, + show_graph_scale = false, stippled_borders = 0, - update_interval = 5, + update_interval = 5.0, uppercase = false, use_spacer = 'none', - show_graph_scale = false, - show_graph_range = false, - double_buffer = true + use_xft = true, } +-- Variables: https://conky.cc/variables conky.text = [[ $nodename - $sysname $kernel on $machine $hr ${color grey}Uptime:$color $uptime -${color grey}Frequency (in MHz):$color $freq -${color grey}Frequency (in GHz):$color $freq_g ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} ${color grey}CPU Usage:$color $cpu% ${cpubar 4} -${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes +${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes $hr ${color grey}File systems: - / $color${fs_used /}/${fs_size /} ${fs_bar 6 /} -${color grey} /home $color${fs_used /home}/${fs_size /home} ${fs_bar 6 /} -${color grey}HDD Temperature:${color} $hddtemp °C +/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /} +${color grey}/home $color${fs_used /home}/${fs_size /home} ${fs_bar 6 /} ${color grey}Networking: - eth0 Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0} - ${color grey}wlan0 Up:$color ${upspeed wlan0} ${color grey} - Down:$color ${downspeed wlan0} - ${color grey}yggdrasil Up:$color ${upspeed yggdrasil} ${color grey} - Down:$color ${downspeed yggdrasil} +eth0 Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0} +${color grey}wlan0 Up:$color ${upspeed wlan0} ${color grey} - Down:$color ${downspeed wlan0} +${color grey}yggdrasil Up:$color ${upspeed yggdrasil} ${color grey} - Down:$color ${downspeed yggdrasil} +$hr +${color grey}Name PID CPU% MEM% +${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} +${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} +${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} +${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} +${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5} $hr ${color grey}Sensors${color} -${execpi 60 sensors|grep °} +${execpi 60 sensors|grep °|grep -v "0.0"} ${execpi 60 sensors|grep fan} -$hr -${color grey}YLE${color} ${rss https://feeds.yle.fi/uutiset/v1/recent.rss?publisherIds=YLE_UUTISET 15 item_titles 2} -$hr -${color grey}YLE News${color} ${rss https://feeds.yle.fi/uutiset/v1/recent.rss?publisherIds=YLE_NEWS 15 item_titles 2 } -$hr -${color grey}Pirátské listy${color} ${rss https://www.piratskelisty.cz/rss/ 15 item_titles 2} -$hr -${color grey}Pirátské listy Aktuality${color} ${rss https://www.piratskelisty.cz/rss/aktuality 15 item_titles 2 } -$hr -${color grey}\#Esperanto${color} ${rss https://nitter.snopyta.org/search/rss?kind=custom&text=%23Esperanto 15 item_titles 1 } -$hr -${color grey}\#Esperanto${color} ${rss https://esperanto.masto.host/tags/esperanto.rss 600 item_titles 1 } -$hr -${color grey}TODO: Get S.M.A.R.T. data here somehow! inxi?${color} ]]