You are not logged in.

#1701 2022-06-25 06:06:59

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,558
Website

Re: Show us your conky

^That looks OK to me, but... conky people?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#1702 2022-06-28 21:05:37

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Show us your conky

rwyarbrough wrote:

I posted my calendar conky script in the Scripts, Tutorials & Tips» Conky - Calendars / Clocks / Time section. Should I move it here or leave it there?

I want to post my clock conky
https://rwyarbrough.homelinux.net/Scree … -37-26.png
and want to select the correct area.

Personally I'd add it to the Conky - Calendars / Clocks / Time section as it does fall under the "/ Time" slot.

Nice I like it.

EDIT: Two problems: Your links do not work in your calendar post.

Last edited by Sector11 (2022-06-28 21:12:13)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1703 2022-06-28 22:28:36

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Show us your conky

Hasn't really changed; goes back to the #! days:

2022-06-28-1656455166.png


You must unlearn what you have learned.
    -- yoda

Offline

#1704 2022-06-29 20:00:26

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

Here my openweathermap conky with my Free API key

i modify the "Alfirk conky" & i added a few script (10) in total That are 11 scripts who are running

- wind scripts (2)
- hours scripts (4)
- days scripts  (4)

as we say in our region " c'est une vrai usine @ gaz"  "it's a real gas factory " & the best is that for my fisrt conky with raw data & jq i have no errors in terminal.

I think that a great conkystador master could simplify it a lot.

Capture-d-cran-2022-06-29-21-44-56.png


Voila.

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#1705 2022-07-01 04:08:23

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Show us your conky

Sector11 wrote:

Personally I'd add it to the Conky - Calendars / Clocks / Time section as it does fall under the "/ Time" slot.

Ok, Thank you

Sector11 wrote:

Nice I like it.

Thanks! You know me and nixie tubes and steampunk gauges!

Sector11 wrote:

EDIT: Two problems: Your links do not work in your calendar post.

Corrected, they should work now.

Thanks again.

Robert

Offline

#1706 2022-07-06 23:08:21

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Show us your conky

Here is my conky for my main Ubuntu System. I have several other VM instances of Windows, Ubuntu, and Slackware for different purposes. I just use one Tube Clock and the 3 small info widgets on the right for the others so I will know what system I am on and the most important "specs" for memory, cpu, and drive use.

Conky Desktop

TubeClocks

conkycalendar

conky info

Last edited by rwyarbrough (2022-07-07 01:42:08)

Offline

#1707 2022-09-13 14:43:58

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

@loutch,

comment s'appelle cette 'police icon' et où puis-je la trouver ?
7OcYZzy.png

Offline

#1708 2022-09-14 14:51:49

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

Keine  polizei icons big_smile   schau hier



iconsloutch


@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#1709 2022-09-14 17:38:15

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

Merci, loutch.
Je ne veux pas de la police chez moi !  8)

Comme tu peux le voir, j'ai presque fini.
Les valeurs sunrise et sunset ne me semblent pas praticables, ce que fournit ici openweather. Cela n'a pas de sens pour l'heure réelle. Je vais les supprimer.

Mais tu as raison, c'est un petit jeu avec l'API.  big_smile

I7JOjHYt.png
-----------------------
Thank you, loutch.
I don't want the police in the house!  8)

As you can see, I'm pretty much done.
The sunrise and sunset values don't seem practical to me, which is what openweather provides here. It does not make sense for the actual time. I will remove that again.

You are right though, a little gimmick with the API.   big_smile

Offline

#1710 2022-09-15 08:42:07

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

Hier in mein conky für die sonne

${execi 300 date -d "@$(jq -r .sys.sunrise ~/.conky/Alfirk/raws/rawcurrent)" +%H:%M\ %P}

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#1711 2022-09-15 10:03:40

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

@loutch, mon ami, BINGO !  ]:D

C'est absolument génial. Ça le fait avec moi :

date -d "@$(jq -r .sys.sunrise ~/.cache/weather.json)" +%H:%M\ %P
06:44 

Comme le dit Sector11, @loutch est un Conky-Superman. big_smile
Merci beaucoup.

Offline

#1712 2022-09-16 14:14:42

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

7057RHwt.png

There are two conky.

The left one is my version of the BL-flame-conky from @damo.
The image should be in every BL installation under $HOME/.conky/images.

.conkyrc

