Default conky on MX-19 Beta 1

Message
Author
User avatar
fehlix
Developer
Posts: 12623
Joined: Wed Apr 11, 2018 5:09 pm

Re: Default conky on MX-19 Beta 1

#11 Post by fehlix »

The current Conky PM/AM handling will not properly set the 12/24 hour and am/pm-display for those countries /locale :

Code: Select all

en_AU   : English locale for Australia
en_GB   : English locale for Britain
en_NZ   : English locale for New Zealand
es_NI   : Spanish locale for Nicaragua
es_PE   : Spanish locale for Peru
es_VE   : Spanish locale for Venezuela
he_IL   : Hebrew locale for Israel
is_IS   : Icelandic locale for Iceland
ja_JP   : Japanese language locale for Japan
ko_KR   : Korean locale for Republic of Korea
tr_TR   : Turkish locale for Turkey
zh_CN   : Chinese locale for Peoples Republic of China
zh_TW   : Chinese locale for Taiwan R.O.C.
Those locale do have within the LC_TIME defintion a PM/AM defintion but also a 24h defintion.
So I had adjusted the pmfix to not rely simply on existence on a "PM/AM"-definition,
but check the full "date-time" definition for existence of pm/am and 12h, resp.
Can somebody check for those locale above the time and am/pm display is now fixed.
Do place both below scripts into
~/.conky/MX-Cowon/ with the mentioned file names.
Below a fixed version of our current default Conky MX-Cowon_more_sys_small:
This:
~/.conky/MX-Cowon/MX-Cowon_more_sys_small

Code: Select all

######################
# - Conky settings - #
##################### 
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Dinreg:size=100
override_utf8_locale yes
text_buffer_size 2048
xftalpha 0.9

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type conky
own_window_transparent yes

own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 100

alignment top_right
gap_x 40
gap_y 40
minimum_size 220 220


#########################
# - Graphics settings - #
#########################
draw_shades no

default_color 025101
default_shade_color 1d1d1d
color0 ffffff
color1 0f0c03
color2 0f225d
color3 1c1911

#lua_load ~/.conky/conkybg.lua
#lua_draw_hook_pre conky_draw_bg

own_window_argb_value 0
own_window_argb_visual yes
own_window_colour 000000

lua_load ~/.conky/MX-Cowon/conky_hours.lua

TEXT
${voffset -20}${lua hours}
${color2}${offset 40}${voffset -100}${time %M}
${voffset -140}${offset 10}${font Roboto-Light:bold:size=12}${color2}${time %A} ${offset 10}${color2}${time %B %d}
${offset 150}${voffset -175}${font Roboto-Light:size=12}${color2}${lua AM_PM}
#system
${offset 0}${voffset 160}${font Roboto-Light:pixelsize=12}${offset 14}${color3}hdd ${offset 4}${color4}${fs_used_perc /}%${offset 4}${color3} mem ${offset 4}${color4}${memperc}%${offset 4} ${color3}cpu ${offset 4}${color4}${cpu cpu0}%
and a pmfix lua file:
~/.conky/MX-Cowon/conky_hours.lua

Code: Select all

function has_ampm()
    local handle = io.popen("locale  -k d_t_fmt | grep  -sqo -E '%r|%p|%I' && echo yes || echo no")
    local output = handle:read("*l")
    handle:close()
    return  output 
end

if has_ampm() == "yes" then
	ampm = true
else
	ampm = false
end

function conky_hours()
	if ampm then
		return os.date("%I")
    else
		return os.date("%H")
    end
end

function conky_ampm()
	if ampm then
		return os.date("%P")
    else
		return ''
    end
end

function conky_AMPM()
	if ampm then
		return os.date("%p")
    else
		return ''
    end
end

function conky_am_pm()
	return conky_ampm()
end

function conky_AM_PM()
	return conky_AMPM()
end

function conky_lang()
     return os.getenv("LANG")
end
 

User avatar
Jerry3904
Administrator
Posts: 23066
Joined: Wed Jul 19, 2006 6:13 am

Re: Default conky on MX-19 Beta 1

#12 Post by Jerry3904 »

I have placed your files into my local GitHub repo for mx-conky-data--thanks for all the work! I did not check whether those few locales are now correct, not much time here and I figure we will hear about it anyway if there are still problems.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Jerry3904
Administrator
Posts: 23066
Joined: Wed Jul 19, 2006 6:13 am

Re: Default conky on MX-19 Beta 1

#13 Post by Jerry3904 »

Picking up various comments that have been made
I've made a change to the conky rc files which means that they only work if you have compositing enabled (xfce or compton), but if so, they work better! These should be the only "own_window_" lines. own_window_color should be deleted.

Code: Select all

own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_class Conky
I haven't had time to carry this through and test it for this round, but will look at it for the next. Thanks.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Jerry3904
Administrator
Posts: 23066
Joined: Wed Jul 19, 2006 6:13 am

Re: Default conky on MX-19 Beta 1

