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

Conky Helps and Stuff

Message
Author
User avatar
asqwerth
Forum Guide
Forum Guide
Posts: 2915
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#11 Post by asqwerth » Thu Apr 26, 2018 11:44 pm

Wow. The weather code is one thing (teobigusgeekus' scripts are always reliable and I've been using his old version for a few conkies), but when combined with that glossy background and HTC icons.... :number1:

I'll certainly check it out when I have the time.
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
KoO
Forum Regular
Forum Regular
Posts: 201
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#12 Post by KoO » Fri Apr 27, 2018 12:16 am

I added Quodlibet to my conky..
Image

#QUODLIBET
${alignc}${font Open Sans:Bold:size=10}${color}/// ~~~ ${color #0066CC} QUODLIBET ${color} ~~~ \\\${font}
${alignc} Artist${if_existing /home/koo/.config/quodlibet/current}
${alignc}${color #F0FF00}${exec quodlibet --print-playing "<artist>"}${color}

${alignc} Album
${alignc}${color #F0FF00}${exec quodlibet --print-playing "<album>"}${color}

${alignc} Song
${alignc}${color #F0FF00}${exec quodlibet --print-playing "<title>"}${color}
${endif}

--------------------
If you use this code. You will need to change the path.../home/koo/.config/quodlibet/current
Da Main Box
MX17.1 Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO M2 250 GB , Samsung EVO SSD 500 GB , GTX 970 , Tascam US 2x2 , XD5 Cerwin-Vega Speakers , M50X Headphones.

User avatar
male
Forum Regular
Forum Regular
Posts: 137
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#13 Post by male » Wed May 02, 2018 5:21 pm

asqwerth, thank you very much for your good words.

only, because of the conky enthusiasm, here again another configuration with the weather script of Teo :bagoverhead:
mx_3.jpg
above,

Code: Select all

#https://forums.bunsenlabs.org/viewtopic.php?pid=1545#p1545
# pkill -xf "conky -c /home/male/1_accuweather/.conkyrc_1_images_wind_2015" &
# realization, Script and Conky_V1.10  TeoBigusGeekus
# accessories Sector11
# modification, compilation unklar 15-10-2016
# Create own window instead of using desktop (required in nautilus)
        background yes
	own_window yes
	own_window_type normal
	own_window_transparent yes
        own_window_class Conky
#own_window_colour 000000
        own_window_argb_visual yes
        own_window_argb_value 240	
	own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
	double_buffer yes

# fiddle with window
	use_spacer right
	use_xft yes

# Update interval in seconds
	update_interval 3

# Minimum size of text area
	minimum_size 300 300  # w|h
        maximum_width 300

	override_utf8_locale yes

# Draw shades?
	draw_shades yes

# Text stuff
	draw_outline yes
	draw_borders no
# font freesans -12
        use_xft yes
	font Arial:size=9
	uppercase no

# Stippled borders?
	stippled_borders 3

# border margins
	border_inner_margin 9
	border_outer_margin 0

# border width
	border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
	default_color cbcbcb

#own_window_colour brown
#own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
	alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
	gap_x 30
	gap_y 30

	imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen

#--LUA--#
lua_load ~/LUA/draw-bg.lua

TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}\
${image $HOME/1_accuweather/images/base2.png -p -1,35 -s 335x120}${image $HOME/1_accuweather/images/base2.png -p -1,235 -s 335x70}${image $HOME/1_accuweather/images/base2.png -p -1,345 -s 335x48}\
${font Arial:size=12}${color ffe595}WEATHER ${color ff8c00}${hr 2}$color${execi 500 bash $HOME/1_accuweather/1_accuweather -f2015}${font}
${image $HOME/1_accuweather/forecast_2015/forecast_0.png -p -35,25 -s 250x150}${font Arial:size=11}${goto 170}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond|cut -c1-20}
${execpi 600 sed -n '1p' $HOME/1_accuweather/aktualisiert}${goto 170}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond|cut -c21-40}
${font Arial:size=22}${goto 170}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}° (${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°)${font}${image $HOME/1_accuweather/forecast_2015/wind_0.png -p 180,70 -s 80x80}

 ${goto 170}${execpi 600 sed -n '5p' $HOME/1_accuweather/curr_cond}${goto 250}${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond|awk '{print $1}'}
${goto 250}${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond|awk '{print $2}'}


${color ffe595}HUMIDITY: $color${alignr 20}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}${goto 170}${color ffe595}PRESSURE: $color${alignr -3}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond} 
${color ffe595}UV INDEX: $color${alignr 45}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond} ${goto 170}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '10p' $HOME/1_accuweather/curr_cond} 
${color ffe595}DEW POINT: $color${alignr 65}${execpi 600 sed -n '12p' $HOME/1_accuweather/curr_cond}°${goto 170}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '13p' $HOME/1_accuweather/curr_cond}
${color ffe595}SUN R/S: $color${alignr 30}${execpi 600 sed -n '23p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '24p' $HOME/1_accuweather/curr_cond}${goto 170}${color ffe595}MOON R/S: ${alignr}$color${execpi 600 sed -n '25p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '26p' $HOME/1_accuweather/curr_cond}
${color ffe595}SUN DURAT.: $color${alignr 27}${execpi 600 sed -n '16p' $HOME/1_accuweather/curr_cond}${goto 170}${color ffe595}MOON DURAT.: $color${alignr}${execpi 600 sed -n '20p' $HOME/1_accuweather/curr_cond}
${hr 1}
${goto 25}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}${goto 125}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}${goto 225}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}$color${font}${image $HOME/1_accuweather/forecast_2015/forecast_1.png -p 0,250 -s 83x50}${image $HOME/1_accuweather/forecast_2015/forecast_2.png -p 100,250 -s 83x50}${image $HOME/1_accuweather/forecast_2015/forecast_3.png -p 200,250 -s 83x50}

