Conky 2019

Bureaux,conky et autres personnalisations esthétiques.
Avatar du membre
loutch
Messages : 482
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Conky 2019

Message par loutch »

Image

conky ROG UN mix de plusieurs conky ( de grand conkystador et de votre serviteur)

j'ais fait un pack est ici

https://drive.google.com/open?id=109_uF ... mjD9KAH6j9

le dossier 1_accuweather et 2_wunderground sont a extraire dans votre /home

le dossier rog dans le dossier ~/.conky



Image


conkys du haut


conky_bg

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 240,

	double_buffer = true,	
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_height = 165,
	minimum_width = 1920,
	gap_x = 0,
	gap_y = 0,

	border_inner_margin = 0,
	border_outer_margin = 0,
	--border_width = 0,

-- ------------------------- Font
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,

-- ------------------------- Other
	update_interval = 36000,

};


conky.text = [[
${image ~/.conky/ROGConky/bg7la.png}
]];
conky_systeme

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 240, 
	minimum_height = 165,
	maximum_width = 313,
	gap_x = 30,
	gap_y = 0,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = false,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------ Colors
	default_color = 'DCDCDC',
	color0 = '87CF3E',

-- ------------------------- Other
	update_interval = 1,

};

conky.text = [[
${voffset 25}${GOTO 50}${font}Système
${GOTO 50}${font}En service depuis: ${font Monofur:size=8}${uptime_short}${alignr}(${color0}${exec ~/.conky/ROGConky/scripts/uptime.sh}${color})
${goto 50}${execi 86400 lsb_release -si} : ${execi 86400 lsb_release -sr} - ${execi 86400 lsb_release -sc} sur $nodename
${goto 50}kernel :$kernel 
${font Monofur:size=8}${GOTO 50}${font}Processes: ${font Monofur:size=8}${processes} (${color0}${running_processes} ${color}running)
${GOTO 50}${font}Threads: ${font Monofur:size=8}${running_threads}
${GOTO 50}${font}Connections: ${font Monofur:size=8}${tcp_portmon 1 65535 count}

${GOTO 50}${font}GPU: ${font Monofur:size=8}${color red}${nvidia temp}${color}°C | ${font Monofur:size=8}${nvidia gpufreq}Mhz | ${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t}MiB
${image ~/.conky/ROGConky/img/ubuntu.png -p 0,15}
${image ~/.conky/ROGConky/img/gpu.png -p 0,100}
]];
conky_cpu

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 295,
	minimum_height = 165,
	maximum_width = 313,
	gap_x = 313,
	gap_y = 0,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = false,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------- Color
	default_color = 'DCDCDC',
	color0 = '87CF3E',
	color1 = 'DDDDDD',
	color2 = 'AAAAAA',
	color3 = '888888',

-- ------------------------- OTHER
	update_interval = 1,

	top_cpu_separate = false,
	cpu_avg_samples = 2,
	--top_name_verbose = false,

	template0 = [[${GOTO 50}${color\1}${top name \2}${alignr}${top cpu \2}%]],

	lua_load = '~/.conky/ROGConky/lua/cpu_graph.lua',
	lua_draw_hook_pre = 'main_graph',
};

conky.text = [[
${voffset 25}${GOTO 50}${font}CPU
${GOTO 50}${font}Avg use: ${font Monofur:size=8}${cpu cpu0}%   ${color red}${hwmon 0 temp 1}${color} °C ${alignr}${font}Freq: ${font Monofur:size=8}${freq_g} Ghz
${goto 50}Charge : $loadavg

${template0 0 1}
${template0 1 2}
${template0 2 3}
${template0 3 4}
${template0 3 5}
${image ~/.conky/ROGConky/img/cpu.png -p 0,15}
]];
conky ram

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 295,
	minimum_height = 165,
	maximum_width = 313,
	gap_x = 626,
	gap_y = 0,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = true,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------ Colors
	default_color = 'DCDCDC',
	color0 = '87CF3E',
	color1 = 'DDDDDD',
	color2 = 'AAAAAA',
	color3 = '888888',

-- ------------------------- Other
	update_interval = 5,

	template0 = [[${GOTO 50}${color\1}${top_mem name \2}${alignr}${top_mem mem \2}%]],

	--top_name_verbose = false,
	no_buffers = true,

      

};