conky.config = {
-- Simple moveable image Conky
-- Written by damo <damo@bunsenlabs.org> Jan 2016
	own_window = true,
	own_window_type = 'normal', --desktop',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager', --sticky',
	own_window_colour = '#000000',
	own_window_class = 'Conky',
	own_window_title = 'BunsenLabs Flame Conky',
--own_window_argb_visual = true,
--own_window_argb_value = 20,
	minimum_width = 280, minimum_height = 280, --517,
	maximum_width = 280,

	gap_x = 60,
	gap_y = 60,
	alignment = 'bottom_left', --right',

	use_xft = true,
	font = 'monofur:bold:size=9',
	xftalpha = 1,
	override_utf8_locale = true,

	draw_shades = false,
	default_shade_color = '#000000',
	draw_outline = false,
	default_outline_color = '#000000',

	draw_borders = false,
	border_inner_margin = 5,
	border_outer_margin = 0,
	border_width = 2,
	background = true,
	no_buffers = true,
	imlib_cache_size = 0,
	double_buffer = true,

	update_interval = 3,
--flame.png -p 70,5 -s 250x400
};

conky.text = [[
${image ~/Public/conkyblflame/BL-Orb-Flame.png -p 100,20 -s 180x180}
${voffset 200}${alignr}${font Birdman:size=18}[ beryllium ]
${alignr}${font Birdman:size=10}The art work Distribution${font}
${alignr}INSTALL ${exec ls -ld /lost+found | cut -c30-41}
]];

The right conky is based on an idea from @loutch, it uses weather data from openweather.
This requires:
- the own city_id
- the personal API key

- the script weather.sh from Closebox73 with the own city_id and API key
weather.sh

#!/bin/bash

# Closebox73
# This script is to get weather data from openweathermap.com in the form of a json file
# so that conky will still display the weather when offline even though it doesn't up to date

# you can use this or replace with yours
api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# get your city id at https://openweathermap.org/find and replace
city_id=xxxxxxx

url="api.openweathermap.org/data/2.5/weather?id=${city_id}&appid=${api_key}&cnt=5&units=metric&lang=en"
curl ${url} -s -o ~/.cache/weather.json

- the script weather-text-icon from Closebox73
weather-text-icon

#!/bin/bash

# I create this scripts to show weather icon with text icon
# and take data from json file, so it can use offline
# the font i use weather icons font from http://erikflowers.github.io/weather-icons/
# to get weather.json file i use another script
# Closebox73

# icon font based openweathermap.org data
ICON_01D=""
ICON_01N=""
ICON_02D=""
ICON_02N=""
ICON_03D=""
ICON_03N=""
ICON_04D=""
ICON_04N=""
ICON_09D=""
ICON_09N=""
ICON_10D=""
ICON_10N=""
ICON_11D=""
ICON_11N=""
ICON_13D=""
ICON_13N=""
ICON_50D=""
ICON_50N=""

WEATHER_ICON=$(cat ~/.cache/weather.json | jq -r '.weather[0].icon')

if [[ "${WEATHER_ICON}" = *01d* ]]; then
    echo "${ICON_01D}"
elif [[ "${WEATHER_ICON}" = *01n* ]]; then
    echo "${ICON_01N}"
elif [[ "${WEATHER_ICON}" = *02d* ]]; then
    echo "${ICON_02D}"
elif [[ "${WEATHER_ICON}" = *02n* ]]; then
    echo "${ICON_02N}"
elif [[ "${WEATHER_ICON}" = *03d* ]]; then
    echo "${ICON_03D}"
elif [[ "${WEATHER_ICON}" = *03n* ]]; then
    echo "${ICON_03N}"
elif [[ "${WEATHER_ICON}" = *04d* ]]; then
    echo "${ICON_04D}"
elif [[ "${WEATHER_ICON}" = *04n* ]]; then
    echo "${ICON_04N}"
elif [[ "${WEATHER_ICON}" = *09d* ]]; then
    echo "${ICON_09D}"
elif [[ "${WEATHER_ICON}" = *09n* ]]; then
    echo "${ICON_09N}"
elif [[ "${WEATHER_ICON}" = *10d* ]]; then
    echo "${ICON_10D}"
elif [[ "${WEATHER_ICON}" = *10n* ]]; then
    echo "${ICON_10N}"
elif [[ "${WEATHER_ICON}" = *11d* ]]; then
    echo "${ICON_11D}"
