Skip to main content

Conky with Python

These days i was playing around with conky and python. So i created a module in python for file monitoring which i embedded in conky. You can find the source code and the installation instructions in the github link.

The list_of_files text file contains the absolute path of the files you want to monitor.

You should set as you wish the HOURS variable in scripts/hash_calc.py. This is the time interval (number of hours) after the last change that the module will notify you about the change in the file.

In order to monitor the specified files you should have read privileges. Also, take care of update_interval because frequent md5sum calculation may increase the load of your system.

It looks like this:

-Anastasios

Comments

Popular posts from this blog

100 Maps

Stick Veterans has only recently reached the "100 maps milestone", a feat for which I need to thank you guys.


Stick Veterans (or "I never thought this moment would come")

A personal project of mine based on the Stick Soldiers series, a project I first posted about 2 years ago, has finally seen the light with its first public version being uploaded on Gamejolt and Itch.io.


Stick Veterans online: Good news & Bad news

After loads of work, online multiplayer for Stick Veterans seems to be progressing very well. In fact, it is nearly complete, as showing in recent tests.

Today I ran the first playtest with 3 people; we connected over Hamachi, a free VPN solution, and it pretty much went smoothly (except for some non-critical bugs).

Bad news is that LAN connections might be the only thing supported, with little hope for worldwide online games. I already mentioned that in the game's web pages (Itch.io post / Gamejolt post) but I shall lay down the whole story here.


In commercial games, online multiplayer is achieved by putting up dedicated 24/7 servers (preferably in various locations throughout the world) to which the players connect.

In non-commercial games (like Stick Veterans), we have to make do without servers, as they cost money (non-trivial amounts of it). As such, we simply allow any player to act as a server themselves, and other players connect to them. This is called peer-to-peer netwo…