Contenu | Rechercher | Menus

Annonce

DVD, clés USB et t-shirts Ubuntu-fr disponibles sur la boutique En Vente Libre

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1626 Le 07/07/2019, à 10:24

loutch

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonjour

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
Capture-decran_2019-07-07_10-08-49.png Pave numérique
                    numéro du bureau


Capture-decran_2019-07-07_10-10-57.png

Capture-decran_2019-07-07_10-11-23.png

conkyrc

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

#!/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

@+

Dernière modification par loutch (Le 25/07/2019, à 08:39)

Hors ligne

#1627 Le 01/07/2020, à 12:38

noob-linuxien

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Salut tout le monde ,
je debute J ai reussi a avoir le conky que je voulais en recherchant diverses infos et copiages sur differents sites .
maintenant j ai un soucis de couleur .. Est ce que vous pourriez m aiguillier sur le bon choix de couleur s il vous plait ?
j essai de vous faire un screenshot
en attendant voici mes conkyrc
le 1 ier

conky.config = {
	update_interval = 1,
	cpu_avg_samples = 1,
	net_avg_samples = 1,
	background = true,
	out_to_console = false,
	override_utf8_locale = true,
	double_buffer = true,
	no_buffers = true,
	text_buffer_size = 32768,
	imlib_cache_size = 0,
	own_window = true,
	own_window_transparent = true,
	own_window_type = 'normal',
	own_window_argb_visual = true,
	own_window_argb_value = 200,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	border_inner_margin = 5,
	border_outer_margin = 0,
	xinerama_head = 1,
	draw_shades = false,
	draw_outline = true,
	default_shade_color = '2B2B2B',
        default_outline_color = '2B2B2B',
	draw_borders = false,
	draw_graph_borders = false,
	use_xft = true,
	font = 'Ubuntu Mono:size=12',
	xftalpha = 0.8,
	uppercase = false,
	default_color = '4ECBDC',
	color1 = '4ECBDC',
	color2 = 'darkcyan',
	color3 = 'cyan',
	own_window_colour = '#000000',
	minimum_width = 300, minimum_height = 0,
	alignment = 'mr',

};
conky.text = [[
${color2}${font sans-serif:bold:size=12}${alignc}GPU AMD RX 580 NITRO+ 8G

${font sans-serif:bold:size=8}${color1}Charge GPU  ${color3}$alignr${execi 1 radeontop -d- -l1 | grep -o 'gpu [0-9]\{1,3\}' | cut -c 5-7 }${color1} % 
${color3}${execbar 10,300 radeontop -d- -l1 | grep -o 'gpu [0-9]\{1,3\}' | cut -c 5-7 }${color}
${font sans-serif:bold:size=8}Charge VRAM ${color3}$alignr${execi 1 radeontop -d- -l1 | grep -o 'vram [0-9]\{1,3\}' | cut -c 5-7 }${color1} % 
${color3}${execbar 10,300 radeontop -d- -l1 | grep -o 'vram [0-9]\{1,3\}' | cut -c 5-7 }${color}

${font sans-serif:bold:size=8}Température GPU   ${color3}$alignr${hwmon 0 temp 1}${color1} °C

Vitesse Ventilateur      ${color3}$alignr${hwmon 0 fan 1}${color1} RPM

${font sans-serif:bold:size=12}${alignc}${color2}CPU RYZEN 5
${font sans-serif:bold:size=8}${color1}
CPU 1 ${color3}$alignr${freq_g 0}${color1} Ghz
${color3}${cpubar cpu0 10,}${color1}
CPU 2 ${color3}$alignr${freq_g 1}${color1} Ghz
${color3}${cpubar cpu1 10,}${color1}
CPU 3 ${color3}$alignr${freq_g 2}${color1} Ghz
${color3}${cpubar cpu2 10,}${color1}
CPU 4 ${color3}$alignr${freq_g 3}${color1} Ghz
${color3}${cpubar cpu3 10,}${color1}
CPU 5 ${color3}$alignr${freq_g 4}${color1} Ghz
${color3}${cpubar cpu4 10,}${color1}
CPU 6 ${color3}$alignr${freq_g 5}${color1} Ghz
${color3}${cpubar cpu5 10,}${color1}
CPU 7 ${color3}$alignr${freq_g 6}${color1} Ghz
${color3}${cpubar cpu6 10,}${color1}
CPU 8 ${color3}$alignr${freq_g 7}${color1} Ghz
${color3}${cpubar cpu7 10,}${color1}
CPU 9 ${color3}$alignr${freq_g 8}${color1} Ghz
${color3}${cpubar cpu8 10,}${color1}
CPU 10 ${color3}$alignr${freq_g 9}${color1} Ghz
${color3}${cpubar cpu9 10,}${color1}
CPU 11 ${color3}$alignr${freq_g 10}${color1} Ghz
${color3}${cpubar cpu10 10,}${color1}
CPU 12 ${color3}$alignr${freq_g 11}${color1} Ghz
${color3}${cpubar cpu11 10,}${color1}

${font sans-serif:bold:size=8}Charge Globale CPU ${color3}$alignr${cpu cpu0} ${color1}%

${font sans-serif:bold:size=8}Température CPU ${color3}$alignr${exec sensors | grep -n 'temp1' | sed -n 2p | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}${color1} °C

${font sans-serif:bold:size=8}Vitesse Ventilateur Ventirad ${color3}$alignr${hwmon 2 fan 1}${color1}  RPM

${font sans-serif:bold:size=12}${alignc}${color2}BOITIER Z11
${font sans-serif:bold:size=8}${color1}Température Boitier ${color3}$alignr${exec sensors | grep -n 'temp2' | sed -n 2p | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}${color1} °C

${font sans-serif:bold:size=8}Ventilateur 1 ${color3}$alignr${hwmon 2 fan 2}${color1}  RPM

${font sans-serif:bold:size=8}Ventilateur 2 ${color3}$alignr${hwmon 2 fan 3}${color1}  RPM

${font sans-serif:bold:size=8}Ventilateur  3 ${color3}$alignr${hwmon 2 fan 4}${color1}  RPM

${font sans-serif:bold:size=12}${alignc}${color2}MEMOIRE

${font sans-serif:bold:size=8}${color1}RAM ${color3}$alignc $mem / $memmax ${color1}$alignr ${color3}$memperc${color1} %
${color3}${membar 10,300}${color1}
SWAP $alignc ${color3}${swap} / ${swapmax} $alignr ${swapperc}${color1} %
${color3}${swapbar 10,300}${color1}

${font sans-serif:bold:size=12}${alignc}${color2}UTILISATION DES DISQUES

${font sans-serif:bold:size=8}${color}Linux ${color3}$alignc 	${fs_used /} / ${fs_size /} $alignr ${fs_used_perc }${color} %
${color3}${fs_bar 10,300 /}${color}
Data${font sans-serif:bold:size=8} ${color3}$alignc 	${fs_used /mnt/FE1C5E781C5E2BC1} / ${fs_size /mnt/FE1C5E781C5E2BC1} $alignr ${fs_used_perc /mnt/FE1C5E781C5E2BC1}${color} %
${color3}${fs_bar 10,300 /mnt/FE1C5E781C5E2BC1}${color}
Windows 10${font sans-serif:bold:size=8} ${color3}$alignc 	${fs_used /mnt/1A52E8B952E89AB1} / ${fs_size /mnt/1A52E8B952E89AB1} $alignr ${fs_used_perc /mnt/1A52E8B952E89AB1}${color} %
${color3}${fs_bar 10,300 /mnt/1A52E8B952E89AB1}${color}

Température HDD${font sans-serif:bold:size=8} ${color3}$alignr ${exec sudo hddtemp /dev/sdb | awk '{print $NF} '}${color}

Température SSD${font sans-serif:bold:size=8} ${color3}$alignr ${exec sudo hddtemp /dev/sda | awk '{print $NF} '}${color}
]];

