logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 25-04-2020 01:40:41

kawer
Membre
Lieu : Earth
Distrib. : Debian Stable
Noyau : Current
(G)UI : Xfce
Inscription : 08-10-2013

Partagez vos conky !

Conky, le petit machin bidule truc qui affiche en background des informations sur l'état de tes machine/soft/autres et qui te rend joyeux d'avoir un beau truc sur ton bureau après t'être grincer les dents à obtenir le résultat voulu .. Tu peu le partager ici (le fichier de config et le screenshot qui va avec) afin de donner des idées et pourquoi pas d'en apprendre plus encore ..

Dernière modification par kawer (26-10-2020 00:11:25)


ThinkPad T530 - Debian - CoreBoot

Hors ligne

#2 25-04-2020 01:55:40

tophechris94
Membre
Lieu : val de marne ( 94)
Distrib. : debian unstable
Noyau : 5.10.0-8-686-pae
(G)UI : openbox
Inscription : 08-07-2016
Site Web

Re : Partagez vos conky !

Salut a tous , mon .conkyrc sur openbox et icewm .
1587779807.png1587780071.png

#this is the config :/ just make sure u dont edit it without knowing wut u doing ;]
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override

#KDE Below
#own_window_type normal
#own_window_class Conky
#own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

# Minimum size of text area
minimum_size 180 0
#maximum_width 200

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline yes

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 5

# border width
border_width 1

# Default colors and also border colors
#default_color B7EA81
#default_shade_color black
#default_outline_color white
own_window_colour transparent
#this is your color pallete
color0  ffffff  #white
color1  00ff00  #green
color2  0000ff  #blue
color3  ff0000  #red
color4  7da8f8  #wierd blue
color5  496291  #azul mas oscuro
color6  B7EA81  #great green


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

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 10
gap_y 30

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none
draw_graph_borders yes
TEXT
${offset 55}${color1}${font INFECTED:size=20}☠debian☠${alignr}
${offset 55}${color6}${font Defused::bold:size=8}☠☠${kernel}☠☠${alignr}
${voffset 5}${color2}${font Defused:size=8}Uptime:${alignr}${color3}${uptime}

${color5}CPU-0: ${offset 6}${color0}${cpu cpu0}% ${offset -6}${alignr}${color5}CPU-1: ${offset 6}${color0}${cpu cpu0}% ${offset -6}${alignr}
${color6}${cpugraph cpu0 15,100 00FF00 FF0000}${color6}${cpugraph cpu1 15,100 00FF00 FF0000}${alignr}

${color5}RAM: ${offset 12}${color0}$memperc% ${offset -12}${alignr}
${color6}${memgraph 15,200 00FF00 FF0000}

${color2}${font Defused:size=10}Home:
${color1}${font Defused:size=10}${fs_free /home}/${fs_size /home}

${color6}${fs_bar 10,210 /home}
${offset 0}${color1}${font INFECTED:size=17}TOP CPU${font}
${color6}${voffset 10}${font JUICE Bold:size=8}${top name 1}${alignr}${top cpu 1}
${top name 2}${alignr}${top cpu 2}
${top name 3}${alignr}${top cpu 3}
${top name 4}${alignr}${top cpu 4}
${top name 5}${alignr}${top cpu 5}
${offset 0}${color1}${font INFECTED:size=17}TOP MEM${font}
${color6}${voffset 10}${font JUICE Bold:size=8}${top_mem name 1}${alignr}${top_mem mem 1}
${top_mem name 2}${alignr}${top_mem mem 2}
${top_mem name 3}${alignr}${top_mem mem 3}
${top_mem name 4}${alignr}${top_mem mem 4}
${top_mem name 5}${alignr}${top_mem mem 5}





 

Dernière modification par tophechris94 (25-04-2020 02:00:49)


sparkylinux-ver-fluxbox-icewm=> https://mega.nz/file/jJ8hiJBD#rhy5o3GzC … RFSeokkwFo
je viens en paix , pas taper sur la tete .

Hors ligne

#3 25-04-2020 07:53:19

vv222
Administrateur
Distrib. : Debian Sid
(G)UI : sway
Inscription : 18-11-2013
Site Web

Re : Partagez vos conky !

Pour les amateurs de Conky, voici le mien :
1586108621.png

Et le fichier de configuration qui le génère :

conky.config = {
  alignment = 'top_right',
  default_graph_height = 30,
  default_color = 'white',
  double_buffer = true,
  use_xft = true,
  font = 'DejaVu Sans Condensed:style=Bold:size=9',
  mpd_host = '/run/user/1000/mpd/socket',
  maximum_height = 1024,
  maximum_width = 300,
  minimum_height = 1024,
  minimum_width = 300,
  own_window = true,
  own_window_type = 'desktop',
  short_units = true,
  update_interval = 1.0,
}

