:bar_chart: A simple Conky script entirely built in LUA
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Samuel FORESTIER a6f1782433 Updates image preview in README 2 weeks ago
LICENSE Initial commit 2 years ago
README.md Updates image preview in README 2 weeks ago
conky Code styles, minor optimizations and updates the README's image preview 1 year ago
script.lua Shortens "Kernel release" with "Kernel" 2 months ago

README.md

SimpleConkyScript

Horloge's Desktop

Installation

# Debian example procedure
sudo aptitude install conky-all hddtemp lm-sensors lsb-release wget x11-utils luarocks
sudo luarocks install luaposix
sudo sensors-detect --auto
sudo systemctl enable --now hddtemp.service
# Universal section
mkdir ~/.conky/
cd ~/.conky/
git clone https://git.forestier.app/HorlogeSkynet/SimpleConkyScript.git

You’ll have to add some automatic operations for available packages updates and public IP features :

# crontab -e

… add the following text at the end of the file :

PATH=/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
0 */2 * * * aptitude -o Debug::NoLocking=true update > /dev/null && echo “n” | aptitude -o Debug::NoLocking=true upgrade | grep “packages upgraded” | cut -d ‘ ’ -f 1 > /tmp/updatesAvailable.txt
*/15 * * * * wget -qO /tmp/myIP.txt https://ident.me/

Usage

$ conky -c ~/.conky/SimpleConkyScript/conky

Frequently asked questions

How can I (easily) tweak it to fit with my configuration ?

In the top of the script.lua file, you may change global values and parameters in order to get Conky variables focus on the good things.
In the conky file, you’ll find the Conky’s settings. There is the bare minimum, and you can understand everything easily. You may also change the gaps (GAP_X and GAP_Y), they are here to center Conky’s frame on your desktop.
For custom paths to specific files, just get into the affected functions (too bad, you and me surely don’t have the same laptop / OS :frowning:) by reading error log in the console :wink:

How can I add (or remove) elements from the screen ?

Go to the end of the file (the penultimate function), and here you’ll see each element currently loaded. You already know what you have to do to remove one (or many) of them, and in order to add one of yours, you’ll only have to create a new object like the ones in the top file, and call a generic function with your new object as parameter !
Of course, you can open an issue, I’d be pleased to help you building your own script.

How can I get the same background image ?

There it is !

My hard disk temperature is not displayed !

Yeah it happens sometimes when the hddtemp daemon is not properly configured.

Just run (and leave almost each entry with their default value) :

# dpkg-reconfigure hddtemp

Acknowledgments

  • To NAERNON for the code structure, design, and ideas
  • To Nelis Oostens for his clock’s code, and the LUA section of Conky’s wiki