conky.text = [[
${voffset 25}${GOTO 50}${font}RAM
${GOTO 50}${font}Usage: ${font Monofur:size=8}${memperc}% | ${mem}${font Monofur:size=7}${alignr}[+${buffers} +${cached}]
${voffset 27}${font Monofur:size=8}${template0 0 1}
${template0 1 2}
${template0 2 3}
${template0 3 4}
${template0 3 5}
${image ~/.conky/ROGConky/img/ram.png  -p 0,15 }
]];
conky_ssd

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 313,
	minimum_height = 165,
	maximum_width = 313,
	gap_x = 945,
	gap_y = 0,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = true,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------- Color
	default_color = 'DCDCDC',

--------------------------- OTHER
	update_interval = 1,

	lua_load = '~/.conky/ROGConky/lua/files_ring.lua',
	lua_draw_hook_pre = 'main',
};

conky.text = [[
${voffset 25}${GOTO 50}${font}File System
${GOTO 50}${font}SSD: ${font Monofur:size=8}${fs_used /}
${voffset 75}
${GOTO 50}${font}lecture: ${font Monofur:size=8}${diskio_read /dev/nvme0n1p3}${GOTO 200}${font}Ecriture: ${font Monofur:size=8}${diskio_write /dev/nvme0n1p3}
${image ~/.conky/ROGConky/img/ssd.png -p  0,15}
]];
conky_files

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 313,
	minimum_height = 165,
	maximum_width = 313,
	gap_x = 1227,
	gap_y = 0,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = true,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------- Color
	default_color = 'DCDCDC',

--------------------------- OTHER
	update_interval = 1,

	lua_load = '~/.conky/ROGConky/lua/files_ring2.lua',
	lua_draw_hook_pre = 'main',
};

conky.text = [[
${voffset 25}${GOTO 50}${font}File System
${GOTO 50}${font}HDD: ${font Monofur:size=8}${fs_used /mnt/9d01359b-9705-43f9-be12-4d6d7f28b12b}${GOTO 200}${font} Temp. ${color red}${execi 120 hddtemp -n /dev/sda} ${color}°C
${voffset 75}
${GOTO 50}${font}Lecture: ${font Monofur:size=8}${diskio_read /dev/sda}${GOTO 200}${font}Ecriture: ${font Monofur:size=8}${diskio_write /dev/sda}
${image ~/.conky/ROGConky/img/files2.png -p 0,15}
]];
conky_network

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	--background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 313,
	minimum_height = 165,
	maximum_width = 313,
	gap_x = 1515,
	gap_y = 0,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = true,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------- Color
	default_color = 'DCDCDC',


-- ------------------------- OTHER
	update_interval = 1,

	lua_load = '~/.conky/ROGConky/lua/net_graph.lua',
	lua_draw_hook_pre = 'main_graph',

};

conky.text = [[
${voffset 25}${GOTO 50}${font}Internet
${GOTO 50}${font}Public ip: ${font Monofur:size=8}${addr wlo1}
${voffset 85}${GOTO 50}${font}Reçu: ${font Monofur:size=8}${downspeed wlo1}${GOTO 200}${font}Envo.: ${font Monofur:size=8}${upspeed wlo1}
${font Monofur:size=8}${GOTO 200}${font}Sig: ${font Monofur:size=8}${wireless_link_qual_perc wlo1}%
${if_match "${wireless_link_qual_perc wlo1}"<"33"}${image ~/.conky/ROGConky/img/networklow.png -p 0,15 -s 45x45}${else}${if_match "${wireless_link_qual_perc wlo1}"<"66"}${image ~/.conky/ROGConky/img/networkmid.png -p 0,15}${else}${image ~/.conky/ROGConky/img/networkhigh.png -p 0,15}${endif}${endif}

]];
conkys du bas

conky_bg1

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 240,

	double_buffer = true,	
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_height = 165,
	minimum_width = 1920,
	gap_x = 0,
	gap_y = 880,

	border_inner_margin = 0,
	border_outer_margin = 0,
	--border_width = 0,

-- ------------------------- Font
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,

-- ------------------------- Other
	update_interval = 36000,

};


conky.text = [[
${image ~/.conky/ROGConky/bg7.png}
]];
conky_météo

