Vos Conky
Postez ici vos conkys ou des petits bouts et demandes d'aide.
Discussions Libres

Aranud Membre non connecté
-
- Voir le profil du membre Aranud
- Inscrit le : 06/11/2010
- Groupes :
Reprise du message précédent
pokeball gooooo

Lotherath Membre non connecté
-
- Voir le profil du membre Lotherath
- Inscrit le : 21/11/2011
- Groupes :
Mon PC: tour assemblée maison avec carte mère Asus, dual-core Amd athlon 5500 plus (avec ventirad Zalman pour refroidir la bête), 4 Go de ram, carte graphique MSI GT 630, disque dur 500 Go - 100 % Mageia avec KDE.

Adrien.D Membre non connecté
-
- Voir le profil du membre Adrien.D
- Inscrit le : 30/05/2011
- Site internet
- Groupes :
c'est intégré pour le 64bits dans les dépôts MLO !
Le RPM 32bits arrive d'ici la fin de soirée

Config : PC Fixe : X470 GAMING PRO- AMD Ryzen 5 2600X - 16Go RAM - Radeon RX 560 (Pilote libre) - Gentoo Linux - GNOME Desktop - Kernel 5.10 LTS
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !


Adrien.D Membre non connecté
-
- Voir le profil du membre Adrien.D
- Inscrit le : 30/05/2011
- Site internet
- Groupes :
Sujet déverrouillé.
Config : PC Fixe : X470 GAMING PRO- AMD Ryzen 5 2600X - 16Go RAM - Radeon RX 560 (Pilote libre) - Gentoo Linux - GNOME Desktop - Kernel 5.10 LTS
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !


Visiteur
Visiteur
nmrk.n :
Bonnenuit,
Y trouve pas ma carte graphique ?
À quoi ça sert qu'il puisse avoir accès à la partition Windows ?
nmrk.n
Y trouve pas ma carte graphique ?
À quoi ça sert qu'il puisse avoir accès à la partition Windows ?
Code :
sh: nvidia-settings : commande introuvable
sh: nvidia-settings : commande introuvable
Conky: statfs64 '/media/win_c': No such file or directory
Conky: statfs64 '/media/win_c/': No such file or directory
sh: nvidia-settings : commande introuvable
sh: nvidia-settings : commande introuvable
sh: nvidia-settings : commande introuvable
sh: nvidia-settings :
nmrk.n
en console root
Code BASH :
ls -s /usr/lib64/nvidia-current/bin/nvidia-settings /usr/bin/nvidia-settings

loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
Voila si l'un de mes conky vous intéresse regardez à cette adresse :
http://www.mageialinux-online.org/wiki/conky-conkyrc-et-script
Pour la parlotte se sera ici .
.gif)
Édité par loutch Le 01/06/2014 à 15h34
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX

loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
Conky météo de "ma pomme " ( attention il faut le pack conky-meteo de Didier-t
le conkyrc :
Caché :
background yes
use_xft yes
xftfont URW Chancery L:style=Bold:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_color 000000
own_window_argb_visual yes
#own_window_argb_value 0
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 600
maximum_width 600
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment top_left
gap_x 500
gap_y 170
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
# Fonctionne uniquement avec les polices Fixes
#use_spacer yes
uppercase no
default_color 000000
color0 6495ee
# -- Déclaration template -- #
template0 ${lua fDrawImage ~/.conky/conky-meteo/meteo6jours/fon/1 2 3 4 5} # -- images fond -- #
template1 ${lua Meteo_1 2 3 4 5 6} # -- gestion météo --#
template2 ${lua Meteo_1 2 3 4 5 6 7} # -- icônes météo -- 2=répertoire icônes 3=position 4=taille 5=jour (pour les prévisions) #
template3 ${lua Lune_1}
template4 ${lua_parse Images_1 2 3 60 4} # -- Appelle image -- 2=position 3=taille 4=jour (pour les prévisions) #
lua_load ~/.conky/conky-meteo/meteo_lua_2/scripts/meteo2.lua
lua_startup_hook init ~/.conky/conky-meteo/meteo6jours/meteo.cfg
TEXT
${template1 Maj} ${alignc}${font URW Chancery L :size=12 style:bold}${template1 Ville}${font}
${alignc}Dernière mise à jour : ${template1 Heure} h ${template1 Minute}
${alignc} Conditions actuelles :
${goto 10}Température : ${goto 95}Condition : ${goto 170}Direction du Vent : ${goto 290}Vitesse : ${goto 370}Rafales : ${goto 450}Pression : ${goto 550}Pluie :
${goto 30}${template1 TempAct}°C ${goto 97}${template1 CondMeteo} ${goto 200}${template1 VentDirP} ${goto 290} ${template1 VentForce} km/h ${goto 370}${template1 Jour_VentRafales 1} Km/h ${goto 450}${template1 Pression 1} mb ${goto 550}${template1 Jour_NivPrec 1} mm
${alignc} Soleil :
Lever ${template1 HLeverSoleil 1}:${template1 MLeverSoleil 1} Coucher ${template1 HCoucherSoleil 1}:${template1 MCoucherSoleil 1} ${goto 170} Durée :${template1 HDureeJour 1} h ${template1 MDureeJour 1} ${goto 270} Indice UV : ${template1 Uv 1} ${goto 370}Couverture nuageuse: ${template1 CouvNuage 1}% ${goto 520} Visibilité: ${template1 Visibilite 1} km
${goto 255} Prochaines six heures :
${goto 35}${template1 huitHeures_Heure 1} h ${goto 140}${template1 huitHeures_Heure 2} h ${goto 242}${template1 huitHeures_Heure 3} h ${goto 355}${template1 huitHeures_Heure 4} h ${goto 465}${template1 huitHeures_Heure 5} h ${goto 560}${template1 huitHeures_Heure 6} h
${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 0 235 86 52 1} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 105 235 86 52 2} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 210 235 86 52 3} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 320 235 86 52 4} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 430 235 86 52 5} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 525 235 86 52 6}
${goto 36}${template1 huitHeures_Temp 1}° ${goto 141}${template1 huitHeures_Temp 2}° ${goto 243}${template1 huitHeures_Temp 3}° ${goto 356}${template1 huitHeures_Temp 4}° ${goto 466}${template1 huitHeures_Temp 5}° ${goto 561}${template1 huitHeures_Temp 6}°
${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 25 295 40 40 1} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 130 295 40 40 2} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 235 295 40 40 3} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 345 295 40 40 4} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 455 295 40 40 5} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 550 295 40 40 6}
${goto 36}${template1 huitHeures_VentDirP 1} ${goto 141}${template1 huitHeures_VentDirP 2} ${goto 242}${template1 huitHeures_VentDirP 3} ${goto 354}${template1 huitHeures_VentDirP 4} ${goto 466}${template1 huitHeures_VentDirP 5} ${goto 561}${template1 huitHeures_VentDirP 6}
${goto 25}${template1 huitHeures_VentForce 1} km/h ${goto 130}${template1 huitHeures_VentForce 2} km/h ${goto 231}${template1 huitHeures_VentForce 3} km/h ${goto 343}${template1 huitHeures_VentForce 4} km/h ${goto 455}${template1 huitHeures_VentForce 5} km/h ${goto 550}${template1 huitHeures_VentForce 6} km/h
${alignc} Prochains six jours :
${goto 25}${template1 Jour %a_%d 2} ${goto 135}${template1 Jour %a_%d 3} ${goto 235}${template1 Jour %a_%d 4} ${goto 350}${template1 Jour %a_%d 5} ${goto 460}${template1 Jour %a_%d 6} ${goto 560}${template1 Jour %a_%d 7}
${font Sans :size=8:style=bold} ${color red}${template1 Jour_Temp 2}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 2}° ${goto 130}${color red}${template1 Jour_Temp 3}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 3}° ${goto 230}${color red}${template1 Jour_Temp 4}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 4}° ${goto 345}${color red}${template1 Jour_Temp 5}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 5}° ${goto 455}${color red}${template1 Jour_Temp 4}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 6}° ${goto 555}${color red}${template1 Jour_Temp 4}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 7}°
${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 0 440 86 52 2} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 105 440 86 52 3} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 205 440 86 52 4} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 320 440 86 52 5} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 430 440 86 52 6} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 530 440 86 52 7}
${font URW Chancery L :size=10:style=bold}${color black}
${goto 25}${template1 Jour_VentForce 2} km/h ${goto 135}${template1 Jour_VentForce 3} km/h ${goto 235}${template1 Jour_VentForce 4} km/h ${goto 350}${template1 Jour_VentForce 5} km/h ${goto 460}${template1 Jour_VentForce 6} km/h ${goto 560}${template1 Jour_VentForce 3} km/h
# icone conditions actuelles
${template2 IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 75 95 91 57} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/icone_meteo/30.png -5 95 100 50} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/vvent.png 300 98 45 45} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/rvent.png 370 98 50 50}
${template2 IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 188 99 50 50} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/barometre.png 440 95 60 60} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/parapluie.png 540 102 47 47}
use_xft yes
xftfont URW Chancery L:style=Bold:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_color 000000
own_window_argb_visual yes
#own_window_argb_value 0
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 600
maximum_width 600
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment top_left
gap_x 500
gap_y 170
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
# Fonctionne uniquement avec les polices Fixes
#use_spacer yes
uppercase no
default_color 000000
color0 6495ee
# -- Déclaration template -- #
template0 ${lua fDrawImage ~/.conky/conky-meteo/meteo6jours/fon/1 2 3 4 5} # -- images fond -- #
template1 ${lua Meteo_1 2 3 4 5 6} # -- gestion météo --#
template2 ${lua Meteo_1 2 3 4 5 6 7} # -- icônes météo -- 2=répertoire icônes 3=position 4=taille 5=jour (pour les prévisions) #
template3 ${lua Lune_1}
template4 ${lua_parse Images_1 2 3 60 4} # -- Appelle image -- 2=position 3=taille 4=jour (pour les prévisions) #
lua_load ~/.conky/conky-meteo/meteo_lua_2/scripts/meteo2.lua
lua_startup_hook init ~/.conky/conky-meteo/meteo6jours/meteo.cfg
TEXT
${template1 Maj} ${alignc}${font URW Chancery L :size=12 style:bold}${template1 Ville}${font}
${alignc}Dernière mise à jour : ${template1 Heure} h ${template1 Minute}
${alignc} Conditions actuelles :
${goto 10}Température : ${goto 95}Condition : ${goto 170}Direction du Vent : ${goto 290}Vitesse : ${goto 370}Rafales : ${goto 450}Pression : ${goto 550}Pluie :
${goto 30}${template1 TempAct}°C ${goto 97}${template1 CondMeteo} ${goto 200}${template1 VentDirP} ${goto 290} ${template1 VentForce} km/h ${goto 370}${template1 Jour_VentRafales 1} Km/h ${goto 450}${template1 Pression 1} mb ${goto 550}${template1 Jour_NivPrec 1} mm
${alignc} Soleil :
Lever ${template1 HLeverSoleil 1}:${template1 MLeverSoleil 1} Coucher ${template1 HCoucherSoleil 1}:${template1 MCoucherSoleil 1} ${goto 170} Durée :${template1 HDureeJour 1} h ${template1 MDureeJour 1} ${goto 270} Indice UV : ${template1 Uv 1} ${goto 370}Couverture nuageuse: ${template1 CouvNuage 1}% ${goto 520} Visibilité: ${template1 Visibilite 1} km
${goto 255} Prochaines six heures :
${goto 35}${template1 huitHeures_Heure 1} h ${goto 140}${template1 huitHeures_Heure 2} h ${goto 242}${template1 huitHeures_Heure 3} h ${goto 355}${template1 huitHeures_Heure 4} h ${goto 465}${template1 huitHeures_Heure 5} h ${goto 560}${template1 huitHeures_Heure 6} h
${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 0 235 86 52 1} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 105 235 86 52 2} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 210 235 86 52 3} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 320 235 86 52 4} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 430 235 86 52 5} ${template2 huitHeures_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 525 235 86 52 6}
${goto 36}${template1 huitHeures_Temp 1}° ${goto 141}${template1 huitHeures_Temp 2}° ${goto 243}${template1 huitHeures_Temp 3}° ${goto 356}${template1 huitHeures_Temp 4}° ${goto 466}${template1 huitHeures_Temp 5}° ${goto 561}${template1 huitHeures_Temp 6}°
${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 25 295 40 40 1} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 130 295 40 40 2} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 235 295 40 40 3} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 345 295 40 40 4} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 455 295 40 40 5} ${template2 huitHeures_IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 550 295 40 40 6}
${goto 36}${template1 huitHeures_VentDirP 1} ${goto 141}${template1 huitHeures_VentDirP 2} ${goto 242}${template1 huitHeures_VentDirP 3} ${goto 354}${template1 huitHeures_VentDirP 4} ${goto 466}${template1 huitHeures_VentDirP 5} ${goto 561}${template1 huitHeures_VentDirP 6}
${goto 25}${template1 huitHeures_VentForce 1} km/h ${goto 130}${template1 huitHeures_VentForce 2} km/h ${goto 231}${template1 huitHeures_VentForce 3} km/h ${goto 343}${template1 huitHeures_VentForce 4} km/h ${goto 455}${template1 huitHeures_VentForce 5} km/h ${goto 550}${template1 huitHeures_VentForce 6} km/h
${alignc} Prochains six jours :
${goto 25}${template1 Jour %a_%d 2} ${goto 135}${template1 Jour %a_%d 3} ${goto 235}${template1 Jour %a_%d 4} ${goto 350}${template1 Jour %a_%d 5} ${goto 460}${template1 Jour %a_%d 6} ${goto 560}${template1 Jour %a_%d 7}
${font Sans :size=8:style=bold} ${color red}${template1 Jour_Temp 2}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 2}° ${goto 130}${color red}${template1 Jour_Temp 3}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 3}° ${goto 230}${color red}${template1 Jour_Temp 4}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 4}° ${goto 345}${color red}${template1 Jour_Temp 5}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 5}° ${goto 455}${color red}${template1 Jour_Temp 4}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 6}° ${goto 555}${color red}${template1 Jour_Temp 4}°${color black} / ${color cornflowerblue}${template1 Nuit_Temp 7}°
${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 0 440 86 52 2} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 105 440 86 52 3} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 205 440 86 52 4} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 320 440 86 52 5} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 430 440 86 52 6} ${template2 Jour_IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 530 440 86 52 7}
${font URW Chancery L :size=10:style=bold}${color black}
${goto 25}${template1 Jour_VentForce 2} km/h ${goto 135}${template1 Jour_VentForce 3} km/h ${goto 235}${template1 Jour_VentForce 4} km/h ${goto 350}${template1 Jour_VentForce 5} km/h ${goto 460}${template1 Jour_VentForce 6} km/h ${goto 560}${template1 Jour_VentForce 3} km/h
# icone conditions actuelles
${template2 IconeM ~/.conky/conky-meteo/meteo_lua_2/icones 75 95 91 57} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/icone_meteo/30.png -5 95 100 50} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/vvent.png 300 98 45 45} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/rvent.png 370 98 50 50}
${template2 IconeV ~/.conky/conky-meteo/meteo_lua_2/icones 188 99 50 50} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/barometre.png 440 95 60 60} ${lua fDrawImage ~/.conky/conky-meteo/meteo_lua_2/icones/parapluie.png 540 102 47 47}
en image :

