conky | Light-weight system monitor for X Wayland
kandi X-RAY | conky Summary
kandi X-RAY | conky Summary
Conky is a free, light-weight system monitor for X, that displays any kind of information on your desktop. Grab the latest release from GitHub.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of conky
conky Key Features
conky Examples and Code Snippets
Community Discussions
Trending Discussions on conky
QUESTION
This question here seems to tangentially touch upon it but I cannot get it to work. Here is my LUA file:
...ANSWER
Answered 2022-Feb-10 at 18:45I've found it easier to have a lua script pass conky a string that can be parsed by a lua_parse
object that then generates the intended object rather than trying to pass a value to the intended object.
In the case of random fonts, I'd do something like the following, which worked when tested.
Lua file:
QUESTION
I'm using grep to filter certain lines from a log file and present them to my conky config. The log file is /var/log/messages. The entries pertain to UFW block events.
The trouble is that I only care about certain strings of each line. I can grep the only the UFW blocks, but the line is too long to fit in conky. Even if conky were not part of the equation, learning to only show pieces of a log line would benefit me in future.
I have got somewhere by using the following:
grep -Ewoh '(IN=([a-z]){4,})|((DST|SRC)=(([0-9]){1,3}\.){3,}([0-9]){1,3})|(PROTO=[a-z]{2,6})|((SPT|DPT)=[0-9]{1,5})' /var/log/messages
This ugly-looking regex is filtering for entries (like) this:
...ANSWER
Answered 2022-Feb-07 at 05:29If I understand correctly, instead of the list provided by grep -o
, you want to remove non matching strings, and print only matching strings, in place. Ie. in the lines and order they appear.
Using gawk
's FPAT
:
QUESTION
I'm trying to separate the output of ps -eo pid,command,size --sort -size
into a list of dictionaries. I have managed to do so but when there is a space in the output of 'COMMAND', the rest of the output gets transferred to 'SIZE'. I've been stuck trying to figure out how to remove the arguments after the command.
Here's my code:
...ANSWER
Answered 2021-Oct-06 at 20:37You should probably use psutil https://psutil.readthedocs.io/en/latest/ instead of trying to parse the output of ps.
To get the (almost) the same information as your ps command in the question you can try
QUESTION
Is there a way to make membar
and fs_bar
have gradient colors in conky? What I exactly need GREEN
when the usage is low, YELLOW
when mid-range, and RED
when there is high usage of memory and disk space.
ANSWER
Answered 2021-May-28 at 20:12The only way to do this easily is to write some code in lua
. If you search you should find many examples, such as this. It uses a highly parameterable bargraph function.
For something simple in pure conky, you can use if_match
to change the colour of the entire bar, eg:
QUESTION
I have followed the example from Casey's Conky Reference with Examples .
I modified it to have
...ANSWER
Answered 2021-Mar-16 at 15:55You need to add a 3rd argument to the template, and refer to it with \\3
. So you change it to:
QUESTION
I am using taskwarrior together with conky and to make the format look nicer, I want to modify, what information is actually given by taskwarrior. In particular, I do not want it to display the "Age" column of a task. Right now it looks like this:
...ANSWER
Answered 2021-Mar-04 at 18:37Add the following lines to the file ~/.taskrc
:
QUESTION
I use awesomewm and have a small conky configuration on top of my wallpaper with transparent background. Now i have the idea to change the behaviour of awesomewm to let this small area untouched. So when maximising a window (client?) or when arranging them, this small area must be completely free. I tried to add a second wibar on the right side, changed the width and made it transparent. But all i got was a transparent sidebar which shows the background but not the informations comming from conky.
Is it possible to stack two transparent components over the wallpaper? which configuration whould be the best? Is there a better way to reach my goal?
I use Manjaro with awesomewm. I can post configs if needed.
Thanks, Andreas
...ANSWER
Answered 2020-Sep-28 at 16:00If you want "true transparency", you need to run a composite manager like xcompmgr, compiz or compton/picom. These are just random examples and all links point to the arch wiki. On Xorg#Composite, it also lists unagi as a possibility, but the wiki does not have a page for it.
Without a composite manager, "fake transparency" is used. Transparency is simulated by taking the wallpaper and drawing that as the background of the wibox. From your description, it sounds like this is what you are seeing.
QUESTION
I'm trying to create widgets with Pycairo to monitor systems, like Conky. I'm trying to draw directly on X, using Cairo Surface with Xlib.
When I try to instantiate the cairo.XlibSurface() class, an error is returned:
...ANSWER
Answered 2020-Aug-27 at 23:23[not a complete answer] I have enough snippets that this might be more useful as an answer than as a comment. Sorry for not getting to the bottom of this.
The documentation for PyCairo XlibSurface itself only mentions it can be instantiated by certain calls to GTK - and I am not sure if that is the old bindings to GTK2 only . I could find a snippet to get me a Cairo context using GTK +3, but it seems it is not feasible, without resorting to ctypes, to go back from the Cairo context to the Surface it uses.
So, you basically will need to call Cairo's C cairo_xlib_surface_create
using Python ctypes, and find a way to create a Python cairo.XlibSurface instance using ctypes, from the pointer returned by the function above. That is the "missing link" that you probably have to findout in the pygtk legacy codebase, in C, and replicate with ctypes in the Python code.
As for the parameters needed for the cairo_xlib_surface_create
call on the first place, you likely can fetch them by using Python XLib -the snippet bellow gives you a Window GID and Python wrappers for the X Display and the Window:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install conky
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page