#14 Post by Jerry3904 »

It looks OK but I question its color scheme of dark blue and green against that lighter blue portion of the default wallpaper. It's not that easy to see vs. if there was more color contrast. Colorblind people may have even more trouble trying to read it.
Not sure how to handle this. I myself like the fact that it is not highly visible, making it less intrusive. Going to leave it for now, thanks for the comment.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
dreamer
Posts: 884
Joined: Sun Oct 15, 2017 11:34 am

Re: Default conky on MX-19 Beta 1

#15 Post by dreamer »

Jerry3904 wrote: Mon Sep 02, 2019 5:01 pm
It looks OK but I question its color scheme of dark blue and green against that lighter blue portion of the default wallpaper. It's not that easy to see vs. if there was more color contrast. Colorblind people may have even more trouble trying to read it.
Not sure how to handle this. I myself like the fact that it is not highly visible, making it less intrusive. Going to leave it for now, thanks for the comment.
I think that wallpaper and Conky look superb. If you change it please leave that Conky as an alternative "MX-19 Beta 1" Conky on release ISO. Those Conkys hardly take up any space do they?
Note to self and others: SysVinit is a good option. However if you run into problems try with systemd first. This applies to AppImages, Flatpaks, GitHub packages and even some Debian packages.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Default conky on MX-19 Beta 1

#16 Post by JayM »

Jerry3904 wrote: Mon Sep 02, 2019 5:01 pm
It looks OK but I question its color scheme of dark blue and green against that lighter blue portion of the default wallpaper. It's not that easy to see vs. if there was more color contrast. Colorblind people may have even more trouble trying to read it.
Not sure how to handle this. I myself like the fact that it is not highly visible, making it less intrusive. Going to leave it for now, thanks for the comment.
No worries. I just have a hard time seeing anyway, and have a pet peeve against things like blue or green fonts against blue backgrounds. I've encountered websites like that. Either a different default wallpaper or the user selecting a different conky will fix it, and since this is only the first beta there's no guarantee that the current wallpaper will be the default one in the final release candidate, so...
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
towwire
Posts: 681
Joined: Fri Oct 15, 2010 12:15 pm

Re: Default conky on MX-19 Beta 1

#17 Post by towwire »

Beside one can always edit the conky and change the colors to their liking. If someone does like my brother with rotating backgrounds, there in no way to get colors that work for all the backgrounds.
It is easier to fight for one's principles then to live up to them.

User avatar
asqwerth
Developer
Posts: 7775
Joined: Sun May 27, 2007 5:37 am

Re: Default conky on MX-19 Beta 1

#18 Post by asqwerth »

towwire wrote: Mon Sep 02, 2019 11:03 pm ....If someone does like my brother with rotating backgrounds, there in no way to get colors that work for all the backgrounds.
*Raises my hand*

My wallpapers change every 7 minutes!
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Ghost67
Posts: 79
Joined: Sat Sep 27, 2014 5:04 am

Re: Default conky on MX-19 Beta 1

#19 Post by Ghost67 »

I like the new default conky. Usually I just toggle the conky off, but this one I think I'll keep on-screen. It's small enough to not be a distraction and doesn't overwhelm with superfluous information.
I have tailored the colours of it to complement my chosen background wallpaper using the eyedropper tool in MX Conky.

User avatar
asqwerth
Developer
Posts: 7775
Joined: Sun May 27, 2007 5:37 am

Re: Default conky on MX-19 Beta 1

#20 Post by asqwerth »

Ghost67 wrote: Tue Sep 03, 2019 2:51 am...
I have tailored the colours of it to complement my chosen background wallpaper using the eyedropper tool in MX Conky.
Hi, Ghost! Yes, I saw you changing the conky colours in your youtube series on the Beta1.

I also saw you attempt to change icon sets and wonder why the icons in the MX Tools window didn't change.

1. first, you may or may not have to close and reopen the MX Tools window to see the changes after an icon change. Otherwise, just scroll through the MX apps in Whisker Menu.

2. second, while the mx app icons are not hardwired per se, their .desktop files mainly point to mx-specific icon filenames.

So unless an icon theme has created their own icons with the same name (often that filename is just a symlink to one of their existing icons) or the mx filename is somehow recognised as equivalent to an existing icon, the MX app icons won't change when you apply that icon theme.

Moka and Numix Circle are established older icon sets (that I like a lot) that don't see much updates, if at all. So they won't have mx-specific icons.


As for which icon sets actually have mx-specific icons, see the Sardi and Surfn icon sets from Eric Dubois (of Arcolinux).

ZMA's icons do as well, amazingly since the time of MX15/16. See for example his Antu-universal icon theme:
https://www.gnome-look.org/content/show ... ent=176085

I'm not sure how well ZMA has kept up with changes in our MX app filenames (e.g. MX Defaultlook became MX-tweak) and additions of new MX apps, but I think at least some of the MX apps will still show up in their icon sets.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Post Reply

Return to “General”