elif [[ "${WEATHER_ICON}" = *11n* ]]; then
    echo "${ICON_11N}"
elif [[ "${WEATHER_ICON}" = *13d* ]]; then
    echo "${ICON_13D}"
elif [[ "${WEATHER_ICON}" = *13n* ]]; then
    echo "${ICON_13N}"
elif [[ "${WEATHER_ICON}" = *50d* ]]; then
    echo "${ICON_50D}"
elif [[ "${WEATHER_ICON}" = *50n* ]]; then
    echo "${ICON_50N}"
	fi

- the icons from @loutch
- the configuration(s)
1.10

-- pkill -xf "conky -c /pad/to/conky" &
-- Idea @loutch  ---> https://forums.bunsenlabs.org/viewtopic.php?pid=123027#p123027
-- Config @unklar 2022-09-15
conky.config = {
	background = true,

	use_xft = true,
	font = 'Liberation Sans:size=9',
	xftalpha = 1,

	update_interval = 1.0,
	double_buffer = true,
	total_run_times = 0,
	no_buffers = true,	
	uppercase = false,
	cpu_avg_samples = 1,
	net_avg_samples = 1,
	override_utf8_locale = true,
	use_spacer = 'none',

	own_window = true,
	own_window_type = 'normal', --override',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager', --sticky,
	own_window_transparent = true,
	own_window_title = 'conkyrc',

	draw_shades = false, --true,
	draw_outline = false, --true,
	draw_borders = false,
	draw_graph_borders = false,
	stippled_borders = 0,
	border_inner_margin = 0,
	border_width = 1,

	default_color = 'white',
	default_shade_color = 'black',
	default_outline_color = 'black',

-- Minimum size of text area
	minimum_width = 280, minimum_height = 220,
	maximum_width = 280,
	gap_x = 350,
	gap_y = 50,

--alignment = 'top_left',
	alignment = 'bottom_left',
--alignment = 'bottom_right',

	text_buffer_size = 4096,
--${goto 15}Temperatur : ${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.temp' | awk '{print int($1+0.5)}')} °C
--${goto 15}Feels Like: ${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.feels_like' | awk '{print int($1+0.5)}')} °C
};

conky.text = [[
${texeci 1200 ~/.conky/loutch/weather.sh}
${goto 15}${font Abel:bold:size=11}${execpi 600 cat ~/.cache/weather.json | jq -r '.name'}
${goto 15}${font Abel:size=11}${execpi 600 cat ~/.cache/weather.json | jq -r '.weather[0].description' | sed "s|\<.|\U&|g"}
${voffset -50}${goto 120}${font Bebas Neue:size=18}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.temp' | awk '{print int($1+0.5)}')}°${goto 185}${font feather:size=60}${execpi 600 ~/.conky/loutch/weather-text-icon}
${voffset -90}${goto 15}${font Abel:size=8}Wind speed :${image ~/.conky/loutch/icons/wind.png -p 90,60 -s 19x19}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq '.wind.speed')} m/s
${goto 15}Wind gust :${image ~/.conky/loutch/icons/wind-2.png -p 90,75 -s 20x20}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq '.wind.gust')} m/s
${goto 15}Wind deg :${image ~/.conky/loutch/icons/wind_rose-2.png -p 90,92 -s 18x18}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq '.wind.deg')} °${goto 160}${execpi 600 $HOME/.conky/loutch/weather-wind-dir}
${goto 15}Humidity :${image ~/.conky/loutch/icons/humidity.png -p 90,107 -s 19x19}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq '.main.humidity')} %
${goto 15}sunrise :${image ~/.conky/loutch/icons/sunrise.png -p 90,125 -s 18x18}${goto 120}${execpi 600 date -d "@$(jq -r .sys.sunrise ~/.cache/weather.json)" +%H:%M\ %P}
${goto 15}sunset :${image ~/.conky/loutch/icons/sunset.png -p 90,142 -s 18x18}${goto 120}${execpi 600 date -d "@$(jq -r .sys.sunset ~/.cache/weather.json)" +%H:%M\ %P}
${goto 15}Clouds :${image ~/.conky/loutch/icons/clouds.png -p 90,157 -s 18x18}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.clouds.all')} %
${goto 15}Pressure :${image ~/.conky/loutch/icons/pressure.png -p 90,173 -s 18x18}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.pressure')} mb
${goto 15}Visibility :${image ~/.conky/loutch/icons/visibility.png -p 90,190 -s 18x18}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.visibility')} m${font}
${voffset -75}
]];