Code : Tout sélectionner

conky.config = {
-- ------------------------- Windows Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
	own_window_argb_visual = true,
	own_window_argb_value = 0,

	double_buffer = true,
	background = true,

-- ------------------------- Position
	alignment = 'top_left',

	minimum_width = 1300,
	minimum_height = 165,
	maximum_width = 1300,
	gap_x = 626,
	gap_y = 870,

-- ------------------------- Font
	use_xft = true,
	xftalpha = 0.8,
	override_utf8_locale = true,

	draw_shades = true,
	default_shade_color = 'black',

	draw_borders = false,
	draw_outline = false,

	font = 'Monofur:bold:size=8',

-- ------------------------ Colors
	default_color = 'DCDCDC',
	color0 = '87CF3E',
	color1 = 'DDDDDD',
	color2 = 'AAAAAA',
	color3 = '888888',
        color7 = '#6495ee',
        color9 = 'red',

-- ------------------------- Other #${execi 3600 bash $HOME/1_accuweather/alertes.sh}
	update_interval = 1,

--	template0 = [[${GOTO 50}${color\1}${top_mem name \2}${alignr}${top_mem mem \2}%]],${template0 0 1} ${template0 1 2}

	--top_name_verbose = false,
	no_buffers = true,
lua_load = '~/.conky/lua/image.lua',

};

conky.text = [[
${execi 1800 bash $HOME/1_accuweather/1_accuweather -f2015}${execi 3500 bash $HOME/2_Wunderground_API/2_wun}
${voffset 1}${goto 16}${font GE Inspira:size=14:}Sarreguemines : ${font} ${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond} 
${goto 16}Temp.: ${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C   Res.: ${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C 
${voffset -16}
${goto 200}${font GE Inspira:size=8}Vent : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} 
${goto 200}Vitesse : ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 200}Préssion : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 200}Indice UV : ${execi 90 sed -n '9p' $HOME/1_accuweather/curr_cond} $font
${goto 16}Phase : ${execi 600  sed -n '6p' $HOME/2_Wunderground_API/Moon_Sun}

${goto 16}${execi 600  sed -n '2p' $HOME/2_Wunderground_API/Alertes}
${goto 16}${execi 602  sed -n '1p' $HOME/2_Wunderground_API/Alertes | cut -c1-70}
${goto 16}${execi 602  sed -n '1p' $HOME/2_Wunderground_API/Alertes | cut -c71-120}
    ${voffset -140}
${goto  300}${color7}${if_match "${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}" == "Min."}${else}${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}°${endif}${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/first_days}°\
${goto  450}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}\
${goto  600}${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}\
${goto  750}${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}\
${goto  900}${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}/${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}\
${goto 1050}${color7}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}\
${goto 1200}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}/${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}

${voffset 30}
${goto  300}${execi 90 sed -n '1p' $HOME/1_accuweather/first_days}\
${goto  450}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $2}'`}\
${goto  600}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}\
${goto  750}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $2}'`}\
${goto  900}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $2}'`}\
${goto 1050}${execi 3600 echo `date --date="5 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="5 day" | awk '{print $2}'`}\
${goto 1200}${execi 3600 echo `date --date="6 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="6 day" | awk '{print $2}'`}

${voffset -16}${font Liberation Sans:size=7}
${goto  270}${execi 90 sed -n '5p' $HOME/1_accuweather/first_days  | cut -c1-30}\
${goto  420}${execi 90 sed -n '10p' $HOME/1_accuweather/first_days | cut -c1-30}\
${goto  570}${execi 90 sed -n '15p' $HOME/1_accuweather/first_days | cut -c1-30}\
${goto  730}${execi 90 sed -n '20p' $HOME/1_accuweather/first_days | cut -c1-30}\
${goto  870}${execi 90 sed -n '25p' $HOME/1_accuweather/first_days | cut -c1-30}\
${goto 1020}${execi 90 sed -n '5p'  $HOME/1_accuweather/last_days  | cut -c1-30}\
${goto 1170}${execi 90 sed -n '10p' $HOME/1_accuweather/last_days  | cut -c1-30}
${goto  270}${execi 90 sed -n '5p' $HOME/1_accuweather/first_days  | cut -c31-55}\
${goto  420}${execi 90 sed -n '10p' $HOME/1_accuweather/first_days | cut -c31-55}\
${goto  570}${execi 90 sed -n '15p' $HOME/1_accuweather/first_days | cut -c31-55}\
${goto  730}${execi 90 sed -n '20p' $HOME/1_accuweather/first_days | cut -c31-55}\
${goto  870}${execi 90 sed -n '25p' $HOME/1_accuweather/first_days | cut -c31-55}\
${goto 1020}${execi 90 sed -n '5p'  $HOME/1_accuweather/last_days  | cut -c31-55}\
${goto 1170}${execi 90 sed -n '10p' $HOME/1_accuweather/last_days  | cut -c31-55}

