Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

News about updates on package status for CR packages compiled for MEPIS 12.0
Message
Author
User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16580
Joined: Fri Dec 15, 2006 8:07 pm

MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#1 Post by Stevo » Tue Mar 15, 2016 9:40 pm

MX-Clocky 16.3.1 is now in the test repository.

Image
the included custom MX-Linux skin

Clocky is a desktop analog clock which uses python, and consumes much less CPU than cairo-clock. It can also display CPU and RAM use--in my screenshot below, replace the x after those numbers with %.
It also has a bar between that's displaying the CPU usage below the date.

What you have to do after install is go into /usr/share/clocky/skins and run the INSTALL.sh script for the skin you want to use. You can also copy the skins folder over to somewhere in your home folder and run the install scripts from there; that makes the skins much easier to tinker with, like renaming the skin.py file for my skin to just have the clock.

After the setup, it's under Accessories in Whisker menu and Utilities in KDE as MX-Clocky. You have to add it to the autostart apps in xfce in order for it to run, but KDE will remember it if you are having KDE restore the last session.

Clocky looks best with compositing on, but my grey rectangle mostly hides the black square when it's off. I also noticed some quirkiness in clicking it and changing a config setting, in that I had to do that twice to get it to stick, and then reload. It also seems to work best when stick to desktop is enabled; it can still be moved around by holding down the Alt key and dragging with the mouse, like all applications.

Here's a short video with more about its use. https://www.youtube.com/watch?v=PpFb7B5JcWs

v3g4n put up a screen shot with some of the included skins all running at once:

Image

User avatar
richb
Administrator
Posts: 17227
Joined: Wed Jul 12, 2006 2:17 pm

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#2 Post by richb » Tue Mar 15, 2016 9:52 pm

Is the X in CPU and Mem %?
Forum Rules
Guide - How to Ask for Help

Rich
SSD Production: MX 17.1
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB, 350 GB HD

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16580
Joined: Fri Dec 15, 2006 8:07 pm

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#3 Post by Stevo » Tue Mar 15, 2016 10:22 pm

richb wrote:Is the X in CPU and Mem %?
Yes, "%", I don't know if that's related to the font "Zero Twos 5" in the skin.py script (which means I have to install fonts-larabie-deco to provide that) I guess I'll need to experiment with some other fonts to see what happens.

Edit, no, still an "x" with different fonts. Does anybody here know Python?

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 8995
Joined: Wed Jul 12, 2006 1:42 am

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#4 Post by Adrian » Tue Mar 15, 2016 11:19 pm

Does anybody here know Python?
I'm sure it's pretty easy to fix, I wonder if you need to escape the character so instead of "X" try "\%"

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16580
Joined: Fri Dec 15, 2006 8:07 pm

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#5 Post by Stevo » Wed Mar 16, 2016 2:40 pm

It's line 32 in the skin.py file for the skin

Code: Select all

        _txt = "cpu %sx : mem %sx" % (_cx, _mx)
I can change %sx to %sn or other characters and the clock will use that, but not the % symbol or \%. Python must be interpreting that as a variable or something instead of part of the character string.

Edit: It seems more related to how python-gtk, thus pango, is interpreting that command.

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 8995
Joined: Wed Jul 12, 2006 1:42 am

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#6 Post by Adrian » Wed Mar 16, 2016 3:12 pm

Try %%

Code: Select all

        _txt = "cpu %s%% : mem %s%%" % (_cx, _mx)

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16580
Joined: Fri Dec 15, 2006 8:07 pm

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#7 Post by Stevo » Wed Mar 16, 2016 3:21 pm

Awesome, that worked! I'll revise those files and send up a new mx-clocky. I think it's stable enough to put in main.
Image

It seems the clocky python file has sections for displaying "net" and an alarm function, but no skins that I've found use those.

User avatar
mmikeinsantarosa
Forum Guide
Forum Guide
Posts: 2466
Joined: Thu May 01, 2014 10:12 am

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#8 Post by mmikeinsantarosa » Wed Mar 16, 2016 8:46 pm

'bout time :p
LT: MX17.1 Quad Core model: Intel Core i7-6820HQ Kernel: 4.16.0-12.1-liquorix-amd64 (64 bit)
DT: Intel(R) Core i5-3.1GHz Kernel~3.9-1-mepis64 x86_64

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16580
Joined: Fri Dec 15, 2006 8:07 pm

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#9 Post by Stevo » Sun Mar 20, 2016 3:47 pm

16.3.2 is in the main repo, with that % fix.

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16580
Joined: Fri Dec 15, 2006 8:07 pm

Re: MEPIS 12/MX 14 Community Repo: The MX-Clocky Thread

#10 Post by Stevo » Tue Mar 22, 2016 2:51 pm

Just sent 16.3.4 up to Tim for main. It adds his first-run autoconfigure from his 16.3.3, and
* Set default state of applet window as sticky.
* Replace broken Racing skin with Alien.
* Redo the clock face for MX-Linux skin with a better MX svg, install the
mx-icon.svg graphic to docs for any future user that want to customize.
So the MX icon graphic I used for the MX-Linux skin is in /usr/share/doc/mx-clocky if anyone wants to create more MX skins.

Post Reply

Return to “Package Status - 12.0 Beta”