1.9

# pkill -xf "conky -c /pad/to/conky" &
# Idea @loutch  ---> https://forums.bunsenlabs.org/viewtopic.php?pid=123027#p123027
# Config @unklar 2022-09-15
	background yes

	use_xft yes
	xftfont Liberation Sans:size=9
	xftalpha 1

	update_interval 1
	double_buffer yes
	total_run_times 0
	no_buffers yes
	uppercase no
	cpu_avg_samples 1
	net_avg_samples 1
	override_utf8_locale yes
	use_spacer none

	own_window yes
	own_window_type normal  #override
	own_window_hints undecorated,below,skip_taskbar,skip_pager
	own_window_transparent yes
	own_window_title conkyrc

	draw_shades no
	draw_outline no
	draw_borders no
	draw_graph_borders no
	stippled_borders 0
	border_inner_margin 0
	border_width 1

	default_color white
	default_shade_color black
	default_outline_color black

#Minimum size of text area
	minimum_size 280 220
	maximum_width 280
	gap_x 350
	gap_y 50

#alignment top_left
	alignment bottom_left
#alignment bottom_right

	text_buffer_size = 4096,
#${goto 15}Temperatur : ${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.temp' | awk '{print int($1+0.5)}')} °C
#${goto 15}Feels Like: ${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.feels_like' | awk '{print int($1+0.5)}')} °C


TEXT
${texeci 1200 ~/.conky/loutch/weather.sh}
${goto 15}${font Abel:bold:size=11}${execpi 600 cat ~/.cache/weather.json | jq -r '.name'}
${goto 15}${font Abel:size=11}${execpi 600 cat ~/.cache/weather.json | jq -r '.weather[0].description' | sed "s|\<.|\U&|g"}
${voffset -50}${goto 120}${font Bebas Neue:size=18}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.temp' | awk '{print int($1+0.5)}')}°${goto 185}${font feather:size=60}${execpi 600 ~/.conky/loutch/weather-text-icon}
${voffset -90}${goto 15}${font Abel:size=8}Wind speed :${image ~/.conky/loutch/icons/wind.png -p 90,60 -s 19x19}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq '.wind.speed')} m/s
${goto 15}Wind gust :${image ~/.conky/loutch/icons/wind-2.png -p 90,75 -s 20x20}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq '.wind.gust')} m/s
${goto 15}Wind deg :${image ~/.conky/loutch/icons/wind_rose-2.png -p 90,92 -s 18x18}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq '.wind.deg')} °${goto 160}${execpi 600 $HOME/.conky/loutch/weather-wind-dir}
${goto 15}Humidity :${image ~/.conky/loutch/icons/humidity.png -p 90,107 -s 19x19}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq '.main.humidity')} %
${goto 15}sunrise :${image ~/.conky/loutch/icons/sunrise.png -p 90,125 -s 18x18}${goto 120}${execpi 600 date -d "@$(jq -r .sys.sunrise ~/.cache/weather.json)" +%H:%M\ %P}
${goto 15}sunset :${image ~/.conky/loutch/icons/sunset.png -p 90,142 -s 18x18}${goto 120}${execpi 600 date -d "@$(jq -r .sys.sunset ~/.cache/weather.json)" +%H:%M\ %P}
${goto 15}Clouds :${image ~/.conky/loutch/icons/clouds.png -p 90,157 -s 18x18}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.clouds.all')} %
${goto 15}Pressure :${image ~/.conky/loutch/icons/pressure.png -p 90,173 -s 18x18}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.main.pressure')} mb
${goto 15}Visibility :${image ~/.conky/loutch/icons/visibility.png -p 90,190 -s 18x18}${goto 120}${execpi 600 (cat ~/.cache/weather.json | jq -r '.visibility')} m${font}
${voffset -75}

and, fun with it.  smile

PS: I could see it again, the accuracy of the data from openweather is not given for my location.
    This weather service is also used by Husqvarna and in this software (unfortunately not changeable).
    They can NOT keep up with accuweather or Wunderground.   tongue

Edit, The fonts used: https://workupload.com/file/RGATkrmucQA
Edit2, 1.10 and 1.9 configurations adjusted and the Icones

Last edited by unklar (2022-09-18 08:06:45)

Offline

#1713 2022-09-17 07:49:56

ceeslans
Member
Registered: 2015-09-30
Posts: 195