${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 0 50 100 60}
${lua fDrawImage $HOME/1_accuweather/Wind1.png 150 50 45 45}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png  280 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_1.png  430 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png  580 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png  730 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png  880 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_5.png 1030 65 70 40}
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_6.png 1180 65 70 40}
${lua fDrawImage $HOME/2_Wunderground_API/Moon_phase.png 100 50 50 50}

${voffset -500}
]];
conky barographe

Code : Tout sélectionner

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 310, minimum_height = 120,
        maximum_width = 310,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 00,
	gap_y = 900,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',

color1 = 'green',
color2 = 'red',
color3 = '828200',
color4 = '323200',
 
};

conky.text = [[
${voffset 1}${goto 44}${font Ubuntu:style=Bold:size=10}Pression Atmospherique
${if_gw}${execi 1200 bash ~/.conky/ROGConky/barographe/barognuplot.sh}${endif}#
${image ~/.conky/ROGConky/barographe/graph.png -s 235x100 -p 00,10 -n}#
${font Ubuntu:style=Bold:size=7}#
 ${voffset 01}${goto 5}${color1} 40 ° ${goto 220}${color2}1040mb
 ${voffset 03}${goto 5}${color1} 20 ° ${goto 220}${color2}1020mb
 ${voffset 03}${goto 5}${color1}  0 ° ${goto 220}${color2}1000mb
 ${voffset 03}${goto 5}${color1}-10 ° ${goto 220}${color2} 980mb
 ${voffset 03}${goto 5}${color1}-20 ° ${goto 220}${color2} 960mb
 ${lua fDrawImage ~/.conky/ROGConky/barographe/base.png 19 19 200 77}
 ${lua fDrawImage ~/.conky/ROGConky/barographe/white.png 22 94 193 12}
 ${voffset -800}
]];
conky pression atmo 3 conky cause lua

Code : Tout sélectionner

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 170,
        maximum_width = 200,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 350,
	gap_y = 885,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',
 

color1 = 'D2CBC1',
color2 = 'red',
color3 = '6495ee',
color4 = 'B1ADA7',
color5 = '7B7870',
color6 = '3F3C36',
color7 = '000000',
 
};

conky.text = [[
 
${lua fDrawImage ~/.conky/ROGConky/baro/images/15.png   0 90 40 40}
${lua fDrawImage ~/.conky/ROGConky/baro/images/18.png   2 50 40 40}
${lua fDrawImage ~/.conky/ROGConky/baro/images/12.png  25 20 40 40}
${lua fDrawImage ~/.conky/ROGConky/baro/images/13.png  60  0 40 40}
${Lua fDrawImage ~/.conky/ROGConky/baro/images/3.png  110  0 40 40}
${Lua fDrawImage ~/.conky/ROGConky/baro/images/4.png  145 20 40 40}
${lua fDrawImage ~/.conky/ROGConky/baro/images/2.png  160 50 40 40}
${lua fDrawImage ~/.conky/ROGConky/baro/images/1.png  165 90 40 40}
${alignc}${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond} mb
${font Ubuntu:style=Bold:size=14}
${voffset -1}${goto 22}${color2}T${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond}° ${goto 140}${color3}R${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond}°

]];
conkyrc1

Code : Tout sélectionner

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 170,
        maximum_width = 200,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 350,
	gap_y = 880,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

--  lua_load = '~/.conky/lua/image.lua',
 lua_load = ' ~/.conky/baro/textwriting.lua',
 lua_draw_hook_post = 'draw_text',