.gif)
.
Édité par loutch Le 04/06/2014 à 08h53
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX

shaka Membre non connecté
-
- Voir le profil du membre shaka
- Inscrit le : 03/09/2011
- Groupes :

suite a la lecture du wiki j'ai bien reussi a installer et mettre ca au ptits oignons ... merci au redacteur

je bute cependant sur 2 choses
d'abord et quasi le plus important ... impossible d'afficher en transparence

puis je me demandais si comme pour KDE il y avait un moyen de recuperer la version de Xfce ?




Adrien.D Membre non connecté
-
- Voir le profil du membre Adrien.D
- Inscrit le : 30/05/2011
- Site internet
- Groupes :
Il faut dans un premier temps vérifier que dans ton conkyrc tu aies bien ces deux lignes à yes :
Code BASH :
own_window yes own_window_transparent yes
Ensuite dans XFCE (bien que je ne sois pas un expert), il faut activer le compositeur d'affichage (dans les paramètres, peaufinage des fenêtres, onglet compositeur )

Config : PC Fixe : X470 GAMING PRO- AMD Ryzen 5 2600X - 16Go RAM - Radeon RX 560 (Pilote libre) - Gentoo Linux - GNOME Desktop - Kernel 5.10 LTS
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !


shaka Membre non connecté
-
- Voir le profil du membre shaka
- Inscrit le : 03/09/2011
- Groupes :
Adrien.D :
Salut,
Il faut dans un premier temps vérifier que dans ton conkyrc tu aies bien ces deux lignes à yes :
Ensuite dans XFCE (bien que je ne sois pas un expert), il faut activer le compositeur d'affichage (dans les paramètres, peaufinage des fenêtres, onglet compositeur )

Il faut dans un premier temps vérifier que dans ton conkyrc tu aies bien ces deux lignes à yes :
Code BASH :
own_window yes own_window_transparent yes
Ensuite dans XFCE (bien que je ne sois pas un expert), il faut activer le compositeur d'affichage (dans les paramètres, peaufinage des fenêtres, onglet compositeur )

me manquais le compositeur d'image
un grand merci a toi





shaka Membre non connecté
-
- Voir le profil du membre shaka
- Inscrit le : 03/09/2011
- Groupes :


tout est recupere en variable sauf la version d'Xfce ... bricole avec des bouts vue par-ci par-la ... merci a tous ces contributeurs qui s'ignorent
le .conkyrc
Caché :
background yes
use_xft yes
xftfont DejaVu Sans Mono:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 150 5
maximum_width 150
text_buffer_size 256
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment top_right
gap_x 0
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#
color1 white
#
color2 cacaca
#
color3 cornflowerblue
#
color4 626262
#
color5 929292
#
color6 828282
#cornflowerblue
TEXT
${font Sans:size=8}${color2}${alignc}$nodename
${color3}OS: ${color2}${exec lsb_release -d | cut -f2 }
${color3}Arch:${color2} $machine
${color3}Kernel: ${color2}${exec expr `uname -r | cut -d- -f1`}
${color3}Uptime: ${color2}$uptime
${color3}Process: ${color2} $processes${color3} Now: ${color2} $running_processes
${color3}XFCE: ${color2}4.10
${color3}CPU ${color2}${hr}
${color3}Frequence: ${color2}${freq_g} GHz
${goto 85}${color4}${cpugraph cpu0 20,160}
${voffset -20}${color3}Core 1:${color2} ${cpu cpu0}%${color2}${goto 250}${freq_g 1} GHz${goto 320}${exec expr `cat /sys/class/hwmon/hwmon1/device/temp1_input` / 1000}°C${goto 360}${color4}${execbar expr `cat /sys/class/hwmon/hwmon1/device/temp1_input` / 1000}
${goto 85}${color4}${cpugraph cpu1 20,160}
${voffset -20}${color3}Core 2:${color2} ${cpu cpu1}%${color2}${goto 250}${freq_g 2} GHz${goto 320}${exec expr `cat /sys/class/hwmon/hwmon1/device/temp2_input` / 1000}°C${goto 360}${color4}${execbar expr `cat /sys/class/hwmon/hwmon1/device/temp2_input` / 1000}
${goto 85}${color4}${cpugraph cpu2 20,160}
${voffset -20}${color3}Core 3:${color2} ${cpu cpu2}%${color2}${goto 250}${freq_g 3} GHz${goto 320}${exec expr `cat /sys/class/hwmon/hwmon1/device/temp1_input` / 1000}°C${goto 360}${color4}${execbar expr `cat /sys/class/hwmon/hwmon1/device/temp1_input` / 1000}
${goto 85}${color4}${cpugraph cpu3 20,160}
${voffset -20}${color3}Core 4:${color2} ${cpu cpu3}%${color2}${goto 250}${freq_g 4} GHz${goto 320}${exec expr `cat /sys/class/hwmon/hwmon1/device/temp2_input` / 1000}°C${goto 360}${color4}${execbar expr `cat /sys/class/hwmon/hwmon1/device/temp2_input` / 1000}
${color3}RAM ${color2}${hr}
${color3}Utilisation: ${color2}$memperc%
${color2}${alignc}$mem / $memmax
${color3}RESEAU ${color2}${hr}
${color3}Ethernet: ${color2}${addr enp7s0}
${color3}D: ${color2}${downspeed enp7s0} ${goto 75}${color3}U: ${color2}${upspeed enp7s0}
${color3}T: ${color2}${totaldown enp7s0} ${goto 75}${color3}T: ${color2}${totalup enp7s0}
${color3}Wifi: ${color2}${addr wlp3s0}
${color3}D: ${color2}${downspeed wlp3s0} ${goto 75}${color3}U: ${color2}${upspeed wlp3s0}
${color3}T: ${color2}${totaldown wlp3s0} ${goto 75}${color3}T: ${color2}${totalup wlp3s0}
${color3}IP Pub: ${color2}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d < -f 1}
${color3}TEMPERATURES ${color2}${hr}
${color3}Carte: ${color2}${hwmon 0 temp 1} °C
${color3}Disque: ${color2}${execi 120 hddtemp -n /dev/sda} °C
${color3}DISQUES ${color2}${hr}
${color3}/ ${color2}${goto 50}${fs_used /} ${color3}/ ${color2}${fs_size /}
${goto 50}${color3}(${color2} ${fs_used_perc /}% ${color3})
Home ${color2}${goto 50}${fs_used /home} ${color3}/ ${color2}${fs_size /home}
${goto 50}${color3}(${color2} ${fs_used_perc /home}% ${color3})
Passp ${color2}${goto 50}${fs_used /run/media/shaka/Shaka Passport/} ${color3}/ ${color2}${fs_size /run/media/shaka/Shaka Passport/}
${goto 50}${color3}(${color2} ${fs_used_perc /run/media/shaka/Shaka Passport/}% ${color3})
background yes
use_xft yes
xftfont DejaVu Sans Mono:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 150 5
maximum_width 150
text_buffer_size 256
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment top_right
gap_x 0
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#
color1 white
#
color2 cacaca
#
color3 cornflowerblue
#
color4 626262
#
color5 929292
#
color6 828282
#cornflowerblue
TEXT
${font Sans:size=8}${color2}${alignc}$nodename
${color3}OS: ${color2}${exec lsb_release -d | cut -f2 }
${color3}Arch:${color2} $machine
${color3}Kernel: ${color2}${exec expr `uname -r | cut -d- -f1`}
${color3}Uptime: ${color2}$uptime
${color3}Process: ${color2} $processes${color3} Now: ${color2} $running_processes
${color3}XFCE: ${color2}4.10
${color3}CPU ${color2}${hr}
${color3}Frequence: ${color2}${freq_g} GHz
${goto 85}${color4}${cpugraph cpu0 20,160}
${voffset -20}${color3}Core 1:${color2} ${cpu cpu0}%${color2}${goto 250}${freq_g 1} GHz${goto 320}${exec expr `cat /sys/class/hwmon/hwmon1/device/temp1_input` / 1000}°C${goto 360}${color4}${execbar expr `cat /sys/class/hwmon/hwmon1/device/temp1_input` / 1000}
${goto 85}${color4}${cpugraph cpu1 20,160}
${voffset -20}${color3}Core 2:${color2} ${cpu cpu1}%${color2}${goto 250}${freq_g 2} GHz${goto 320}${exec expr `cat /sys/class/hwmon/hwmon1/device/temp2_input` / 1000}°C${goto 360}${color4}${execbar expr `cat /sys/class/hwmon/hwmon1/device/temp2_input` / 1000}
${goto 85}${color4}${cpugraph cpu2 20,160}
${voffset -20}${color3}Core 3:${color2} ${cpu cpu2}%${color2}${goto 250}${freq_g 3} GHz${goto 320}${exec expr `cat /sys/class/hwmon/hwmon1/device/temp1_input` / 1000}°C${goto 360}${color4}${execbar expr `cat /sys/class/hwmon/hwmon1/device/temp1_input` / 1000}
${goto 85}${color4}${cpugraph cpu3 20,160}
${voffset -20}${color3}Core 4:${color2} ${cpu cpu3}%${color2}${goto 250}${freq_g 4} GHz${goto 320}${exec expr `cat /sys/class/hwmon/hwmon1/device/temp2_input` / 1000}°C${goto 360}${color4}${execbar expr `cat /sys/class/hwmon/hwmon1/device/temp2_input` / 1000}
${color3}RAM ${color2}${hr}
${color3}Utilisation: ${color2}$memperc%
${color2}${alignc}$mem / $memmax
${color3}RESEAU ${color2}${hr}
${color3}Ethernet: ${color2}${addr enp7s0}
${color3}D: ${color2}${downspeed enp7s0} ${goto 75}${color3}U: ${color2}${upspeed enp7s0}
${color3}T: ${color2}${totaldown enp7s0} ${goto 75}${color3}T: ${color2}${totalup enp7s0}
${color3}Wifi: ${color2}${addr wlp3s0}
${color3}D: ${color2}${downspeed wlp3s0} ${goto 75}${color3}U: ${color2}${upspeed wlp3s0}
${color3}T: ${color2}${totaldown wlp3s0} ${goto 75}${color3}T: ${color2}${totalup wlp3s0}
${color3}IP Pub: ${color2}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d < -f 1}
${color3}TEMPERATURES ${color2}${hr}
${color3}Carte: ${color2}${hwmon 0 temp 1} °C
${color3}Disque: ${color2}${execi 120 hddtemp -n /dev/sda} °C
${color3}DISQUES ${color2}${hr}
${color3}/ ${color2}${goto 50}${fs_used /} ${color3}/ ${color2}${fs_size /}
${goto 50}${color3}(${color2} ${fs_used_perc /}% ${color3})
Home ${color2}${goto 50}${fs_used /home} ${color3}/ ${color2}${fs_size /home}
${goto 50}${color3}(${color2} ${fs_used_perc /home}% ${color3})
Passp ${color2}${goto 50}${fs_used /run/media/shaka/Shaka Passport/} ${color3}/ ${color2}${fs_size /run/media/shaka/Shaka Passport/}
${goto 50}${color3}(${color2} ${fs_used_perc /run/media/shaka/Shaka Passport/}% ${color3})
Édité par shaka Le 20/06/2014 à 08h20




loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
Pour ceux qui écoutent loungeradio.com un petit conky pour avoir les informations et la pochette de l'album en court de lecture.Pour qu'il ne reste pas tout le temps sur le bureau je l'utilise qu'avec exaile (vous pouvez aussi lui choisir un autre lecteur mais pas celui que vous utiliser tout le temps sinon le conky se lancera et s'affichera.)Le draw_bg.lua est là pour les fond d'écrans clairs .
Création d'un dossier loungeradio dans mon ~/.conky puis y mettre le conkyrc et le loungeradio.sh
le conkyrc
Code :
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorated,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
maximum_width 260 300
minimum_size 260 300
alignment tr
gap_x 40
gap_y 460
draw_shades no
draw_outline no
draw_graph_borders no
use_xft yes
xftfont Droid Sans:size=7
xftalpha 0,1
uppercase no
default_color ffffff
imlib_cache_size 0
lua_load ~/.conky/draw_bg/draw_bg.lua
TEXT
${if_running exaile}${lua conky_draw_bg 0 0 50 250 250 0x000000 0.99}
${texeci 60 ~/.conky/loungeradio/loungeradio.sh}
${image ~/.conky/loungeradio/loungeradio.jpg -p 0,50 -s 250x250}${endif}
le loungeradio.sh (rendu éxécutable)
Code :
#!/bin/bash
#pulling info from loung-radio.com for conky by nlinedesignz(at)web(dot)de 2013
wget http://www.lounge-radio.com/code/pushed_files/now.html -O ~/.conky/loungeradio/loungeradio.html >/dev/null 2>&1 &&
artist=$(awk '/id="artist"/{getline; print}' ~/.conky/loungeradio/loungeradio.html | sed "s/<div>|</div>//g")
album=$(awk '/id="album"/{getline; print}' ~/.conky/loungeradio/loungeradio.html | sed "s/<div>|</div>//g")
track=$(awk '/id="track"/{getline; print}' ~/.conky/loungeradio/loungeradio.html | sed "s/<div>|</div>//g")
wget "http://www.lounge-radio.com/code/pushed_files/$(awk '/id="covercontainer"/{print}' ~/.conky/loungeradio/loungeradio.html | sed -r 's/.*src="(.*)" width=.*/1/')" -O ~/.conky/loungeradio/loungeradio.jpg >/dev/null 2>&1 &&
#echo '${image ~/loungeradio.jpg -p 42,42 -s 123x123 }';
echo 'Artist:' $artist
echo 'Track:' $track
echo 'Album:' $album
exit
Attention si vous mettez tout autre part il faudra modifier les chemins dans le conkyrc et dans le loungeradio.sh
l'image du dossier

ce que cela donne sur le bureau

.gif)
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX

loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
Un petit pour audacious avec pochette .
le conkyrc :
background no
use_xft yes
xftfont URW Chancery L:style=Bold:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 450
maximum_width 250
text_buffer_size 2048
imlib_cache_size 0
draw_shades no
draw_outline no
draw_borders no
border_width 1
draw_graph_borders no
default_color white
default_outline_color cacaca
alignment top_right
gap_x 0
gap_y 420
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
lua_load ~/.conky/draw_bg/draw_bg.lua
#${lua conky_draw_bg 0 35 235 200 200 0x000000 0.99} après text
TEXT
${if_running audacious}${lua conky_draw_bg 0 35 235 200 200 0x000000 0.99}
${exec ~/.conky/audacious/cover.sh}
${image ~/.conky/audacious/audacious.jpg -p 30,230 -s 200x200}
Audacious is ${execi 3 audtool playback-status} ${stippled_hr}
Titre : ${goto 100} ${execi 3 audtool current-song-tuple-data title}
Artiste : ${goto 100} ${execi 3 audtool current-song-tuple-data artist}
Album : ${goto 100} ${execi 3 audtool current-song-tuple-data album}
Année : ${goto 100} ${execi 3 audtool current-song-tuple-data year}
Position : ${goto 100} ${execi 3 audtool playlist-position} of ${execi 10 audtool playlist-length}
Bitrate : ${goto 100} ${execi 3 audtool --current-song-bitrate-kbps} kbps
Durée : ${goto 100} ${execi 0.5 audtool current-song-output-length} ${goto 230}${execi 3 audtool current-song-length}
${goto 100}${execbar expr 100 * $(audtool --current-song-output-length-seconds) / $(audtool --current-song-length-seconds)}${endif}
le cover.sh
#!/bin/bash
cp /tmp/audacious-temp* ~/.conky/audacious/audacious.jpg &
exit
et l'image :

.gif)
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX

loutch Membre non connecté
-
- Voir le profil du membre loutch
- Inscrit le : 07/07/2010
- Groupes :
.gif)
Une horloge système (que j'ai modifié complètement transparente et en blanc )
Code TEXT :
background yes use_xft yes xftfont URW Chancery L:style=Bold:size=10 xftalpha 1 update_interval 1.0 total_run_times 0 own_window yes own_window_transparent yes own_window_argb_visual yes own_window_type normal own_window_hints undecorated,below,skip_taskbar,skip_pager double_buffer yes minimum_size 400 400 maximum_width 400 text_buffer_size 1024 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color 000000 default_outline_color white alignment tr gap_x 0 gap_y 0 no_buffers yes uppercase no cpu_avg_samples 2 override_utf8_locale yes # Taille des pointillés stippled_borders 5 lua_load ~/.conky/system_clock/system_clock.lua lua_draw_hook_pre main TEXT
le system_clock.lua
Code TEXT :
require 'cairo' function conky_main(center_x,center_y) if conky_window == nil then return end local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height) cr = cairo_create(cs) local updates=tonumber(conky_parse('${updates}')) if updates>5 then --################################################################# --################################################################# --################################################################# -- hours on the clock 12 or 24 hours=12 --the second interval displayed 5, 10, or 15 seconds=5 second_hand_size=1 minute_hand_size=5 hour_hand_size=5 -- Colors d_font_red=.8 d_font_green=.8 d_font_blue=.8 d_font_alpha=1 --################################################################# --################################################################# --################################################################# d_math=math.pi/180 max_width=175 if center_x == nil then center_x=max_width+5 end if center_y == nil then center_y=max_width+5 end hour_radius=141 second_radius=120 --################################################################# --########## time calculation ##################################### --################################################################# date_mm_dd_yy=conky_parse("${time %D}") second=tonumber(conky_parse("${time %S}")) minute=tonumber(conky_parse("${time %M}")) if hours ~= 12 then hours=24 end if hours == 12 then hour=tonumber(conky_parse("${time %I}")) time_hms=conky_parse("${time %r}") i_start=1 i_end=12 else hour=tonumber(conky_parse("${time %H}")) time_hms=conky_parse("${time %T}") i_start=0 i_end=hours-1 end second_position=(-90+(360/60)*second)*d_math minute_position=(-90+(360/60)*minute)*d_math hour_position=(-90+(360/hours)*hour)*d_math+(((360/hours/60)*minute)*d_math) --################################################################# --########## string values ######################################## --################################################################# cpu_avg=tonumber(conky_parse("${cpu cpu0}")) if cpu_avg == nil then cpu_avg=0 end cpu_core1=tonumber(conky_parse("${cpu cpu1}")) if cpu_core1 == nil then cpu_core1=0 end cpu_core2=tonumber(conky_parse("${cpu cpu2}")) if cpu_core2 == nil then cpu_core2=0 end ram=tonumber(conky_parse("${memperc}")) if ram == nil then ram=0 end mem=conky_parse("${mem}") mem_size=conky_parse("${memmax}") swap_perc=tonumber(conky_parse("${swapperc}")) if swap_perc == nil then swap_perc=0 end swap=conky_parse("${swap}") swap_size=conky_parse("${swapmax}") --################################################################# --########## Info Panel ########################################### --################################################################# cairo_set_line_width(cr,2) cairo_arc(cr,55,360,30,(90*d_math),(270*d_math)) cairo_arc(cr,295,360,30,(270*d_math),(90*d_math)) cairo_close_path(cr) cairo_set_source_rgba(cr,1,1,1,0) cairo_fill(cr) cairo_set_line_width(cr,2) cairo_arc(cr,55,360,28,(90*d_math),(270*d_math)) cairo_arc(cr,295,360,28,(270*d_math),(90*d_math)) cairo_close_path(cr) cairo_set_source_rgba(cr,0,0,0,0) cairo_fill(cr) x={52,52,52, 161,153,153, 225,225,225,225 } y={353,373,392, 353,373,392, 353,365,380,392 } t={"Cpu Avg: "..cpu_avg.."%","Cpu Core 1: "..cpu_core1.."%","Cpu Core 2: "..cpu_core2.."%", "Time: ",time_hms,date_mm_dd_yy, "Ram:",""..mem.." / "..mem_size.."","Swap:",""..swap.." / "..swap_size.."" } for i = 1,#t do cairo_set_source_rgba(cr,1,1,1,1) cairo_move_to(cr,x[i],y[i]) cairo_show_text(cr,t[i]) end cairo_stroke(cr) --################################################################# --################################################################# --################################################################# --minute hand bottom cairo_set_line_width(cr,6) cairo_arc(cr,center_x,center_y,170,(minute_position-((minute_hand_size/2)*d_math)),(minute_position+((minute_hand_size/2)*d_math))) cairo_arc(cr,center_x,center_y,10,(minute_position+(40*d_math)),(minute_position-(40*d_math))) cairo_set_source_rgba(cr,1,1,1,0.1) cairo_fill_preserve(cr) cairo_set_source_rgba(cr,1,1,1,0.1) cairo_close_path(cr) cairo_fill(cr) --hour hand bottom cairo_arc(cr,center_x,center_y,160,(hour_position-((hour_hand_size/2)*d_math)),(hour_position+((hour_hand_size/2)*d_math))) cairo_arc(cr,center_x,center_y,10,(hour_position+(40*d_math)),(hour_position-(40*d_math))) cairo_set_source_rgba(cr,1,1,1,0.1) cairo_fill_preserve(cr) cairo_set_source_rgba(cr,1,1,1,0.1) cairo_close_path(cr) cairo_fill(cr) --hands center cairo_set_line_width(cr,2) cairo_arc(cr,center_x,center_y,10,0,(360*d_math)) cairo_set_source_rgba(cr,0,0,0,1) cairo_fill(cr) --main background cairo_arc(cr,center_x,center_y,150,0,(360*d_math)) cairo_set_source_rgba(cr,.5,.5,.5,0) cairo_fill(cr) --clock background cairo_arc(cr,center_x,center_y,150,0,(360*d_math)) cairo_arc_negative(cr,center_x,center_y,110,(360*d_math),0) cairo_close_path(cr) cairo_set_source_rgba(cr,0,0,0,0) cairo_fill(cr) cairo_arc(cr,center_x,center_y,150,0,(360*d_math)) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) cairo_arc(cr,center_x,center_y,130,0,(360*d_math)) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) cairo_arc(cr,center_x,center_y,110,0,(360*d_math)) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) --################################################################# --########## System Info ########################################## --################################################################# cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND) --cpu avg cairo_set_line_width(cr,10) cairo_arc(cr,center_x,center_y,102,(135*d_math),(45*d_math)) cairo_set_source_rgba(cr,0,0,0,0) cairo_stroke(cr) cairo_set_line_width(cr,8) cairo_arc(cr,center_x,center_y,102,(135*d_math),((135*d_math)+(((270/100)*cpu_avg)*d_math))) cairo_set_source_rgba(cr,1,1,1,.75) cairo_stroke(cr) --cpu core 1 cairo_set_line_width(cr,10) cairo_arc(cr,center_x,center_y,89,(135*d_math),(45*d_math)) cairo_set_source_rgba(cr,0,0,0,0) cairo_stroke(cr) cairo_set_line_width(cr,8) cairo_arc(cr,center_x,center_y,89,(135*d_math),((135*d_math)+(((270/100)*cpu_core1)*d_math))) cairo_set_source_rgba(cr,1,1,1,.75) cairo_stroke(cr) --cpu core 2 cairo_set_line_width(cr,10) cairo_arc(cr,center_x,center_y,76,(135*d_math),(45*d_math)) cairo_set_source_rgba(cr,0,0,0,0) cairo_stroke(cr) cairo_set_line_width(cr,8) cairo_arc(cr,center_x,center_y,76,(135*d_math),((135*d_math)+(((270/100)*cpu_core2)*d_math))) cairo_set_source_rgba(cr,1,1,1,.75) cairo_stroke(cr) --ram cairo_set_line_width(cr,10) cairo_arc(cr,center_x,center_y,62,(100*d_math),(260*d_math)) cairo_set_source_rgba(cr,0,0,0,0) cairo_stroke(cr) cairo_set_line_width(cr,8) cairo_arc(cr,center_x,center_y,62,(100*d_math),((100*d_math)+(((160/100)*ram)*d_math))) cairo_set_source_rgba(cr,1,1,1,.75) cairo_stroke(cr) --swap cairo_set_line_width(cr,10) cairo_arc(cr,center_x,center_y,62,(-80*d_math),(80*d_math)) cairo_set_source_rgba(cr,0,0,0,0.0) cairo_stroke(cr) cairo_set_line_width(cr,8) cairo_arc_negative(cr,center_x,center_y,62,(80*d_math),((80*d_math)-(((160/100)*swap_perc)*d_math))) cairo_set_source_rgba(cr,1,1,1,.75) cairo_stroke(cr) --################################################################# --########## Text Backgrounds ##################################### --################################################################# --cpu_avg cairo_set_line_width(cr,14) cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND) cairo_arc(cr,center_x,center_y,102,(50*d_math),(130*d_math)) cairo_set_source_rgba(cr,1,1,1,0) cairo_stroke(cr) cairo_set_line_width(cr,12) cairo_arc(cr,center_x,center_y,102,(50*d_math),(130*d_math)) cairo_set_source_rgba(cr,.1,.1,.1,0) cairo_stroke(cr) --cpu_core1 cairo_set_line_width(cr,14) cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND) cairo_arc(cr,center_x,center_y,89,(50*d_math),(130*d_math)) cairo_set_source_rgba(cr,1,1,1,0) cairo_stroke(cr) cairo_set_line_width(cr,12) cairo_arc(cr,center_x,center_y,89,(50*d_math),(130*d_math)) cairo_set_source_rgba(cr,.1,.1,.1,0) cairo_stroke(cr) --cpu_core2 cairo_set_line_width(cr,14) cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND) cairo_arc(cr,center_x,center_y,76,(50*d_math),(130*d_math)) cairo_set_source_rgba(cr,1,1,1,0) cairo_stroke(cr) cairo_set_line_width(cr,12) cairo_arc(cr,center_x,center_y,76,(50*d_math),(130*d_math)) cairo_set_source_rgba(cr,.1,.1,.1,0) cairo_stroke(cr) --ram cairo_set_line_width(cr,14) cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND) cairo_arc(cr,center_x,center_y,47,(157*d_math),(202*d_math)) cairo_set_source_rgba(cr,1,1,1,0) cairo_stroke(cr) cairo_set_line_width(cr,12) cairo_arc(cr,center_x,center_y,47,(157*d_math),(202*d_math)) cairo_set_source_rgba(cr,.1,.1,.1,0) cairo_stroke(cr) --swap cairo_set_line_width(cr,14) cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND) cairo_arc(cr,center_x,center_y,47,(-30*d_math),(30*d_math)) cairo_set_source_rgba(cr,1,1,1,0) cairo_stroke(cr) cairo_set_line_width(cr,12) cairo_arc(cr,center_x,center_y,47,(-30*d_math),(30*d_math)) cairo_set_source_rgba(cr,.1,.1,.1,0) cairo_stroke(cr) cairo_set_line_cap(cr,CAIRO_LINE_CAP_BUTT) --################################################################# --######### Text ################################################## --################################################################# cairo_set_source_rgba(cr,1,1,1,1) t={"C","P","U"," ","A","V","E","R","A","G","E"} for i=1,#t do x,y=pt((center_x-3),(center_y+4),102,((223-(79/#t)*i))) cairo_move_to (cr,x,y) cairo_show_text (cr,t[i]) end--for cairo_stroke(cr) t={"C","P","U"," ","C","O","R","E"," ","1"} for i=1,#t do x,y=pt((center_x-3),(center_y+4),89,((223-(79/#t)*i))) cairo_move_to (cr,x,y) cairo_show_text (cr,t[i]) end--for cairo_stroke(cr) t={"C","P","U"," ","C","O","R","E"," ","2"} for i=1,#t do x,y=pt((center_x-3),(center_y+4),76,((223-(79/#t)*i))) cairo_move_to (cr,x,y) cairo_show_text (cr,t[i]) end--for cairo_stroke(cr) t={"R","A","M"} for i=1,#t do x,y=pt((center_x-3),(center_y+4),48,(((90+220)-(60/#t)*i))) cairo_move_to (cr,x,y) cairo_show_text (cr,t[i]) end--for cairo_stroke(cr) t={"P","A","W","S"} for i=1,#t do x,y=pt((center_x-3),(center_y+4),46,((134-(70/#t)*i))) cairo_move_to (cr,x,y) cairo_show_text (cr,t[i]) end--for cairo_stroke(cr) --###################################################################### -- time markers ######################################################## --###################################################################### for i=1,60 do second_markers_position=(-90*d_math)+((i*(360/60))*d_math) cairo_set_line_width(cr,2) cairo_set_line_cap(cr,CAIRO_LINE_CAP_BUTT) cairo_arc(cr,center_x,center_y,115,second_markers_position,second_markers_position) cairo_arc(cr,center_x,center_y,110,second_markers_position,second_markers_position) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) cairo_arc(cr,center_x,center_y,130,second_markers_position,second_markers_position) cairo_arc(cr,center_x,center_y,125,second_markers_position,second_markers_position) cairo_stroke(cr) end for i=i_start,i_end do hour_markers_position=(-90*d_math)+(i*(360/hours))*d_math cairo_set_line_width(cr,3) cairo_arc(cr,center_x,center_y,150,hour_markers_position,hour_markers_position) cairo_arc(cr,center_x,center_y,145,hour_markers_position,hour_markers_position) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) cairo_arc(cr,center_x,center_y,135,hour_markers_position,hour_markers_position) cairo_arc(cr,center_x,center_y,130,hour_markers_position,hour_markers_position) cairo_stroke(cr) end --###################################################################### -- time text ########################################################### --###################################################################### --###################################################################### -- mrpeacy code ######################################################## --###################################################################### cairo_set_source_rgba(cr,1,1,1,1) if hours==24 then for i=0,23 do if i==0 or i==2 or i==4 or i==6 or i==8 or i==10 or i==12 or i==14 or i==16 or i==18 or i==20 or i==22 then x,y=pt((center_x-4),(center_y+4),(hour_radius),((360/24)*i)) cairo_move_to (cr,x,y) cairo_show_text (cr,i) end end--for elseif hours==12 then for i=1,12 do x,y=pt((center_x-4),(center_y+4),(hour_radius),((360/12)*i)) cairo_move_to (cr,x,y) cairo_show_text (cr,i) end--for end--hours if seconds==5 then for i=0,59 do if i==0 or i==5 or i==10 or i==15 or i==20 or i==25 or i==30 or i==35 or i==40 or i==45 or i==50 or i==55 then x,y=pt((center_x-5),(center_y+4),(second_radius),((360/60)*i)) cairo_move_to (cr,x,y) cairo_show_text (cr,i) end end--for elseif seconds==10 then for i=0,59 do if i==0 or i==10 or i==20 or i==30 or i==40 or i==50 then x,y=pt((center_x-5),(center_y+4),(second_radius),((360/60)*i)) cairo_move_to (cr,x,y) cairo_show_text (cr,i) end end--for elseif seconds==15 then for i=0,59 do if i==0 or i==15 or i==30 or i==45 then x,y=pt((center_x-5),(center_y+4),(second_radius),((360/60)*i)) cairo_move_to (cr,x,y) cairo_show_text (cr,i) end end--for end--second cairo_stroke(cr) --###################################################################### -- mrpeacy code end #################################################### --###################################################################### --hour hand top cairo_set_line_width(cr,6) cairo_arc(cr,center_x,center_y,160,(hour_position-((hour_hand_size/2)*d_math)),(hour_position+((hour_hand_size/2)*d_math))) cairo_arc_negative(cr,center_x,center_y,140,hour_position,hour_position) cairo_set_source_rgba(cr,1,1,1,0.8) cairo_fill_preserve(cr) cairo_set_source_rgba(cr,1,1,1,0.8) cairo_close_path(cr) cairo_fill(cr) --minute hand top cairo_arc(cr,center_x,center_y,170,(minute_position-((minute_hand_size/2)*d_math)),(minute_position+((minute_hand_size/2)*d_math))) cairo_arc_negative(cr,center_x,center_y,120,minute_position,minute_position) cairo_set_source_rgba(cr,1,1,1,0.9) cairo_fill_preserve(cr) cairo_set_source_rgba(cr,1,1,1,0.9) cairo_close_path(cr) cairo_fill(cr) --second hand cairo_set_line_width(cr,2) cairo_arc(cr,center_x,center_y,10,0,(360*d_math)) cairo_set_source_rgba(cr,1,1,1,1) cairo_fill(cr) cairo_arc(cr,center_x,center_y,9,0,(360*d_math)) cairo_set_source_rgba(cr,1,1,1,1) cairo_fill(cr) cairo_set_line_width(cr,1) cairo_arc(cr,center_x,center_y,10,second_position,second_position) cairo_arc(cr,center_x,center_y,120,second_position,second_position) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) cairo_set_line_width(cr,1) cairo_arc(cr,center_x,center_y,9,second_position,second_position) cairo_arc(cr,center_x,center_y,119,second_position,second_position) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) cairo_set_line_width(cr,1) cairo_arc(cr,center_x,center_y,10,(second_position-(180*d_math)),(second_position-(180*d_math))) cairo_arc(cr,center_x,center_y,30,(second_position-(180*d_math)),(second_position-(180*d_math))) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) cairo_set_line_width(cr,1) cairo_arc(cr,center_x,center_y,9,(second_position-(180*d_math)),(second_position-(180*d_math))) cairo_arc(cr,center_x,center_y,29,(second_position-(180*d_math)),(second_position-(180*d_math))) cairo_set_source_rgba(cr,1,1,1,1) cairo_stroke(cr) --################################################################# --################################################################# --################################################################# end-- if updates>5 cairo_destroy(cr) cairo_surface_destroy(cs) cr=nil return"" end-- end main function --################################################################# --################################################################# --################################################################# --###################################################################### -- mrpeacy code ######################################################## --###################################################################### function pt(px,py,prad,pdeg) local ppo=(math.pi/180)*pdeg local px1=px+prad*(math.sin(ppo)) local py1=py-prad*(math.cos(ppo)) return px1,py1 end function font(fontt) local name=fontt.f or default_font_name or "mono" local size=fontt.fs or default_font_size or 12 local face=fontt.ff or default_font_face or "n" if face=="n" then cairo_select_font_face(cr,name,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_NORMAL) elseif face=="b" then cairo_select_font_face(cr,name,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD) elseif face=="i" then cairo_select_font_face(cr,name,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_NORMAL) elseif face=="bi" then cairo_select_font_face(cr,name,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_BOLD) end cairo_set_font_size(cr,size) end function hexcolor(hexcolort) local col=hexcolort.c or default_hex_color or 0xffffff local a=hexcolort.a or default_alpha or 1 local r,g,b=((col/0x10000) % 0x100)/255,((col/0x100) % 0x100)/255,(col % 0x100)/255 cairo_set_source_rgba(cr,r,g,b,a) end function text(textt) local x=textt.x or 100 local y=textt.y or 100 local t=textt.t or "set txt" local hj=textt.hj or default_horizontal_justify or "l" local vj=textt.vj or default_vertical_justify or "n" local r=textt.r or default_rotation or 0 cairo_text_extents(cr,t,extents) local wx=extents.x_advance local wd=extents.width local hy=extents.height local bx=extents.x_bearing local by=extents.y_bearing+hy --hl-- l=left, c=center, r=right if hj=="l" then xa=x-bx rad=0 elseif hj=="c" then xa=x-((wx-bx)/2)-bx rad=(wx-bx)/2 elseif hj=="r" then xa=x-wx rad=wx-bx else print ('hj not set correctly for text: '..t..' - "l", "c" or "r"') xa=0 rad=0 end --vj-- n=normal, nb=normal-ybearing, m=middle, mb=middle-ybearing, t=top if vj=="n" then ya=y rad2=0 ry=by elseif vj=="nb" then ya=y-by rad2=-by ry=by elseif vj=="m" then ya=y+((hy-by)/2) rad2=((hy-by)/2) ry=((hy-by)/2)-by elseif vj=="mb" then ya=y+(hy/2)-by rad2=(hy/2)-by ry=((hy-by)/2)-by elseif vj=="t" then ya=y+hy-by rad2=hy-by ry=0+by else print ('vj not set correctly for text: '..t..' - "n", "nb", "m", "mb" or "t"') ya=0 rad2=0 ry=0 end --rotation if r~=0 then local x2,y2=pt(x,y,rad2,r-180) local x1,y1=pt(x2,y2,rad,r-90) cairo_save (cr) cairo_translate (cr,x1,y1) cairo_rotate(cr,(math.pi/180)*r) cairo_show_text (cr,t) cairo_stroke (cr) cairo_restore (cr) else cairo_move_to (cr,xa,ya) cairo_show_text (cr,t) cairo_stroke (cr) end--if ro --set non local variables to nil xa=nil;ya=nil;rad=nil;rad2=nil;ry=nil end--function text #####################################################