${goto 75}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°${goto 175}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${goto 275}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°
${goto 75}/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°${goto 175}/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${goto 275}/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°

${font Arial:size=8}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c1-17}${goto 110}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c1-17}${goto 220}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c1-17}
${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c18-34}${goto 110}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c18-34}${goto 220}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c18-34}
${hr 1}
${color ffe595}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}${goto 90}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}${goto 165}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days}${goto 245}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days}$color${image $HOME/1_accuweather/forecast_2015/forecast_4.png -p 10,360 -s 50x30}${image $HOME/1_accuweather/forecast_2015/forecast_5.png -p 85,360 -s 50x30}${image $HOME/1_accuweather/forecast_2015/forecast_6.png -p 160,360 -s 50x30}${image $HOME/1_accuweather/forecast_2015/forecast_7.png -p 235,360 -s 50x30}

${goto 65}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${goto 142}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${goto 219}${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°${goto 295}${execpi 600 sed -n '8p' $HOME/1_accuweather/last_days}°
${goto 65}/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${goto 142}/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${goto 219}/${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}°${goto 295}/${execpi 600 sed -n '9p' $HOME/1_accuweather/last_days}°
${voffset -20}

in the middle - a Conky in the infrared radar range of Europe


below, the Mx-logo with a continuous calendar

Code: Select all

# pkill -xf "conky -q -c /home/male/S11_and_mobilediesel/bottom_conkyrc" &
# by Sector11 - 14 Aug 2011 
# Modifikation unklar - 2015


background yes
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager  #,sticky
own_window_title S11-Cal-br
own_window_class S11-Cal-br

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 140


double_buffer yes
use_spacer right

uppercase no
stippled_borders 0
border_width 0
default_outline_color black
default_shade_color black
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
border_inner_margin 5
border_outer_margin 0

default_color DCDCDC #220 220 220    Gainsboro
color0 8FBC8F #143 188 143    DarkSeaGreen
color1 778899 #119 136 153    LightSlateGray
color2 FF8C00 #255 140   0    DarkOrange
color3 7FFF00 #127 255   0    Chartreuse
color4 FFA07A #255 160 122    LightSalmon
color5 FFDEAD #255 222 173    NavajoWhite
color6 41679E #  0 191 255    DeepSkyBlue--> 00BFFF
color7 00FFFF #  0 255 255    Cyan
color8 FFFF00 #255 255   0    Yellow
color9 B22222 #178  34  34    FireBrick

text_buffer_size 510 # 256 is minimum
no_buffers yes
short_units yes
pad_percents 2

imlib_cache_size 0
gap_x 25           ## left &right
gap_y 75         ## up & down

minimum_size 300 0 ## width, height
#maximum_width 400   ## make this equal to minimum size width

alignment br

use_xft yes
xftfont Droid Sans Mono:bold:size=7
#  xftfont Santana:bold:size=8
#xftfont WenQuanYi Macro Hei Mono:bold:size=8
#xftfont WenQuanYi Zen Hei Mono:bold:size=8
xftalpha 1.0
override_utf8_locale yes

###  LUA Settings  ###########################################################
#lua_load ~/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 5 0 0 0 0 0x000000 0.4
#######################################################  End LUA Settings  ###
update_interval 2  #3200 ## 12 hours


TEXT
#${lua conky_draw_bg 5 0 0 0 0 0x000000 0.6}
${voffset 20}${image /home/male/Logos/MX-logo.png -p 120,7 -s 60x46}${voffset -10}\
${goto 200}${color7}${font Birdman:size=40}mx${color}${voffset -9}${font Birdman:size=49}17${font}\


${voffset 3}${goto 120}${execp /home/male/S11/S11_and_mobildiesel/week_2.sh}\
${voffset -5}${goto 75}${font Birdman:size=25}${color7}${time %a}${goto 255}${time %b}${color}${font}\
${font digitalk:bold:size=12}${goto 125}${color8}${time %C}${goto 225}${time %y}${color}${font}${voffset -10} 
the script from mobilediesel week_2.sh

Code: Select all

#!/bin/bash
# by: mobilediesel

font=("\${voffset -10}\${font digitalk:size=4}" "\${voffset -0}\${font digitalk:size=8}" "\${voffset -0}\${font digitalk:size=12}" "\${voffset -3}\${font digitalk:size=30}\${color 00FFFF}" "\${voffset -15}\${font digitalk:size=12}" "\${voffset -4}\${font digitalk:size=7}" "\${voffset -2}\${font digitalk:size=4}")
color=("" "" "" "\${color}" "" "" "")

for i in $(seq -3 3); do
echo -n "${font[$[i+3]]}$(date '+%d' -d "$i days")${color[3]}\${offset 3}"
done 
take your time... :lipsrsealed:
You do not have the required permissions to view the files attached to this post.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 21793
Joined: Wed Jul 19, 2006 6:13 am

Re: Conky Helps and Stuff

#14 Post by Jerry3904 » Wed May 02, 2018 5:26 pm

Very fine!
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 5706
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#15 Post by Eadwine Rose » Thu May 03, 2018 3:29 am

Oh wow.. love that!!
MX-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.111 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

linwinux

Re: Conky Helps and Stuff

#16 Post by linwinux » Thu May 03, 2018 4:27 am

That's the nicest conky I've seen yet. :happy: Is it possible to remove the seconds from the time? Does it always look like that, or is it transparent so it adapts automatically to whatever background the user has on their screen? I noticed that you have the weather showing up for several days which implies the utilization of a specific location. Is it fairly easy to change the weather locale per person and their location? And where/how would the script have to be implemented, to have this show up with the other conky themes in MX Linux?
Sorry about all of the questions. I don't know anything about conky, except that it has useful information and looks cool. :p

.

User avatar
asqwerth
Forum Guide
Forum Guide
Posts: 2915
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#17 Post by asqwerth » Thu May 03, 2018 5:16 am

Even more amazing than the last one, @male.
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
male
Forum Regular
Forum Regular
Posts: 137
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#18 Post by male » Thu May 03, 2018 2:03 pm

Your thanks go to Sector11, from whom I learned all this. :number1:
linwinux wrote:Is it possible to remove the seconds from the time?
This time is not included in the original script. I inserted it to see the last update of the data in Conky.
Does it always look like that, or is it transparent so it adapts automatically to whatever background the user has on their screen?
The transparency depends on this -->Pit_stop
I noticed that you have the weather showing up for several days which implies the utilization of a specific location. Is it fairly easy to change the weather locale per person and their location?
The own location is to be determined by entering the city on http://accuweather.com Copy the resulting browser line into the script from line 152. Teo's location Kastoria is to comment out (#).
And where/how would the script have to be implemented, to have this show up with the other conky themes in MX Linux?
There are many ways to start a Conky. The easiest way is to start the desktop environment autostart. Here for example my entries in the startup script of antiX under Fluxbox.

Code: Select all

...
sleep 2 && compton &
sleep 6 && conky -c ~/.conkyrcx40 &
#sleep 8 && conky -c ~/dk75_S11/ncal_awk.conkyrc &
sleep 8 && conky -c /DATEN/Abgleich/Conky/Conky-Kalender/2016_S11.conkyrc &
sleep 10 && conky -c ~/1_accuweather/.conkyrc_1_weatherfont_simpler &
...
Crazy Conky users, who want to make more than 10 Conky's appear with the system start, can use the package wmctrl and the ingenious script of Sector11.

Code: Select all

#!/bin/bash

killall conky

# Start with low sleep on highest desktop
# Increase sleep as desktop lowers to insure the conky is running before changing desktops.

# on desktop 4 only | no sticky
#	Use: wmctrl -s 3


# on desktop 3 only | no sticky# on desktop 4 only | no sticky
#(wmctrl -s 2) &
#	(sleep 25 && wmctrl -s 2 && conky -q -c /home/male/v9000/conky_weather) &
	(sleep 2 && wmctrl -s 2 && conky -q -c /home/male/Live_and_rock/conkyrc) &
#	(sleep 1 && wmctrl -s 2 && conky -q -c /media/5/Conky/S12/S12_time_R.conky) &

# on desktop 2 only | no sticky
#(wmctrl -s 1)
	(sleep 20 && wmctrl -s 1 && conky -q -c /home/male/1c_accuweather_images_hourly/.conkyrc_1c) &
#	(sleep 7 && wmctrl -s 1 && conky -q -c /media/5/Conky/S11_Dates.conky) &

# on desktop 1 only | no sticky
#	(sleep 11 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_thin_r_side.conky) &
#	(sleep 11.5 && wmctrl -s 0 && conky -q -c /media/5/Conky/1b2_accuweather_conkyweather_font/conkyrc_1b2_int_s11_thin) &
#	(sleep 11 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_Star_Clock_2.conky) &

#	(sleep 10 && wmctrl -s 0 && conky -q -c /media/5/Conky/1b2_accuweather_conkyweather_font/S11_1b2_Forecast_tm.conky) &
#	(sleep 10 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_thin_r2_side.conky) &
#	(sleep 10 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_thin_l2_side.conky) &

	(sleep 40 && wmctrl -s 0 && conky -q -c /home/male/Owaage/conky_25.12.2010/conkyrc) &
	(sleep 40 && wmctrl -s 0 && conky -q -c /home/male/wun/conky_configs/wunrci) &
	(sleep 40 && wmctrl -s 0 && conky -q -c /home/male/4_Moon/.conkyrc_4_Moon_S11_V1) &
#	(sleep 11 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_VNSTAT_2.conky) &
# on all desktops | sticky
#	(sleep 12 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_MD_Cal-br.conky) &
#	(sleep 13 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_DateTime_br.conky) &
#	(sleep 13 && wmctrl -s 0 && conky -q -c /media/5/Conky/Eagle.conky) &

#	(sleep 13 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_BAR.conky) &
#	(sleep 13 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_UVI.conky) &
#	(sleep 13 && wmctrl -s 0 && conky -q -c /media/5/Conky/1b2_accuweather_conkyweather_font/S11_Weather_BAR.conky) &

#	(sleep 16 && wmctrl -s 0 && conky -q -c /media/5/Conky/S11_Email_01.conky) &

exit 0
I thank you all. ;)

User avatar
KoO
Forum Regular
Forum Regular
Posts: 201
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#19 Post by KoO » Thu May 03, 2018 3:49 pm

@male
So glad your here I have learnt lots from you..
As a big plus for MX you don't even have to use compton.You can just use xfwm for (xfce) Compositor.Work fine for system wide transparency.

http://i68.tinypic.com/106m1sk.jpg
Da Main Box
MX17.1 Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO M2 250 GB , Samsung EVO SSD 500 GB , GTX 970 , Tascam US 2x2 , XD5 Cerwin-Vega Speakers , M50X Headphones.

User avatar
KoO
Forum Regular
Forum Regular
Posts: 201
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#20 Post by KoO » Thu May 03, 2018 11:14 pm

Here is a Good place to learn about conky.
https://arcolinux.com/category/arcolinux/design/conky/
Da Main Box
MX17.1 Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO M2 250 GB , Samsung EVO SSD 500 GB , GTX 970 , Tascam US 2x2 , XD5 Cerwin-Vega Speakers , M50X Headphones.

Post Reply

Return to “Software / Configuration”