color1 = 'D2CBC1',
color2 = 'red',
color3 = 'blue',
color4 = 'B1ADA7',
color5 = '7B7870',
color6 = '3F3C36',
color7 = '000000',
 
};

conky.text = [[

]];
conkyrc2

Code : Tout sélectionner

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=7',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 170,
        maximum_width = 200,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 350,
	gap_y = 880,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

--  lua_load = '~/.conky/lua/image.lua',
 lua_load = ' ~/.conky/baro/baro.lua',
 lua_draw_hook_pre = 'main',


color1 = 'D2CBC1',
color2 = 'red',
color3 = 'blue',
color4 = 'B1ADA7',
color5 = '7B7870',
color6 = '3F3C36',
color7 = '000000',
 
};

conky.text = [[

]];


Image
Modifié en dernier par loutch le sam. 6 juil. 2019 20:56, modifié 2 fois.
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Avatar du membre
arghlub
Administrateur du site
Messages : 9469
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Conky 2019

Message par arghlub »

Salut loutch et merci ;)

D'autres sujets à ce propos :
Nos conky 2017 | Nos conky 2018 | Conky version 1.10 | Nos bureaux 2019
;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 10 | MXlinux 19 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.1 | MXlinux 19.4 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 19 XFCE
─────( pour une informatique libre ! -membre de l' April.org )────────────────

Avatar du membre
loutch
Messages : 482
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Re: Conky 2019

Message par loutch »

arghlub a écrit :
sam. 6 juil. 2019 20:48
Salut loutch,

super si ça vient (pousse pas trop fort quand même :mrgreen: :arrow: :arrow: )

Pour les impatients, avant de rentrer dans le vif ...
Nos conky 2017 | Nos conky 2018 | Conky version 1.10
;)
Non on va commencer petit :D
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Avatar du membre
arghlub
Administrateur du site
Messages : 9469
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Conky 2019

Message par arghlub »