.gif)
Édité par loutch Le 08/10/2014 à 10h31
Linuxmint 24.02 Xia - Mageia 9 xfce et plasma sur ssd sur HP Pavilion g7
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX
Xubuntu 18.04 LTS et 24.04 en xfce sur ASUS Rog STRIX

Adrien.D Membre non connecté
-
- Voir le profil du membre Adrien.D
- Inscrit le : 30/05/2011
- Site internet
- Groupes :
Je remonte un petit peu ce sujet puisque j'ai réalisé quelques modifs sur mes conky :
-- En images --
--- Vue générale : ---
--- Vue Conky système ---
--- Vue Conky Date ---
-- La configuration --
--- Le conky système : ---
Code :
background yes
use_xft yes
xftfont Sans:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
double_buffer yes
minimum_size 500 500
maximum_width 300
text_buffer_size 2400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment top_left
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#
color1 white
#
color2 orange
#
color3 white
#
color4 lightblue
#cornflowerblue
# Lua Load #
#lua_load ~/.conky/ring.lua
#lua_draw_hook_pre clock_rings
TEXT
${font Sans:size=8}${color3}Operating system : ${goto 120}${color2}${exec lsb_release -d | cut -f2 }
${color3}Kernel: ${color2}${exec expr `uname -r`} ${goto 160}${color3}Arch: ${color2}$machine
${color3}Uptime:${color2} $uptime ${goto 160}${color3}Load:${color2} $loadavg
${color3}Processes: ${color2} $processes${color3}${goto 160}Running Process: ${color2} $running_processes
${color3}Battery: ${color2} ${exec acpi -b | awk '{ print "State : " $3 " Capacity : "$4 " (" $5 ")"}'}
${color3}CPU : ${hr}${color2}
${color3}Clock frequency :${color2} ${freq_g} GHz
${color3}Core 1:${color2} ${cpu cpu0}%${goto 85}${color4}${cpubar cpu0 6,60}${color2}${goto 170}${exec expr `sensors | grep 'Core 0' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}°C${goto 200}${color4}${execbar expr `sensors | grep 'Core 0' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}${color2}
${color3}Core 2:${color2} ${cpu cpu1}%${goto 85}${color4}${cpubar cpu1 6,60}${color2}${goto 170}${exec expr `sensors | grep 'Core 1' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}°C${goto 200}${color4}${execbar expr `sensors | grep 'Core 1' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}${color2}
${color3}Core 3:${color2} ${cpu cpu2}%${goto 85}${color4}${cpubar cpu2 6,60}${color2}${goto 170}${exec expr `sensors | grep 'Core 2' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}°C${goto 200}${color4}${execbar expr `sensors | grep 'Core 2' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}${color2}
${color3}Core 4:${color2} ${cpu cpu3}%${goto 85}${color4}${cpubar cpu3 6,60}${color2}${goto 170}${exec expr `sensors | grep 'Core 3' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}°C${goto 200}${color4}${execbar expr `sensors | grep 'Core 3' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}${color2}
${color3}Core 5:${color2} ${cpu cpu4}%${goto 85}${color4}${cpubar cpu4 6,60}${color2}${goto 170}${exec expr `sensors | grep 'Core 0' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}°C${goto 200}${color4}${execbar expr `sensors | grep 'Core 0' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}${color2}
${color3}Core 6:${color2} ${cpu cpu5}%${goto 85}${color4}${cpubar cpu5 6,60}${color2}${goto 170}${exec expr `sensors | grep 'Core 1' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}°C${goto 200}${color4}${execbar expr `sensors | grep 'Core 1' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}${color2}
${color3}Core 7:${color2} ${cpu cpu6}%${goto 85}${color4}${cpubar cpu6 6,60}${color2}${goto 170}${exec expr `sensors | grep 'Core 2' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}°C${goto 200}${color4}${execbar expr `sensors | grep 'Core 2' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}${color2}
${color3}Core 8:${color2} ${cpu cpu7}%${goto 85}${color4}${cpubar cpu7 6,60}${color2}${goto 170}${exec expr `sensors | grep 'Core 3' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}°C${goto 200}${color4}${execbar expr `sensors | grep 'Core 3' | cut -d+ -f2 | cut -d( -f1 | cut -d. -f1`}${color2}
${color3}MEMORY : ${hr}${color2}
${color3}RAM:${goto 40}${color2} $mem / $memmax ${goto 170}$memperc% ${goto 200}${color4}${membar}${color2}
${color3}SWAP:${goto 40}${color2} ${swap} / ${swapmax} ${goto 170} ${swapperc}%${goto 200}${color4}${swapbar}
${color3}STORAGE :${hr}${color2}
${color3}Root ${color2}${goto 50}${fs_used /} / ${fs_size /} ${goto 170}${fs_used_perc /}% ${goto 200}${color4}${fs_bar /}${color2}
${color3}Home ${color2}${goto 50}${fs_used /home} / ${fs_size /home} ${goto 170}${fs_used_perc /home}% ${goto 200}${color4}${fs_bar /home}${color2}
${color3}DATA ${color2}${goto 50}${fs_used /media/DATA} / ${fs_size /media/DATA} ${goto 170}${fs_used_perc /media/DATA}% ${goto 200}${color4}${fs_bar /media/DATA}${color2}
#${color3}Temp DATA :${color2}${texeci 60 hddtemp /dev/sdb | cut -d : -f 3}
#
${color3}NETWORK : ${hr}${color2}
${color3}Wired : ${color2}${addr enp4s0}
${color3}Download :${color2} ${downspeedf enp4s0}k/s ${goto 175} ${color3}Upload :${color2} ${upspeedf enp4s0}k/s
${color3}Wireless : ${color2}${addr wlp3s0}
${color3}Download :${color2} ${downspeedf wlp3s0}k/s ${goto 175} ${color3}Upload :${color2} ${upspeedf wlp3s0}k/s
${color3}Public IP : ${color2}${texeci 1000 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d < -f 1} ${goto 175} ${color3}Latence : ${color2}${texeci 1 ping 8.8.8.8 -c 1 | grep time= | cut -d"=" -f4}
--- Le conky date : ---
Code :
background yes
use_xft yes
xftfont Sans:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
double_buffer yes
minimum_size 1000 300
maximum_width 1000
text_buffer_size 3000
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment bottom_left
gap_x 30
gap_y 30
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#
color1 008080
#
color2 orange
#
color3 white
#
color4 orange
#cornflowerblue
# Lua Load #
#lua_load ~/.conky/ring.lua
#lua_draw_hook_pre clock_rings
TEXT
${color2}${font Liberation Mono:style=bold:size=12}${execpi 300 TODAY=`date +%_d` ; cal -s | sed s/di/'${color2}'di/ |sed s/sa$/sa$'${color3}'/ | sed s/"$TODAY"'b'/'${color4}'"$TODAY"'${color3}'/}
${color3}${font Sans:size=72}${exec export LC_TIME="en_US.UTF-8" ; date "+%l:%M"} ${font Sans:size=48}${exec export LC_TIME="en_US.UTF-8" ; date "+%p"}
${color1}${font Sans:size=24}${time %A} ${time %d} ${time %B} ${time %Y}
${color3}${font Sans:size=20}Aujourd'hui c'est la Saint${color1}${texeci 1000 wget -O - -q http://fetedujour.fr/ --user-agent="Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" | grep h2 | head -1 | cut -d">" -f2 | cut -d"<" -f1 | cut -d":" -f2 }
--- Le script de lancement : ---
Code BASH :
#!/bin/bash killall conky sleep 1 conky -c /home/adrien/.conkyrc sleep 1 conky -c /home/adrien/.conkyrc2
Config : PC Fixe : X470 GAMING PRO- AMD Ryzen 5 2600X - 16Go RAM - Radeon RX 560 (Pilote libre) - Gentoo Linux - GNOME Desktop - Kernel 5.10 LTS
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !
Ancien Webmaster de MageiaLinuxOnline. Les remplaçants assurent !


Visiteur
Visiteur

Va falloir faire attention à ta partition DATA

Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie