Page 2 of 5

Re: Default conky on MX-19 Beta 1

Posted: Sun Sep 01, 2019 9:57 am
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
 

Re: Default conky on MX-19 Beta 1

Posted: Mon Sep 02, 2019 4:28 pm
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.

Re: Default conky on MX-19 Beta 1

Posted: Mon Sep 02, 2019 4:59 pm
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.

Re: Default conky on MX-19 Beta 1

Posted: Mon Sep 02, 2019 5:01 pm
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.

Re: Default conky on MX-19 Beta 1

Posted: Mon Sep 02, 2019 6:18 pm
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?

Re: Default conky on MX-19 Beta 1

Posted: Mon Sep 02, 2019 9:00 pm
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...

Re: Default conky on MX-19 Beta 1

Posted: Mon Sep 02, 2019 11:03 pm
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.

Re: Default conky on MX-19 Beta 1

Posted: Mon Sep 02, 2019 11:56 pm
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!

Re: Default conky on MX-19 Beta 1

Posted: Tue Sep 03, 2019 2:51 am
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.

Re: Default conky on MX-19 Beta 1

Posted: Tue Sep 03, 2019 3:20 am
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.