;) j'ai modif mon msg entre temps .....
merci à toi, pour avoir relancé ce topo ;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 10 | MXlinux 19 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.1 | MXlinux 19.4 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 19 XFCE
─────( pour une informatique libre ! -membre de l' April.org )────────────────

Avatar du membre
loutch
Messages : 482
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Re: Conky 2019

Message par loutch »

Le problème c'est qu'il est difficile de trouver de nouveau conky .

La plupart sont des conkys avec l'ancienne syntaxe qui on été transcrits dans la nouvelle avec plus ou moins la même chose .
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Avatar du membre
arghlub
Administrateur du site
Messages : 9469
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Conky 2019

Message par arghlub »

reste à être créatif....
faut prendre un feuille de papier en 16/9 et imaginer ce que l'on veut sur son bureau (quasiment tout est possible avec du lua)
ceci dit je ne suis pas très conquis conky .... (je ne contemple jamais mon bureau :l :l )

mais c'est toujours sympa de voir ce que font les autres (sans indiscrétion, cela ne nous regarde pas :D)


allez les copains/copines, à vos éditeurs de texte pour nous faire des conkys de folie !!!! ;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 10 | MXlinux 19 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.1 | MXlinux 19.4 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 19 XFCE
─────( pour une informatique libre ! -membre de l' April.org )────────────────

Avatar du membre
loutch
Messages : 482
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Re: Conky 2019

Message par loutch »

OUUUUUUUUAAAAAAAIS

J'EN VEUX PLEIN LA VUE



ok je suis déjà plus là []
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Avatar du membre
loutch
Messages : 482
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Re: Conky 2019

Message par loutch »

Image

Pour ceux qui comme moi n'ont pas la petite "lupiote" pour le pavé numérique (fait aussi Min et Maj et indicateur de bureau)
minuscule ou Majuscule
Image Pave numérique
numéro du bureau


Image

Image

conkyrc

Code : Tout sélectionner

conky.config = {
	background = false,
	use_xft = true,
	font = 'Liberation Sans:size=12',
	xftalpha = 0.8,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 20, minimum_height = 20,
        maximum_width = 60,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'bottom_right',
	gap_x = 10,
	gap_y = 00,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',

color1 = 'green',
color2 = 'red',
color3 = '828200',
color4 = '323200',
 
};

conky.text = [[
${execPi 2 ~/.conky/clavier/caps_num.sh}
${goto 10}${color ffffff}B${desktop}
]];

caps_num.sh

Code : Tout sélectionner

#!/bin/bash
caps=$(xset -q | grep -c "Caps Lock:   on")
num=$(xset -q | grep -c "Num Lock:    on")

function bottom_align(){
	if [ $caps -gt 0 ]; then
		echo "\${color red} Maj\${color}"
	else
		echo " min"
	fi
	if [ $num -gt 0 ]; then
		echo "\${color 6495ee} Num${color}"
	else
		echo " nv"
	fi
}

function top_align(){
	if [ $caps -gt 0 ]; then
		echo -n "\${color red} Maj\${color}"
	else
		echo -n " min "
	fi
	if [ $num -gt 0 ]; then
		echo "\${color 6495ee} Num${color}"
	else
		echo " nv"
	fi
}


#check alignment
alignbl=$(grep "alignment bottom_left" ~/.conky/clavier/conkyrc|grep -c "#")
alignbr=$(grep "alignment bottom_right" ~/.conky/clavier/conkyrc|grep -c "#")
if [ $alignbl -gt 0 ] && [ $alignbr -gt 0 ]; then
	top_align
else
	bottom_align
fi



Image
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Avatar du membre
arghlub
Administrateur du site
Messages : 9469
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Conky 2019

Message par arghlub »

rhaaaaaa, on est gâté !!! :ugeek:
merci loutch 8-) 8-)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 10 | MXlinux 19 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.1 | MXlinux 19.4 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 19 XFCE
─────( pour une informatique libre ! -membre de l' April.org )────────────────

Avatar du membre
loutch
Messages : 482
Enregistré le : lun. 13 juil. 2015 17:32
Localisation : Sarreguemines

Re: Conky 2019

Message par loutch »

Image

conky lune

le pack @ prendre ici

http://bit.ly/4_24-5-17

@ extraire dans votre home (pas le .conky)

Le conkyrc

Code : Tout sélectionner

conky.config = {
background = true,
use_xft = true,
font = 'Monofur:bold:size=7',
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
stippled_borders = 8,
border_inner_margin = 4,
alignment = 'top_left',
minimum_width = 500,
minimum_height = 500,
gap_x = 130,
gap_y = 230,
no_buffers = false,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = right,
text_buffer_size = 8192,
imlib_cache_size = 16384, 

default_outline_color = '000000',
color1 = '000000',
color2 = '000000',
color3 = '828200',
color4 = '323200',
lua_load = '~/.conky/lua/image.lua',

};

conky.text = [[
${font Monofur:bold:size=12}${color5}${voffset -9}Phases de la lune ${color}${texeci 9500 bash $HOME/4_Moon/moon_MoonGiant}
${alignc 40}${color5}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$2" "$3}'`}${color}${font}
${lua fDrawImage $HOME/4_Moon/-2.png 10 65 60 60}
${lua fDrawImage $HOME/4_Moon/-1.png 80 65 60 60}
${lua fDrawImage $HOME/4_Moon/0.png 157 35 90 90}
${lua fDrawImage $HOME/4_Moon/1.png 265 65 60 60}
${lua fDrawImage $HOME/4_Moon/2.png 340 65 60 60}
${voffset 40}
${alignc 60}${execpi 600 sed -n '7p' $HOME/4_Moon/raw-fr | awk '{print $1}'}
${alignc 60}${execpi 600 sed -n '7p' $HOME/4_Moon/raw-fr | awk '{print $2}'}
${alignc 60}${execpi 600 sed -n '1p' $HOME/4_Moon/raw-fr}
${voffset -42}${color5}${goto 15}${color5}${execi 3600 echo `date --date="-2 day" | awk '{print $2" "$3}'`}\
${goto 87}${execi 3600 echo `date --date="-1 day" | awk '{print $2" "$3}'`}\
${goto 347}${execi 3600 echo `date --date="+2 day" | awk '{print $2" "$3}'`}\
${goto 272}${execi 3600 echo `date --date="+1 day" | awk '{print $2" "$3}'`}${color}
${goto 15}${execpi 600 sed -n '19p' $HOME/4_Moon/raw-fr | awk '{print $1}'}\
${goto 87}${execpi 600 sed -n '27p' $HOME/4_Moon/raw-fr | awk '{print $1}'}\
${goto 272}${execpi 600 sed -n '35p' $HOME/4_Moon/raw-fr | awk '{print $1}'}\
${goto 347}${execpi 600 sed -n '43p' $HOME/4_Moon/raw-fr | awk '{print $1}'}
${goto 15}${execpi 600 sed -n '19p' $HOME/4_Moon/raw-fr | awk '{print $2}'}\
${goto 87}${execpi 600 sed -n '27p' $HOME/4_Moon/raw-fr | awk '{print $2}'}\
${goto 272}${execpi 600 sed -n '35p' $HOME/4_Moon/raw-fr | awk '{print $2}'}\
${goto 347}${execpi 600 sed -n '43p' $HOME/4_Moon/raw-fr | awk '{print $2}'}
${goto 15}${execpi 600 sed -n '13p' $HOME/4_Moon/raw-fr}\
${goto 87}${execpi 600 sed -n '21p' $HOME/4_Moon/raw-fr}\
${goto 272}${execpi 600 sed -n '29p' $HOME/4_Moon/raw-fr}\
${goto 347}${execpi 600 sed -n '37p' $HOME/4_Moon/raw-fr}

${alignc 40}${color5}Details pour ${execi 3600 echo `date --date="0 day" | awk '{print $1" "$2" "$3" "$6}'`}${color}

Visibilité: ${execpi 600 sed -n '1p' $HOME/4_Moon/raw-fr}${goto 250}Age: ${execpi 600 sed -n '5p' $HOME/4_Moon/raw} J
Angle du Soleil: ${execpi 600 sed -n '2p' $HOME/4_Moon/raw} ° ${goto 250}Angle de Lune: ${execpi 600 sed -n '6p' $HOME/4_Moon/raw} °
Distance du Soleil: ${execpi 600 sed -n '3p' $HOME/4_Moon/raw} kms${goto 250}Distance de la Lune: ${execpi 600 sed -n '4p' $HOME/4_Moon/raw} kms

${alignc 50}${color5}Position de la Lune${color}\
${lua fDrawImage $HOME/4_Moon/rise.png  0 294 400 130}\
${lua fDrawImage $HOME/4_Moon/0.png    45 370 30 30}\
${lua fDrawImage $HOME/4_Moon/0.png   325 370 30 30}\
${Lua fDrawImage $HOME/4_Moon/0.png   185 296 30 30}
]];
monn_MoonGiant (Je l'ai mis en françois)

Code : Tout sélectionner

#!/bin/bash

#function: moonrise_set
moonrise_set () {
    case "$1" in
         "FirstQuarter")
			echo "Noon/Midnight"
			cp $HOME/4_Moon/riseicons/rise_FirstQuarter.png $HOME/4_Moon/rise.png
         ;;
         "FullMoon")
			echo "6PM/6AM"
			cp $HOME/4_Moon/riseicons/rise_FullMoon.png $HOME/4_Moon/rise.png
		 ;;	
		 "LastQuarter")
			echo "Midnight/Noon"
			cp $HOME/4_Moon/riseicons/rise_LastQuarter.png $HOME/4_Moon/rise.png
		 ;;	
		 "NewMoon")
			echo "6AM/6PM"
			cp $HOME/4_Moon/riseicons/rise_NewMoon.png $HOME/4_Moon/rise.png
		 ;;
		 "WaningCrescent")
			echo "3AM/3PM"
			cp $HOME/4_Moon/riseicons/rise_WaningCrescent.png $HOME/4_Moon/rise.png
		 ;;
		 "WaningGibbous")
			echo "9PM/9AM"
			cp $HOME/4_Moon/riseicons/rise_WaningGibbous.png $HOME/4_Moon/rise.png
		 ;;
		 "WaxingCrescent")
			echo "9AM/9PM"
			cp $HOME/4_Moon/riseicons/rise_WaxingCrescent.png $HOME/4_Moon/rise.png
		 ;;
		 "WaxingGibbous")
			echo "3PM/3AM"
			cp $HOME/4_Moon/riseicons/rise_WaxingGibbous.png $HOME/4_Moon/rise.png
		 ;;
		 *)
			echo "Unavailable"
		 esac
} 