Re: Show us your conky

Thanks @unklar, really appreciate you sharing this stylish openweather report conky.
k5XgTrzt.png
Don't want to sound ungrateful (far from it), but I kind of miss the weather direction. Any idea how to transform the ".wind.deg" value to 'NEWS' format?

Online

#1714 2022-09-17 08:54:14

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

Good question @ceeslans.  wink

I think I saw this somewhere once, maybe I can find it again - or, loutch has an idea.

Offline

#1715 2022-09-17 14:27:15

ceeslans
Member
Registered: 2015-09-30
Posts: 195

Re: Show us your conky

I wrote a simple script to transform '.wind.deg' values to NEWS format.
save it in ~/.conky/loutch/ dir, make it executable and call it in conky with : ${execpi 600 $HOME/.conky/loutch/weather-wind-dir}

weather-wind-dir

#!/bin/bash

# This script will transform the .wid.deg data in ~/.cache weather.json file
# transforms wind degrees (1-360 dgr) to wind direction (in NEWS format)

WIND_DEG=$(cat ~/.cache/weather.json | jq '.wind.deg')

if [[ $WIND_DEG -le 11 ]]; then
	echo "N"
elif [[ $WIND_DEG -le 33 ]]; then
	echo "NNE"
elif [[ $WIND_DEG -le 56 ]]; then
	echo "NE"
elif [[ $WIND_DEG -le 78 ]]; then
	echo "ENE"
elif [[ $WIND_DEG -le 101 ]]; then
	echo "E"
elif [[ $WIND_DEG -le 123 ]]; then
	echo "ESE"
elif [[ $WIND_DEG -le 146 ]]; then
	echo "SE"
elif [[ $WIND_DEG -le 168 ]]; then
	echo "SSE"
elif [[ $WIND_DEG -le 191 ]]; then
	echo "S"
elif [[ $WIND_DEG -le 213 ]]; then
	echo "SSW"
elif [[ $WIND_DEG -le 236 ]]; then
	echo "SW"
elif [[ $WIND_DEG -le 258 ]]; then
	echo "WSW"
elif [[ $WIND_DEG -le 281 ]]; then
	echo "W"
elif [[ $WIND_DEG -le 303 ]]; then
	echo "WNW"
elif [[ $WIND_DEG -le 326 ]]; then
	echo "NW"
elif [[ $WIND_DEG -le 348 ]]; then
	echo "NNW"
elif [[ $WIND_DEG -le 360 ]]; then
	echo "N"
else
	echo "??"

fi 

icon is a png version of /usr/share/icons/Papirus-Dark/16x16/actions/compass.svg
updated screen grab:
36LkXvyt.png

Last edited by ceeslans (2022-09-17 16:05:48)

Online

#1716 2022-09-17 18:05:43

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

Gs3DWbdt.png

That's brilliant, ceeslans.  ]:D   Thanks!

I don't like the .svg icon so much. I have a few icons of the wind rose here. But, unfortunately the .png's are all black.

What was the terminal command to 'convert' from imagemagick to to white?   8o

Offline

#1717 2022-09-17 19:16:22

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Show us your conky

How about a little black&white one?

${image /media/5/Conky/images/vents/bw.wind.rose.sm.png -p 50,465 -s 100x100}
${image /media/5/Conky/images/vents/bw.wind.rose.png -p 00,465 -s 16x16}

The actual size is 200x200
bw-wind-rose-sm.png


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1718 2022-09-17 19:26:50

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Show us your conky

What was the terminal command to 'convert' from imagemagick to to white?

Now I see this.


Found here:

The -negate option replaces each pixel with its complementary color. The -channel RGB option is necessary as of ImageMagick 7 to prevent the alpha channel (if present) from being negated. (Thanks to @yoya for this insight!)

convert /media/5/Conky/images/vents/00.white.solid.test.png -channel RGB -negate 00.w.s.t.png

00.white.solid.test.png is white
00.w.s.t.png is black

Or: GIMP → Color → Invert
I'm a tpyo knig so: GIMP → Color → Invert is much easier wink


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1719 2022-09-18 07:00:57

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

That's it! big_smile
I am once a freak of the console/terminal.  cool

Thank you my friend, you know best how it is with getting older. I wish you good health.

DboDDD9t.png

The black_withe Icons. I'm glad I have you guys!

Offline

#1720 2022-09-18 07:23:37

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

Guys i made a same script to have wind direction & wind speed in km/h .