conky.text = [[
${time %A %d %B}${alignr}${time %R}

Uptime ${alignr} $uptime
Mises-à-jour disponibles ${alignr} ${execi 1800 echo $(($(apt list --upgradable 2>/dev/null | wc -l) - 1))}
En attente de redémarrage ${alignr} ${execi 1800 test -e /var/run/reboot-required && echo oui || echo non}

${font DejaVu Sans Condensed:style=Bold:size=12}Réseau ${hr}${font}

${if_up enp3s0}${alignc}enp3s0
${downspeedgraph enp3s0 30,145 FFC5B1 982700 30000 -t}$alignr${upspeedgraph enp3s0 30,145 B1C5FF 002798 30000 -t}
${font DejaVu Sans Condensed:style=Bold:size=12}${voffset -34}$alignc${offset -75}${downspeedf enp3s0}K/s ⬇${font}
${font DejaVu Sans Condensed:style=Bold:size=12}${voffset -19}$alignc${offset 85}${upspeedf enp3s0}K/s ⬆${font}
${endif}

${font DejaVu Sans Condensed:style=Bold:size=12}CPU ${hr}${font}

${cpugraph cpu0 40,298 C5FFC5 279827 -t}
${top name 1} $alignr ${top cpu 1}%
${top name 2} $alignr ${top cpu 2}%
${top name 3} $alignr ${top cpu 3}%
${top name 4} $alignr ${top cpu 4}%
${top name 5} $alignr ${top cpu 5}%

${font DejaVu Sans Condensed:style=Bold:size=12}RAM ${hr}${font}

${alignr}$mem / $memmax
${memgraph 40,298 FFFFB1 989800 -t}
${top_mem name 1} $alignr ${top_mem mem_res 1}
${top_mem name 2} $alignr ${top_mem mem_res 2}
${top_mem name 3} $alignr ${top_mem mem_res 3}
${top_mem name 4} $alignr ${top_mem mem_res 4}
${top_mem name 5} $alignr ${top_mem mem_res 5}

${font DejaVu Sans Condensed:style=Bold:size=12}Disques ${hr}${font}

/dev/sdb — / + /home
${diskiograph /dev/sdb B1FFB1 009800 270000 -t}
${font DejaVu Sans Condensed:style=Bold:size=12}${voffset -34}${alignc}${diskio /dev/sdb}/s${font}

/dev/sdc — /home/vrac
${diskiograph /dev/sdc FFB1B1 980000 170000 -t}
${font DejaVu Sans Condensed:style=Bold:size=12}${voffset -34}${alignc}${diskio /dev/sdc}/s${font}

/dev/sda — /home/musique
${diskiograph /dev/sda B1B1FF 000098 130000 -t}
${font DejaVu Sans Condensed:style=Bold:size=12}${voffset -34}${alignc}${diskio /dev/sda}/s${font}

/dev/sdd — /home/jeux
${diskiograph /dev/sdd FFB1FF 980098 170000 -t}
${font DejaVu Sans Condensed:style=Bold:size=12}${voffset -34}${alignc}${diskio /dev/sdd}/s${font}
${if_running mpd}$if_mpd_playing

${font DejaVu Sans Condensed:style=Bold:size=12}Musique ${hr}${font}

${alignc}$mpd_title
${alignc}$mpd_album
${alignc}$mpd_artist

$mpd_status ${alignr}$mpd_elapsed / $mpd_length

$mpd_bar${endif}${endif}
]]


Jouer sous Debian ? Facile !

Ceterum censeo Barum esse delendam

En ligne

#4 25-04-2020 07:55:03

Anonyme
Invité

Re : Partagez vos conky !

Bonjour à tous,

et bien le mien sur un écran 1680x1050 :


Mon_Conky.png

.conkyrc



conky.config = {
  alignment = 'top_middle',
  maximum_width = 1366,
  minimum_width = 300,
 
  gap_x = -650,
  gap_y = 75,
  border_inner_margin = 2,
  border_outer_margin = 8,
 
  stippled_borders = 1,
    border_width = 1,
   
 
 
  own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'normal',
    own_window_transparent = false,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   
   
    double_buffer = true,

 
  short_units = true,
    format_human_readable = false,
    times_in_seconds = false,
  update_interval = 1,
  use_spacer = 'none',
  net_avg_samples = 1,
  cpu_avg_samples = 1,
  top_cpu_separate = false,

  use_xft = true,
  override_utf8_locale = true,

  draw_shades = true,
  draw_borders = true,
  draw_graph_borders = true,

  default_bar_width = 50,
    default_bar_height = 6,
  default_graph_width = 60,
    default_graph_height = 35,

  --own_window_colour = '73675F',
  own_window_colour = '1E1E1E',
  default_color = '5E5350',
  default_shade_color = '0F0F0F',
        color1 = '666666',
        color2 = '1793d0',

}

conky.text = [[

${voffset 0}
${font Regular:style=Bold:size=24}${color A5968C}${alignc}${texeci 3600 date +%A | awk '{print toupper(substr($0,0,1))tolower(substr($0,2))}'} ${time %d %B %Y}

${image ~/.conky/images/intel.png -p 4,60}
${font zekton:style=Bold:size=20}${color A5968C}${alignc}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*://'| uniq | cut -c 1-26}$color
${offset 10}${font Regular:style=Bold:size=22}${color A5968C}CPU$color${alignr 20}${exec sensors | grep 'CPU Temperature:' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font Regular:style=Bold:size=22}${color A5968C}FAN$color${alignr 2}${exec sensors | grep 'CPU FAN Speed:' | awk '{print $4}'}${font Regular:style=Bold:size=12} Tr/min $color
${offset 10}${font Regular:style=Bold:size=22}${color A5968C}Core 0$color${alignr 20}${exec sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font Regular:style=Bold:size=22}${color A5968C}Core 1$color${alignr 20}${exec sensors | grep 'Core 1' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font Regular:style=Bold:size=22}${color A5968C}Core 2$color${alignr 20}${exec sensors | grep 'Core 2' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font Regular:style=Bold:size=22}${color A5968C}Core 3$color${alignr 20}${exec sensors | grep 'Core 3' | awk '{print $3}' | cut -c2-3} °C $color

${image ~/.conky/images/nvidia.png -p 4,375}
${offset 60}${font zekton:style=Bold:size=20}${color A5968C}${exec nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits}$color
${alignr 60}${font Regular:style=Bold:size=22}${exec nvidia-settings -q 'GPUCurrentFanSpeedRPM' | grep Attribute | cut -d ' ' -f 6 | cut -c 1-4 | tr -d '.'}${alignr 100}${font Regular:style=Bold:size=12}Tr/min
${font Regular:style=Bold:size=22}${alignc}${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}${offset 5}°C
${alignc}${execbar 20,250 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}
${font zekton:style=Bold:size=22}${color A5968C}${alignc}HDD$color
${font Regular:style=Bold:size=22}${alignc}${execi 10 sudo hddtemp -n /dev/sda}${offset 5}°C
${image ~/.conky/images/corsaire.png -p 4,555}
${offset 10}${color A5968C}${font Regular:style=Bold:size=18}RAM${goto 260}${color}$memperc%\
${voffset 15}${goto 20}${if_match ${memperc} > 0}${color A5968C}${else}${color}${endif}${font :size=12}▬\
${if_match ${memperc} > 10}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 15}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 20}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 25}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 30}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 35}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 40}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 45}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 50}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 55}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 60}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 65}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 70}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 75}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 80}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 85}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 90}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} > 95}${color A5968C}${else}${color}${endif}▬\
${if_match ${memperc} == 100}${color A5968C}${else}${color}${endif}▬

${offset 10}${color A5968C}${font Regular:style=Bold:size=18}SWAP${goto 260}${color}$swapperc%\
${voffset 15}${goto 20}${if_match ${swapperc} > 0}${color A5968C}${else}${color}${endif}${font :size=12}▬\
${if_match ${swapperc} > 10}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 15}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 20}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 25}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 30}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 35}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 40}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 45}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 50}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 55}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 60}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 65}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 70}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 75}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 80}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 85}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 90}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} > 95}${color A5968C}${else}${color}${endif}▬\
${if_match ${swapperc} == 100}${color A5968C}${else}${color}${endif}▬