kill -STOP $(pidof conky)

#put your hemisphere here: north or south
hemisphere=north

wget -O $HOME/4_Moon/raw "http://www.moongiant.com/phase/today"
rm $HOME/4_Moon/*.png 

sed -i -e '/^ *$/d' -e 's/^ *//g' $HOME/4_Moon/raw
sed -i '/var jArray=\|"todayMoonContainer"\|"moonNotToday"/!d' $HOME/4_Moon/raw
sed -i -e '/var jArray/s/","/\n/g' -e 's/<span>\|<b>\|<\\\/span>\|<\\\/b>\|\\n//g' /$HOME/4_Moon/raw
sed -i -e '/var jArray/d' -e 's/^.*\:\[\"//g' /$HOME/4_Moon/raw
sed -i -e 's/"\]};//g' -e 's/^.*today_phase\///g' -e 's/\.jpg.*$//g' /$HOME/4_Moon/raw
sed -i -e 's/^small\///g' -e 's/\.png.*$//g' /$HOME/4_Moon/raw
sed -i -e 's/Illumination: \|Sun Angle: \|Sun Distance: \|Moon Distance: \|Moon Age: \|Moon Angle: //g' -e '43d' /$HOME/4_Moon/raw
#September 30-October 1 fix
for (( i=11; i<=35; i+=8 ))
	do
		if [[ $(sed -n ${i}p /$HOME/4_Moon/raw) == "September 30" ]]; then
			line=$((i+7))
			sed -i "${line}s/^.*$/Waning Crescent/" /$HOME/4_Moon/raw
		fi
		if [[ $(sed -n ${i}p /$HOME/4_Moon/raw) == "October 1" ]]; then
			line=$((i+7))
			sed -i "${line}s/^.*$/New Moon/" /$HOME/4_Moon/raw
		fi
	done