le deuxième

conky.config = {
	update_interval = 1,
	cpu_avg_samples = 1,
	net_avg_samples = 1,
	background = true,
	out_to_console = false,
	override_utf8_locale = true,
	double_buffer = true,
	no_buffers = true,
	text_buffer_size = 32768,
	imlib_cache_size = 0,
	own_window = true,
	own_window_transparent = true,
	own_window_type = 'normal',
	own_window_argb_visual = true,
	own_window_argb_value = 200,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	border_inner_margin = 5,
	border_outer_margin = 0,
	xinerama_head = 1,
	draw_shades = false,
	draw_outline = true,
	default_shade_color = '2B2B2B',
        default_outline_color = '2B2B2B',
	draw_borders = false,
	draw_graph_borders = true,
	use_xft = true,
	font = 'Ubuntu Mono:size=12',
	xftalpha = 0.8,
	uppercase = false,
	default_color = '4ECBDC',
	own_window_colour = '#000000',
	minimum_width = 300, minimum_height = 0,
	alignment = 'tl',
};
conky.text = [[
${font sans-serif:bold:size=12}${alignc}SYSTEME

${font sans-serif:bold:size=8}$sysname $kernel $alignr $machine
Nom du PC$alignr$nodename
Démarré depuis$alignr$uptime
Type de partition $alignr${fs_type}
Processus $alignr${execi 1000 ps aux | wc -l}	

${font Ubuntu:bold:size=12}${alignc}RÉSEAUX

${voffset -10}${color}${font sans-serif:bold:size=8}Box Internet$alignr${wireless_essid wlp7s0}

${font sans-serif:bold:size=8}${color}Passerelle IP ${alignr}${gw_ip}

${font sans-serif:bold:size=8}IPs locale${alignr}${font sans-serif:bold:size=8}${execi 1000 ip a | grep inet | grep -vw lo | grep -v inet6 | cut -d \/ -f1 | sed 's/[^0-9\.]*//'}

IP Publique ${alignr}${execi 1000  wget -q -O- http://ipecho.net/plain; echo}

${font sans-serif:bold:size=8}Signal WIFI  $alignr${wireless_link_qual_perc wlp7s0}% 

${wireless_link_bar 15,300 wlp7s0}
${font sans-serif:bold:size=8}BAS :  ${downspeed wlp7s0}  ${alignr}HAUT :  ${upspeed wlp7s0}

Total : ${totaldown wlp7s0} ${alignr}Total: ${totalup wlp7s0}

${downspeedgraph wlp7s0 25,130 } ${alignr}${upspeedgraph wlp7s0 25,130 }$color
#${hr }

${font sans-serif:bold:size=12}${alignc}PROCESSUS ACTIFS

${font sans-serif:bold:size=8}Nom $alignr PID   CPU%   MEM%${font sans-serif:bold:size=8}
${top name 1} $alignr ${top pid 1} ${top cpu 1}% ${top mem 1}%
${top name 2} $alignr ${top pid 2} ${top cpu 2}% ${top mem 2}%
${top name 3} $alignr ${top pid 3} ${top cpu 3}% ${top mem 3}%
${top name 4} $alignr ${top pid 4} ${top cpu 4}% ${top mem 4}%
${top name 5} $alignr ${top pid 5} ${top cpu 5}% ${top mem 5}%
${top name 6} $alignr ${top pid 6} ${top cpu 6}% ${top mem 6}%
${top name 7} $alignr ${top pid 7} ${top cpu 7}% ${top mem 7}%
${top name 8} $alignr ${top pid 8} ${top cpu 8}% ${top mem 8}%
${top name 9} $alignr ${top pid 9} ${top cpu 9}% ${top mem 9}%
${top name 10} $alignr ${top pid 10} ${top cpu 10}% ${top mem 10}%
]];

screenshot

capture d ecran

en vous remerciant

Dernière modification par noob-linuxien (Le 01/07/2020, à 12:41)

Hors ligne