${image ~/.conky/images/DL_UP.png  -p 90,770}
${offset 10}${font Regular:style=Bold:size=18}${color A5968C}Up: ${goto 260}${color}${upspeedf enp5s0}\
${voffset 15}${goto 20}${if_match ${upspeedf enp5s0} > 0}${color FF9042}${else}${color}${endif}${font :size=12}▬\
${if_match ${upspeedf enp5s0} > 10}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 15}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 20}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 25}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 30}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 35}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 40}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 45}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 50}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 55}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 60}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 65}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 70}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 75}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 80}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 85}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 90}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 95}${color FF9042}${else}${color}${endif}▬\
${if_match ${upspeedf enp5s0} > 100}${color FF9042}${else}${color}${endif}▬

${offset 10}${font Regular:style=Bold:size=18}${color A5968C}Down: ${goto 260}${color}${downspeedf enp5s0}\
${voffset 15}${goto 20}${if_match ${downspeedf enp5s0} > 0}${color 8BC34A}${else}${color}${endif}${font :size=12}▬\
${if_match ${downspeedf enp5s0} > 50}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 100}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 125}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 150}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 175}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 200}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 225}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 250}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 275}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 300}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 350}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 400}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 450}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 500}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 600}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 700}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 800}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 850}${color 8BC34A}${else}${color}${endif}▬\
${if_match ${downspeedf enp5s0} > 900}${color 8BC34A}${else}${color}${endif}▬\

${voffset 0}${font}
]];

 



Les icônes dans le dossier ~/.conky/images

corsaire.png intel.png DL_UP.png nvidia.png

Dernière modification par Anonyme (25-04-2020 08:19:49)

#5 25-04-2020 08:41:19

Anonyme
Invité

Re : Partagez vos conky !

C'est moche de me faire remonter des vieux souvenir datant d'avant 2010 lol

#6 25-04-2020 12:00:56

22Douze
Membre
Distrib. : Debian 10
Noyau : 4.19.0-8-amd64
(G)UI : Pantheon
Inscription : 24-08-2019

Re : Partagez vos conky !

Le mien est ultra simple.

1587815735.png 1587816248.png

- Le pourcentage du Cpu passe au rouge au dessus de 80%
- Le pourcentage de la batterie va du vert au rouge (en passant par le jaune et le orange) en fonctionne de la charge/décharge de la batterie
- Les temperatures passent au rouge au dessus de 65°C

background no
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1
total_run_times 0
own_window yes
own_window_title conky
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 128
double_buffer yes
minimum_size 113 100
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
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 676767
color2 FFFFFF
color3 FF0000
color4 FFA500
color5 FFFF00
color6 80C904

TEXT
${color2} ${font sans-serif:bold:size=8}Processeur ${font sans-serif:bold:size=8} $alignr ${color2}${if_match ${cpu}>80}${color3}${else}${endif}${cpu}%
${color2} ${font sans-serif:normal:size=8}Cpu ${font sans-serif:bold:size=8}1 ${color1} ${cpubar cpu1}
${color2} ${font sans-serif:normal:size=8}Cpu ${font sans-serif:bold:size=8}2 ${color1} ${cpubar cpu2}
${color2} ${font sans-serif:nomral:size=8}Cpu ${font sans-serif:bold:size=8}3 ${color1} ${cpubar cpu3}
${color2} ${font sans-serif:normal:size=8}Cpu ${font sans-serif:bold:size=8}4 ${color1} ${cpubar cpu4}
${color2} ${font sans-serif:bold:size=8}Mémoire ${font sans-serif:bold:size=8} $alignr ${color2}${if_match ${memperc}>90}${color3}${else}${endif}${memperc}%
${color1} ${membar}
${color2} ${font sans-serif:bold:size=8}Système ${font sans-serif:bold:size=8} $alignr ${color2}${if_match ${fs_used_perc /}>90}${color3}${else}${endif}${fs_used_perc /}%
${color1} ${fs_bar /}
${color2} ${font sans-serif:bold:size=8}Data ${font sans-serif:bold:size=8} $alignr ${color2}${if_match ${fs_used_perc /home/22Douze}>90}${color3}${else}${endif}${fs_used_perc /home/22Douze}%
${color1} ${fs_bar /home/22Douze}
${color2} ${font sans-serif:bold:size=8}Batterie ${font sans-serif:bold:size=8}${if_match ${battery_percent} < 15}${color3}${else}\
${color2} ${font sans-serif:bold:size=8} ${if_match ${battery_percent} < 25}${color4}${else}\
${color2} ${font sans-serif:bold:size=8} ${if_match ${battery_percent} < 35}${color5}${else}\
${color2} ${font sans-serif:bold:size=8} ${if_match ${battery_percent} < 90}${color2}${else}\
${color6}${endif}${endif}${endif}${endif}\
$alignr${font sans-serif:bold:size=8} ${battery_percent}%${color}
${color1} ${battery_bar}

${color2} ${font sans-serif:normal:size=8}Processeur ${font sans-serif:bold:size=8} $alignr ${color2}${if_match ${hwmon 1 temp 1}>65}${color3}${else}${endif}${hwmon 1 temp 1}°C
${color2} ${font sans-serif:normal:size=8}Ssd ${font sans-serif:bold:size=8} $alignr ${color2}${if_match ${hddtemp /dev/sda}>65}${color3}${else}${endif}${hddtemp /dev/sda}°C
${color2} ${font sans-serif:normal:size=8}Batterie ${font sans-serif:bold:size=8} $alignr ${color2}${if_match ${acpitemp}>65}${color3}${else}${endif}${acpitemp}°C

${color2}${font sans-serif:bold:size=12} ${time %H:}${font sans-serif:bold:size=10}${time %M} ${font sans-serif:normal:size=10}${alignr}${time %d/%m/%y}

Hors ligne

#7 01-07-2020 13:56:20

TyZef
Membre
Distrib. : Debian_12_Ka’ay
Inscription : 09-05-2013

Re : Partagez vos conky !

voici voilou !

1593612257.png

conky inspire principalement de >>> Joel Bastos !!

et de 22Douze ici meme pour la batterie, merci 22Douze !!!

et j'allais oublier Martin Sosic pour les icones !


########################
# kintoandar            
########################


# Create own window instead of using desktop
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,skip_taskbar
#background yes