#!/bin/bash

# Modifié par Loutch le 27-05-22

rm $HOME/.conky/Alfirk/vent

deg=$(jq --raw-output '.wind.deg' $HOME/.conky/Alfirk/raws/rawcurrent)
  # N 348.75 - 11.25
  if [[ "${deg}" -ge 348 ]] || [[ "${deg}" -le 11 ]];  then
    echo "N" > $HOME/.conky/Alfirk/vent
  # NNE 11.25 - 33.75
  elif [[ "${deg}" -gt 11 ]] && [[ "${deg}" -lt 34 ]];  then
    echo "NNE" >> $HOME/.conky/Alfirk/vent
  # NE 33.75 - 56.25
  elif [[ "${deg}" -ge 34 ]] && [[ "${deg}" -lt 56 ]]; then
    echo "NE" >> $HOME/.conky/Alfirk/vent
  # ENE 56.25 - 78.75
  elif [[ "${deg}" -ge 56 ]] && [[ "${deg}" -lt 78 ]]; then
    echo "ENE" >> $HOME/.conky/Alfirk/vent
  # E 78.75 - 101.25
  elif [[ "${deg}" -ge 78 ]] && [[ "${deg}" -lt 101 ]]; then
    echo "E" >> $HOME/.conky/Alfirk/vent
  # ESE 101.25 - 123.75
  elif [[ "${deg}" -ge 101 ]] && [[ "${deg}" -lt 123 ]]; then
    echo "ESE" >> $HOME/.conky/Alfirk/vent
  # SE 123.75 - 146.25
  elif [[ "${deg}" -ge 123 ]] && [[ "${deg}" -lt 146 ]]; then
    echo "SE" >> $HOME/.conky/Alfirk/vent
  # SSE 146.25 - 168.75
  elif [[ "${deg}" -ge 146 ]] && [[ "${deg}" -lt 168 ]]; then
    echo "SSE" >> $HOME/.conky/Alfirk/vent
  # S 168.75 - 191.25
  elif [[ "${deg}" -ge 168 ]] && [[ "${deg}" -lt 191 ]]; then
    echo "S" >> $HOME/.conky/Alfirk/vent
  # SSW 191.25 - 213.75
  elif [[ "${deg}" -ge 191 ]] && [[ "${deg}" -lt 213 ]]; then
    echo "SSO" >> $HOME/.conky/Alfirk/vent
  # SW 213.75 - 236.25
  elif [[ "${deg}" -ge 213 ]] && [[ "${deg}" -lt 236 ]]; then
    echo "SO"  >> $HOME/.conky/Alfirk/vent
  # WSW 236.25 - 258.75
  elif [[ "${deg}" -ge 236 ]] && [[ "${deg}" -lt 258 ]]; then
    echo "OSO" >> $HOME/.conky/Alfirk/vent
  # W 258.75 - 281.25
  elif [[ "${deg}" -ge 258 ]] && [[ "${deg}" -lt 281 ]]; then
    echo "O" >> $HOME/.conky/Alfirk/vent
  # WNW 281.25 - 303.75
  elif [[ "${deg}" -ge 281 ]] && [[ "${deg}" -lt 303 ]]; then
    echo "ONO" >> $HOME/.conky/Alfirk/vent
  # NW 303.75 - 326.25
  elif [[ "${deg}" -ge 303 ]] && [[ "${deg}" -lt 326 ]]; then
    echo "NO" >> $HOME/.conky/Alfirk/vent
  # NNW 326.25 - 348.75
  elif [[ "${deg}" -ge 326 ]] && [[ "${deg}" -lt 348 ]]; then
    echo "NO" >> $HOME/.conky/Alfirk/vent
  else
    echo "N/A"
  fi


num1=$(jq --raw-output '.wind.speed' $HOME/.conky/Alfirk/raws/rawcurrent)
num2=3.6

ans=$(bc -l <<<"$num1*$num2")

echo $ans >> $HOME/.conky/Alfirk/vent

Here in conky

${offset 150}${voffset 4} ${execi 590 sed -n '1p' $HOME/.conky/Alfirk/vent}  
${offset 150}${voffset 4} ${execi 600 sed -n '2p' $HOME/.conky/Alfirk/vent | awk '{print int($1+0.5)}'} km/h

here my vent file

N          "wind direction"
11.124  "wind speed in km/h



@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

Board footer

Powered by FluxBB