today_phase=$(sed -n 8p /$HOME/4_Moon/raw| awk -F "," '{print $2}'| sed 's/ //')
if [[ $today_phase == "September 30" ]]; then
			sed -i '7s/^.*$/Waning Crescent/' /$HOME/4_Moon/raw
			sed -i '10s/^.*$/Phase: Waning Crescent/' /$HOME/4_Moon/raw
fi
if [[ $today_phase == "October 1" ]]; then
			sed -i '7s/^.*$/New Moon/' /$HOME/4_Moon/raw
			sed -i '10s/^.*$/Phase: New Moon/' /$HOME/4_Moon/raw
fi

phase=$(sed -n 7p $HOME/4_Moon/raw|sed 's/ //')
mrise_mset=$(moonrise_set $phase)
sed -i 7a$(moonrise_set $phase) /$HOME/4_Moon/raw

#Day before Yesterday
img_in=$(sed -n 44p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/-2.png

#Yesterday
img_in=$(sed -n 45p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/-1.png

#Today
img_in=$(sed -n 46p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/0.png

#Tomorrow
img_in=$(sed -n 47p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/1.png

#Day after Tomorrow
img_in=$(sed -n 48p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/2.png

## English to French
cp $HOME/4_Moon/raw $HOME/4_Moon/raw-fr
if [[ -s $HOME/4_Moon/raw-fr ]]; then
        sed -i -e 's/Full Moon/Pleine Lune/' $HOME/4_Moon/raw-fr
        sed -i -e 's/Waning Gibbous/Gibeuse décroissante/' $HOME/4_Moon/raw-fr
        sed -i -e 's/Waxing Gibbous/Gibeuse croissante/' $HOME/4_Moon/raw-fr
        sed -i -e 's/Waxing Crescent/Lune Montante/' $HOME/4_Moon/raw-fr
        sed -i -e 's/First Quarter/Premier Quartier/' $HOME/4_Moon/raw-fr
        sed -i -e 's/Last Quarter/Dernier Quartier/' $HOME/4_Moon/raw-fr
        sed -i -e 's/Waning Crescent/Lune Déscendante/' /$HOME/4_Moon/raw-fr      

fi
kill -CONT $(pidof conky)

Image







Image



P.S Mettre les icones du dossier riseicons .jpg en .png avec gimp (@ cause du image .lua)
HP Pavilion g 7 1357 sf avec ssd Tessa cinnamon Mageia 7rc mate
Asus ROG avec xubuntu 18.04 et xubuntu 19.04

Image

Répondre