# Use double buffering
double_buffer yes

# fiddle with window
use_spacer right
use_xft yes

# Update interval in seconds
update_interval 5.0

# Minimum size of text area
minimum_size 160 5
maximum_width 400

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no

uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders
#stippled_borders 8

# border margins
#border_margin 4

# border width
#border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

own_window_colour brown
own_window_transparent yes

# Text alignment
alignment top_left

# Gap between borders of screen and text
gap_x 20
gap_y 10

# stuff after 'TEXT' will be formatted on screen
override_utf8_locale yes
xftfont Sans:size=12
xftalpha 0.8

TEXT
${color lightgrey}   ${font pixelsize=12}${time %A %d %B %Y}
${color lightgrey}       ${font L:style=Medium Italic:pixelsize=34}${time %H:%M:%S}${font}${color}

${color orange}SYSTEM ${hr 2}
${goto 6}${voffset 6}${font conkycolorslogos:size=32}d${font}${goto 55}${voffset -25}$machine
${goto 55}Kernel: ${kernel}

${offset 0}${color slate grey}Uptime: ${color lightgrey}$uptime

${offset 0}${color slate grey}CPU top:
${offset 0}${color orange} ${top name 1}${top_mem cpu 1}%
${offset 0}${color lightgrey} ${top name 2}${top cpu 2}%
${offset 0}${color lightgrey} ${top name 3}${top cpu 3}%

${offset 0}${color slate grey}CPU:${color lightgrey} $cpu% ${color slate grey}Temp: ${color lightgrey}${acpitemp}ºC
${color orange} ${offset 0}${cpugraph 15,130 666666 bbbbbb}

${offset 0}${color slate grey}Mem top:
${offset 0}${color orange} ${top_mem name 1}${top_mem mem 1}%
${offset 0}${color lightgrey} ${top_mem name 2}${top_mem mem 2}%
${offset 0}${color lightgrey} ${top_mem name 3}${top_mem mem 3}%

${offset 0}${color slate grey}Mem:  ${color orange} $memperc% ${color lightgrey}$mem/$memmax
${color orange} ${offset 0}${membar 3,100}
${offset 0}${color slate grey}Swap: ${color orange} $swapperc% ${color lightgrey}$swap/$swapmax
${color orange} ${offset 0}${swapbar 3,100}

${offset 0}${color slate grey}/home:  ${color lightgrey}${fs_free /home} free
${offset 0} ${color orange} ${fs_bar 3,100 /home}

${offset 0}${color slate grey}IP: ${color lightgrey}${exec ip route list|grep src|awk {'print $9'}}
${offset 0}${color slate grey}Signal: ${color orange}${wireless_link_bar 3,66 wlp2s0}
${offset 0}$alignc${color slate grey}Up:${color lightgrey}${upspeed wlp2s0}${offset 0}${color slate grey} Down:${color lightgrey}${downspeed wlp2s0}
${color orange} ${offset 0}${upspeedgraph wlp2s0 15,65 666666 bbbbbb}${color orange} ${offset 0}${downspeedgraph wlp2s0 15,65 666666 bbbbbb}
${offset 0}$alignc${color slate grey}Up:${color lightgrey}${totalup wlp2s0}${offset 0}${color slate grey} Down:${color lightgrey}${totaldown wlp2s0}

${offset 0}${color slate grey}Batterie: ${color lightgrey} ${battery_percent BAT1}%
${color orange} ${offset 0}${battery_bar BAT1 3,100}
 

Dernière modification par TyZef (01-07-2020 14:14:24)


TheMatrixAnimated.gif

Hors ligne

#8 08-07-2020 09:28:50

jeremix
Membre
Distrib. : Debian Buster
Noyau : Linux 4.19.0-9-amd64
(G)UI : Xfce
Inscription : 21-09-2009

Re : Partagez vos conky !

Salut,
un conky 1.10 avec Clock rings lua et Sidepanes (https://addy-dclxvi.deviantart.com)

1594201049.png

--[[
#=====================================================================================
#                              
# Date    : 13/03/2017
# name    : Sidepanes
# Author  : Adhi Pambudi
#           https://plus.google.com/+AdhiPambudi
#           https://addy-dclxvi.deviantart.com
#     https://github.com/addy-dclxvi
# Version : v0.01
# License : Distributed under the terms of GNU GPL version 2 or later,
# Except the icons (extracted from Min icon pack)
#=====================================================================================
]]

conky.config = {
--##  Begin Window Settings  #####################
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
own_window_colour = '#000000',
own_window_class = 'Conky',
own_window_title = 'Sidepanes Conky',
--## ARGB can be used for real transparency
--## NOTE that a composite manager is required for real transparency.
--## This option will not work as desired (in most cases) in conjunction with
--## own_window_type normal
-- own_window_argb_visual yes # Options: yes or no
-- own_window_argb_visual = true,

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

minimum_width = 300,
minimum_height = 670,
maximum_width = 300,

alignment = 'top_right',
gap_x = 15,--## left | right
gap_y = 5,--## up | down
--######################  End Window Settings  ###
--##  Font Settings  #############################
-- Use Xft (anti-aliased font and stuff)
use_xft = true,
font = 'Roboto Regular:size=10',


-- Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha = 1,
-- Force UTF8? requires XFT ###
override_utf8_locale = true,

uppercase = false,
--########################  End Font Settings  ###
--##  Colour Settings  ###########################
draw_shades = false,--yes
default_shade_color = 'black',

draw_outline = false,-- amplifies text if yes
default_outline_color = 'black',

default_color = '#d8dee8',-- White
color1 = '#bf616a',-- Red
color2 = '#a3be8c',-- Green
color3 = '#ebcb8b',-- Yellow
color4 = '#81a1c1',-- Blue
--######################  End Colour Settings  ###
--##  Borders Section  ###########################
draw_borders = false,
-- Stippled borders?
stippled_borders = 0,
-- border margins
border_inner_margin = 0,
border_outer_margin = 0,
-- border width
border_width = 0,
-- graph borders
draw_graph_borders = true,--no
--default_graph_size 15 40
--#######################  End Borders Secton  ###
--##  Miscellaneous Section  #####################
-- Boolean value, if true, Conky will be forked to background when started.
background = true,
-- Adds spaces around certain objects to stop them from moving other things
-- around, this only helps if you are using a mono font
-- Options: right, left or none
use_spacer = 'none',

-- Default and Minimum size is 256 - needs more for single commands that
-- "call" a lot of text IE: bash scripts
--text_buffer_size 6144

-- Subtract (file system) buffers from used memory?
no_buffers = true,

-- change GiB to G and MiB to M
short_units = true,

-- Like it says, ot pads the decimals on % values
-- doesn't seem to work since v1.7.1
pad_percents = 2,

-- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
-- $image lots. Set to 0 to disable the image cache.
imlib_cache_size = 0,

-- Use the Xdbe extension? (eliminates flicker)
-- It is highly recommended to use own window with this one
-- so double buffer won't be so big.
double_buffer = true,

--   Maximum size of user text buffer, i.e. layout below TEXT line in config file
--  (default is 16384 bytes)
-- max_user_text 16384

-- Desired output unit of all objects displaying a temperature. Parameters are
-- either "fahrenheit" or "celsius". The default unit is degree Celsius.
-- temperature_unit Fahrenheit
--################  End Miscellaneous Section  ###

update_interval = 1,

lua_load = '~/.conky/clock_rings.lua',
lua_draw_hook_pre = 'clock_rings',


};

conky.text = [[

${voffset 8}${color 1B708D}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 0}${color FFFFFF}${font caviar dreams:bold:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color 1B708D}${hr}
${image ~/.conky/debian-logo.png -p 155,150 -s 40x40}
${execPi 2 ~/.conky/caps_num.sh}
${voffset 90}

${image ~/.conky/icones/weather.png -p 10,255 -s 72x72}
${offset 75} Météo
${voffset 5}${offset 75} Aujourd'hui : ${execi 1800 ~/.conky/sidepanes/res/weather}
${voffset 5}${offset 25}${font Roboto Regular:size=8}${execi 1800 ~/.conky/sidepanes/res/weather -t}

${font Roboto Regular:size=10}
${image ~/.conky/icones/wifi.png -p 10,361 -s 72x72}
${offset 75} Wifi
${voffset 5}${offset 75} ${wireless_essid}

${image ~/.conky/icones/email.png -p 10,438 -s 72x72}
${offset 75} Email
${voffset 5}${offset 75} ${execi 600 ~/.conky/sidepanes/res/email} non lu

${image ~/.conky/icones/infos.png -p 10,510 -s 72x72}
${offset 75} Uptime: ${uptime_short}
${offset 75} Processes: ${processes}
${offset 75} Running: ${running_processes}

${image ~/.conky/icones/system_debian.png -p 10,597 -s 72x72}
${offset 75} ${exec cat /etc/issue.net}  $machine
${offset 75} Kernel: ${kernel}

${image ~/.conky/icones/music.png -p 10,664 -s 72x72}
${offset 75} Musique
${voffset 5}${offset 75} ${color b5f9ff}${voffset 2}${goto 91}${execi 10 ~//.conky/sidepanes/res/clementine artist}
${goto 91}${execi 10 ~//.conky/sidepanes/res/clementine title}


${image ~/.conky/cover.jpg -p 220, 690 -s 65x65 -f 10}
${execi 10 ~//.conky/sidepanes/res/clementine cover}

]];
 


LaptopThinkpad W540 : i7-4910MQ 2.90Ghz Nvidia K2100M
Laptop ThinkPad L540 : i5-4340M 2.90Ghz
1256545775.png

Hors ligne

#9 16-08-2020 17:50:39

Anonyme
Invité

Re : Partagez vos conky !

Anonyme a écrit :

C'est moche de me faire remonter des vieux souvenir datant d'avant 2010 lol




Avec un peu de Gimp smile ça fait un peu moins vieux.

New_look.png

Dernière modification par Anonyme (16-08-2020 17:52:31)

#10 20-10-2020 17:35:26

Anonyme-14
Invité

Re : Partagez vos conky !

Salut à tous smile ,

je vois que c'est au point mort depuis quelque temps sur ce sujet et je te proposerais bien Kawer de modifier le titre du sujet pour le rendre plus appétissant du genre "Partagez vos conky !" tongue

je m'intéresse depuis peu à conky et son fonctionnement, aussi je me suis aperçu en route que son langage a changé et que la plupart des thèmes existants sont boogy bugy...

J'ai lu tout vos conky (aïe aïe aïe lol) et d'autres sur internet pour me faire la main et m'inspirer, en tout cas de ce que je souhaiterais voir sur le mien.

Je vous propose de tester celui-ci :
-La batterie avec une barre de progression, son pourcentage, et sa température.
et le bonus, celui qui m'a fait super cogiter, pour ces trois là les couleurs changent sur 5 tons (bleu, vert, jaune, orange, rouge) selon leurs états.


conky.config = {
    alignment = 'top_right',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'font sans-serif:bold:size=8',
    gap_x = 10,
    gap_y = 50,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window = true,
    own_window_colour = '000000',
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = true,
    own_window_hints = 'below',
    show_graph_range = true,
    show_graph_scale = true,
    stippled_borders = 0,
    temperature_unit = 'celsius',
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
    color1 ='green',
    color2 ='yellow',
    color3 ='orange',
    color4 ='red',
    color5 ='blue',
    color6 ='white',
}

conky.text = [[
${font sans-serif:bold:size=8}
${hr}
${color5}${alignc}Batterie
${if_match ${battery_percent BAT0} < 15}${color4}${else}\
${color4}${if_match ${battery_percent BAT0} < 35}${color3}${else}\
${color3}${if_match ${battery_percent BAT0} < 50}${color2}${else}\
${color2}${if_match ${battery_percent BAT0} < 90}${color1}${else}\
${color5}${endif}${endif}${endif}${endif}${battery_bar BAT0}
${battery_percent BAT0}% ${if_match ${acpitemp} < 35}${color5}${else}\
${color5}${if_match ${acpitemp} < 45}${color1}${else}\
${color1}${if_match ${acpitemp} < 55}${color2}${else}\
${color2}${if_match ${acpitemp} < 65}${color3}${else}\
${color4}${endif}${endif}${endif}${endif}${alignr}${acpitemp}°C ${color6}
${hr}
]]
 



Le visuel (changeant selon l'état de la batterie)
20102006364356467.png

Edit : Correction du code, il manquait un ${endif} , renommez le fichier conkyrightrc puis dans le dossier où se trouve le fichier entrez la commande dans le terminal :

conky -b -c ./conkyrightrc


201021021731959525.png
201021110032897745.png

Dernière modification par Anonyme-14 (22-10-2020 01:04:15)

#11 22-10-2020 01:00:39

Anonyme-14
Invité

Re : Partagez vos conky !

La partie processeur en 4 couleurs variantes du vert, jaune, orange au rouge .

conky.config = {
    alignment = 'top_right',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'font sans-serif:bold:size=8',
    gap_x = 10,
    gap_y = 50,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window = true,
    own_window_colour = '000000',
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = true,
    own_window_hints = 'below',
    show_graph_range = true,
    show_graph_scale = true,
    stippled_borders = 0,
    temperature_unit = 'celsius',
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
    color1 ='green',
    color2 ='yellow',
    color3 ='orange',
    color4 ='red',
    color5 ='blue',
    color6 ='white',
    color7 ='black',
}

conky.text = [[
${font sans-serif:bold:size=8}
${hr}
${color5}CPU: ${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'}
${color5}${alignc}Fréquence: ${if_match ${cpu} < 20} ${color1} ${else}\
${color1} ${if_match ${cpu} < 50} ${color2} ${else}\
${color2} ${if_match ${cpu} < 90} ${color3} ${else}\
${color3} ${if_match ${cpu} < 100} ${color4} ${else}\
${color4}${endif}${endif}${endif}${endif} ${freq_g}Ghz
${if_match ${cpu} < 20} ${color1} ${else}\
${color1} ${if_match ${cpu} < 50} ${color2} ${else}\
${color2} ${if_match ${cpu} < 90} ${color3} ${else}\
${color3} ${if_match ${cpu} < 110} ${color4} ${else}\
${color4}${endif}${endif}${endif}${endif} ${cpu}% ${cpubar 6}${color6}
${hr}
]]



201022015049405353.png
201022015130375449.png
201022015152107899.png
2010220152137201.png

Le code est à jour et fonctionne sans avoir à installer lua, cairo et compagnie, juste avec conky 1.10.8
Je tente de faire simple pour que ça dure dans le temps...
À ajouter au code du commentaire #10 dans la partie conky.text = [[ pourquoi pas.

#12 22-10-2020 13:34:49

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : nakeDeb
Noyau : Linux 6.1 amd64
(G)UI : sway - i3wm - fluxbox
Inscription : 30-06-2016
Site Web

Re : Partagez vos conky !

ahhhh lorsqu'on découvre le changement de couleurs avec conky big_smile
il faudrait que je remette mes configs à jour mais il y en a quelques uns par là aussi : https://debian-facile.org/utilisateurs: … erie-perso wink

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile - Les cahiers du débutant - ISO Debian-Facile - 3hg - nakeDeb
GNU/Linux©2006-2024

Hors ligne

#13 22-10-2020 14:20:54

Anonyme-14
Invité

Re : Partagez vos conky !

hé hé, j'ai pillé ton arpconkyfull.tgz il y en a des très sympa ! big_smile

c'est l'ancien code de conky, non fonctionnel en l'état, tout remettre à jour ...

Exemple, avant c'était : background no, maintenant c'est background = false, .

#14 22-10-2020 14:35:41

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : nakeDeb
Noyau : Linux 6.1 amd64
(G)UI : sway - i3wm - fluxbox
Inscription : 30-06-2016
Site Web

Re : Partagez vos conky !

note que conky traduit les anciennes configs donc ça tourne, faut juste bidouiller un poil wink

mais oui, je remets à jour pour la nakeDeb et il y a déjà quelques conky en format lua de dispo dans le nakedDots

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile - Les cahiers du débutant - ISO Debian-Facile - 3hg - nakeDeb
GNU/Linux©2006-2024

Hors ligne

#15 22-10-2020 14:42:18

Anonyme-14
Invité

Re : Partagez vos conky !

Message à l'attention du dev tongue
201022034440747416.png
C'est grav' doc ?

#16 22-10-2020 14:45:32

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : nakeDeb
Noyau : Linux 6.1 amd64
(G)UI : sway - i3wm - fluxbox
Inscription : 30-06-2016
Site Web

Re : Partagez vos conky !

non, c'est juste que mon paquet est construit pour la nakedeb et ne s'affole pas pour ce genre de warning tongue
mais je t'ai filé le lien pour que tu décompresse le db, pas pour l'installer big_smile

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile - Les cahiers du débutant - ISO Debian-Facile - 3hg - nakeDeb
GNU/Linux©2006-2024

Hors ligne

#17 22-10-2020 15:08:19

Anonyme-14
Invité

Re : Partagez vos conky !

Pfiouuuu, c'est du gros taf que tu as fait ! debian.png
Je reçois toujours les mêmes messages en console, vieille syntaxe, essaye de convertir, nil machin, sortie...
Testé brut sans avoir jeté un oeil dans tes fichiers.
Par contre je garde tout à titre d'exemple et d'inspiration smile

#18 22-10-2020 16:55:07

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : nakeDeb
Noyau : Linux 6.1 amd64
(G)UI : sway - i3wm - fluxbox
Inscription : 30-06-2016
Site Web

Re : Partagez vos conky !

pour les permissions des modules de la nekeDeb, ce sera résolu dans la version finale, merci pour le retour Anonyme-14 wink

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile - Les cahiers du débutant - ISO Debian-Facile - 3hg - nakeDeb
GNU/Linux©2006-2024

Hors ligne

#19 22-10-2020 23:20:01

Anonyme-14
Invité

Re : Partagez vos conky !

Hop, les infos pour 4 processeurs, plus complet, tout en couleurs variantes.


conky.config = {
    alignment = 'top_right',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'font sans-serif:bold:size=8',
    gap_x = 10,
    gap_y = 50,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window = true,
    own_window_colour = '000000',
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = true,
    own_window_hints = 'below',
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    temperature_unit = 'celsius',
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
    color1 ='green',
    color2 ='yellow',
    color3 ='orange',
    color4 ='red',
    color5 ='blue',
    color6 ='white',
}

conky.text = [[
${font sans-serif:bold:size=8}
${hr}
${color5}CPU:${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'}
${color5}${alignc}Fréquence:${if_match ${cpu}< 20}${color1}${else}\
${color1}${if_match ${cpu}< 50}${color2}${else}\
${color2}${if_match ${cpu}< 90}${color3}${else}\
${color3}${if_match ${cpu}< 100}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${freq_g}Ghz
${if_match ${cpu}< 20} ${color1} ${else}\
${color1}${if_match ${cpu}< 50}${color2}${else}\
${color2}${if_match ${cpu}< 90}${color3}${else}\
${color3}${if_match ${cpu}< 110}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${cpu}% ${cpubar 6}${color6}
${goto 55}${color5}Coeur1:${if_match ${hwmon 1 temp 1}<20}${color1}${else}\
${color1}${if_match ${hwmon 1 temp 1}<30}${color2}${else}\
${color2}${if_match ${hwmon 1 temp 1}<70}${color3}${else}\
${color3}${if_match ${hwmon 1 temp 1}<90}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}+${hwmon 1 temp 1}c°${goto 225}${color5}Coeur2:${if_match ${hwmon 2 temp 2}<20}${color1}${else}\
${color1}${if_match ${hwmon 2 temp 2}<30}${color2}${else}\
${color2}${if_match ${hwmon 2 temp 2}<70}${color3}${else}\
${color3}${if_match ${hwmon 2 temp 2}<90}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}+${hwmon 2 temp 2}c°
${if_match ${cpu}< 20} ${color1} ${else}\
${color1}${if_match ${cpu}< 50}${color2}${else}\
${color2}${if_match ${cpu}< 90}${color3}${else}\
${color3}${if_match ${cpu}< 100}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${cpugraph cpu0 14,85}${cpugraph cpu1 14,85}${cpugraph cpu2 14,85}${cpugraph cpu3 14,85}
${color5}1:${if_match ${cpu cpubar}< 20}${color1}${else}\
${color1}${if_match ${cpu cpubar}< 50}${color2}${else}\
${color2}${if_match ${cpu cpubar}< 90}${color3}${else}\
${color3}${if_match ${cpu cpubar}< 100}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${cpu cpu0}%${cpubar}
${color5}2:${if_match ${cpu cpubar}< 20}${color1}${else}\
${color1}${if_match ${cpu cpubar}< 50}${color2}${else}\
${color2}${if_match ${cpu cpubar}< 90}${color3}${else}\
${color3}${if_match ${cpu cpubar}< 100}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${cpu cpu1}%${cpubar}
${color5}3:${if_match ${cpu cpubar}< 20}${color1}${else}\
${color1}${if_match ${cpu cpubar}< 50}${color2}${else}\
${color2}${if_match ${cpu cpubar}< 90}${color3}${else}\
${color3}${if_match ${cpu cpubar}< 100}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${cpu cpu2}%${cpubar}
${color5}4:${if_match ${cpu cpubar}< 20}${color1}${else}\
${color1}${if_match ${cpu cpubar}< 50}${color2}${else}\
${color2}${if_match ${cpu cpubar}< 90}${color3}${else}\
${color3}${if_match ${cpu cpubar}< 100}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${cpu cpu3}%${cpubar}${color6}
${hr}
]]
 



201023121240214890.png
201023121653718045.png
201023121715498529.png
201023121737917941.png

Toujours pareil, à ajouter dans le fichier du commentaire #10 dans la partie conky.text = [[ si ça peut étoffer à la longue ...
Mon pauvre pc en peine sur la dernière capture d'écran tongue

Edit : Ne vous fiez pas aux captures d'écran, j'ai corrigé le code pour 4 processeurs et non 5 lol ! et ils sont numérotés de 1 à 4

Dernière modification par Anonyme-14 (24-10-2020 10:55:14)

#20 23-10-2020 01:53:56

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Partagez vos conky !

Merci du retour,

Ne pourrais-tu pas ouvrir aussi un compte perso dans le wiki pour y détailler plus commodément les différents étapes des différents conky ?
Je veux dire une config générique dans laquelle tu modifies des données.
Ainsi cela apparaîtrait pour tous dans la recherche du wiki et serait plus pratique que sur le forum.
L'un n'empĉhant pas l'autre... wink

saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#21 23-10-2020 02:05:45

Anonyme-14
Invité

Re : Partagez vos conky !

Mon compte perso est là https://debian-facile.org/utilisateurs:toulibre big_smile
Je vais voir ce que je peux faire !

#22 23-10-2020 03:30:24

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Partagez vos conky !

merci.gif

saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#23 26-10-2020 00:18:19

kawer
Membre
Lieu : Earth
Distrib. : Debian Stable
Noyau : Current
(G)UI : Xfce
Inscription : 08-10-2013

Re : Partagez vos conky !

Voici ma petite contribution :

mini_201026124800215889.png mini_201026124800328131.png

cat .conkyrc


conky.config = {
    background = false,
    own_window = true,
    own_window_class = 'Desktop',
    own_window_transparent = false,
    own_window_type = 'dock',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_argb_visual = true,
    own_window_argb_value = 40,
    double_buffer = true,
    use_spacer = 'none',
    use_xft = true,
    xftalpha = 1,
    font = 'hack nerd font:regular:size=9',
    update_interval = 1,
    uppercase = false,
    override_utf8_locale = true,
    stippled_borders = 1,
    border_width = 5,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    show_graph_scale = false,
    show_graph_range = false,
    alignment = 'top_right',
    minimum_width = 365,
    minimum_height = 1030,
    maximum_width = 365,
    maximym_height = 1030,
    gap_x = 05,
    gap_y = 43,
    net_avg_samples = 2,
    cpu_avg_samples = 4,
    short_units = true,
    pad_percents = 2,
    text_buffer_size = 2048,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    default_color = 'red',
}

conky.text = [[
${color slate grey}${alignc}${time %A %e %B %Y : %Hh%M}
${hr}
${color slate grey}Fête du jour${color orange}: ${font Hack:bold:size=8}${color grey}${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 "<span>Fête du jour" | head -1 | cut -d">" -f4 | cut -d"<" -f1 | sed -e 's/Nativité/kawer/' }${font}
${hr}
${color slate grey}Uptime ${color orange}:   ${color grey}${uptime}
${hr}
${color slate grey}Mises-à-jour disponibles${color orange}: ${font Hack:bold:size=8}${color red}${alignr} ${texeci 1800 echo $(($(apt list --upgradable 2>/dev/null | wc -l) - 1))}${font}
${color slate grey}En attente de redémarrage${color orange}: ${font Hack:bold:size=8}${color grey}${alignr} ${execi 1800 test -e /var/run/reboot-required && echo oui || echo non}${font}
${hr}
${color slate grey}Moc Player${color orange}: ${color green}${alignc}${moc_title}${color grey}
${hr}
${color slate grey}Cpu${color orange}: ${color grey} ${freq_g} GHz ${color grey}${if_match ${cpu}>80}${color red}${else}${endif}${cpu}% ${cpubar 6}
${offset 4}${cpugraph bfbfbf 808080}${color grey}
${color slate grey}1${color orange}:${color grey} ${if_match ${cpu cpu0}>80}${color red}${else}${endif}${cpu cpu0}% ${cpubar cpu0}${color grey}
${color slate grey}2${color orange}:${color grey} ${if_match ${cpu cpu1}>80}${color red}${else}${endif}${cpu cpu1}% ${cpubar cpu1}${color grey}
${color slate grey}3${color orange}:${color grey} ${if_match ${cpu cpu2}>80}${color red}${else}${endif}${cpu cpu2}% ${cpubar cpu2}${color grey}
${color slate grey}4${color orange}:${color grey} ${if_match ${cpu cpu3}>80}${color red}${else}${endif}${cpu cpu3}% ${cpubar cpu3}${color grey}
${hr}
${color slate grey}Top Process${color orange}:             ${color slate grey}${alignr} PID   CPU   MEM
${font Hack:bold:size=8}${color grey} ${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
${color slate grey} ${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
${color grey} ${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
${color slate grey} ${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4}${font}
${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-
${color slate grey}Processes${color orange}: ${color grey}${processes}
${hr}
${color slate grey}RAM${color orange}:  ${font Hack:bold:size=8}${color grey}${mem} / ${memmax} ${color grey}${if_match ${memperc}>80}${color red}${else}${endif}${memperc}% ${membar 4}${font}
${hr}
${color slate grey}SSD  /${color orange}: ${font Hack:bold:size=8}${color grey}${if_match ${fs_free_perc /}<20}${color red}${else}${endif}${fs_free_perc /}% ${fs_bar 6 /}${font}
${color slate grey}HDD  /${color orange}: ${font Hack:bold:size=8}${color grey}${if_match ${fs_free_perc /home/kawer/Archive}<10}${color red}${else}${endif}${fs_free_perc /home/kawer/Archive}% ${fs_bar 6 /home/kawer/Archive}${color grey}${font}
${hr}
${color slate grey}IP WLAN${color orange}: ${font Hack:bold:size=8}${color grey}${addr wlx00c0ca97d630}${font}
${color slate grey}Essid  ${color orange}: ${font Hack:bold:size=8}${color grey}${wireless_essid wlx00c0ca97d630}${font}
${color slate grey}Signal ${color orange}: ${font Hack:bold:size=8}${color grey}${wireless_link_bar 3,66 wlx00c0ca97d630}${font}
${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-
${color slate grey}IP LAN ${color orange}: ${font Hack:bold:size=8}${color grey}${addr enp3s0}${font}
${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-
${color slate grey}IP BR0 ${color orange}: ${font Hack:bold:size=8}${color grey}${addr br0}${font}
${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-
${color slate grey}IP LXC ${color orange}: ${font Hack:bold:size=8}${color grey}${addr lxcbr0}${font}
${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-
${color slate grey}IP VPN ${color orange}: ${font Hack:bold:size=8}${color grey}${addr proton0}${font}
${hr}
${color slate grey}Route${color orange}:${color grey}${alignc}${font Hack:bold:size=8}${gw_iface}${font}
${color slate grey}1${color orange}: ${font Hack:bold:size=8}${color grey}${exec ip route | sed -n "1 p" | cut -c1-45}${font}
${hr}
${color slate grey}Dns${color orange}:
${font Hack:bold:size=8}${color grey}${exec cat /etc/resolv.conf | cut -c12-}${font}
${hr}
${color slate grey}IP Public${color orange}:${color red}${alignc}${font Hack:bold:size=8}${exec curl -s https://ifconfig.me}${font}${color slate grey}
${hr}
]]
 

Dernière modification par kawer (26-10-2020 00:45:31)


ThinkPad T530 - Debian - CoreBoot

Hors ligne

#24 26-10-2020 09:15:07

Anonyme-14
Invité

Re : Partagez vos conky !

Salut, nickel Kawer smile

conky météo

201026090918914868.png

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 1,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'font sans-serif:bold:size=10',
    gap_x = 10,
    gap_y = 60,
    minimum_height = 5,
    minimum_width = 5,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = true,
    own_window_hints = 'below',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
}

conky.text = [[
${font sans-serif:bold:size=10}
#---------+
# Météo    |
#---------+
${color blue}${execpi 300 curl fr.wttr.in/Glandon?T0 --silent --max-time 3}
${color blue}${execpi 300 curl fr.wttr.in/Cramoisy?T0 --silent --max-time 3}
${color blue}${execpi 300 curl fr.wttr.in/Montfroc?T0 --silent --max-time 3}
]]



le fichier à nommer conkymeteorc par exemple.

#25 26-10-2020 10:37:28

Anonyme-14
Invité

Re : Partagez vos conky !

Conky RadioTray infos

201026063703366426.png
201026064854687194.png

Installer qdbus

apt install qdbus


Installer Radio Tray (ajoutez y autant de radios que vous souhaitez, il y en a déjà des préinstallées).

apt install radiotray


Le png RadioTray (ajuster le chemin de l'image dans la partie conky.text = [[)
201026103552314730.png

conky.config = {
    alignment = 'top_middle',
    background = true,
    border_width = 2,
    default_color = 'blue',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'font sans-serif:bold:size=14',
    gap_x = 0,
    gap_y = 80,
    minimum_height = 300,
    minimum_width = 400,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window = true,
    own_window_argb_visual = true,
    own_window_argb_value = 124,
    own_window_colour = '000000',
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = false,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    stippled_borders = 1,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
    color1 ='green',
    color2 ='yellow',
    color3 ='orange',
    color4 ='red',
    color5 ='blue',
    color6 ='white',
}


conky.text = [[
#------------------------------+
# Radio    |
#------------------------------+
${image /home/chemin-de-votre-image/radiotray.png -p 1,-1 -s 164x64}
${if_running radiotray}
${color1}On ${else}
${color4}Off ${endif} ${color5}
${hr}
${alignc}${color3}Station:
${alignc}${execi 15 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio}${color5}
${hr}
${alignc}${color1}Artiste et Chanson
${color2}${execi 15 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w35}

]]



Le fichier à nommer conkyradiorc par exemple puis dans le même dossier ouvrir le terminal et entrer la commande

conky -b -c ./conkyradiorc



Edit : J'ai rajouté une commande  On en vert et Off en rouge afin que l'utilisateur ai un repère visuel sur l'état de RadioTray.

Dernière modification par Anonyme-14 (27-10-2020 12:28:11)

Pied de page des forums