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).


L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT → ODT PDF Export

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
utilisateurs:jeremix:config:conky-1.10-lua-horloge-caps-num-lock-mail-clementine [01/11/2020 08:55]
jeremix
utilisateurs:jeremix:config:conky-1.10-lua-horloge-caps-num-lock-mail-clementine [01/11/2020 09:09] (Version actuelle)
jeremix
Ligne 14: Ligne 14:
 ====Conky lua Horloge, Caps/Num Lock, Mail, Clementine ==== ====Conky lua Horloge, Caps/Num Lock, Mail, Clementine ====
  
-{{/file-Rc014d8061527263bd6b142f52bc8333a.png}}+{{/file-R00f90730c9d3ff74dca73600622f4f77.png}}
  
  
Ligne 217: Ligne 217:
         fg_alpha=0.2,​         fg_alpha=0.2,​
         -- "​x"​ and "​y"​ are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.         -- "​x"​ and "​y"​ are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
-        x=100, y=150,+        x=180, y=170,
         -- "​radius"​ is the radius of the ring.         -- "​radius"​ is the radius of the ring.
         radius=50,         radius=50,
Ligne 235: Ligne 235:
         fg_colour=0x1B708D,​         fg_colour=0x1B708D,​
         fg_alpha=0.4,​         fg_alpha=0.4,​
-        x=100, y=150,+        x=180, y=170,
         radius=56,         radius=56,
         thickness=5,​         thickness=5,​
Ligne 249: Ligne 249:
         fg_colour=0x1B708D,​         fg_colour=0x1B708D,​
         fg_alpha=0.6,​         fg_alpha=0.6,​
-        x=100, y=150,+        x=180, y=170,
         radius=62,         radius=62,
         thickness=5,​         thickness=5,​
Ligne 263: Ligne 263:
         fg_colour=0x1B708D,​         fg_colour=0x1B708D,​
         fg_alpha=0.8,​         fg_alpha=0.8,​
-        x=100, y=150,+        x=180, y=170,
         radius=70,         radius=70,
         thickness=5,​         thickness=5,​
Ligne 277: Ligne 277:
         fg_colour=0x1B708D,​         fg_colour=0x1B708D,​
         fg_alpha=1,         fg_alpha=1,
-        x=100, y=150,+        x=180, y=170,
         radius=76,         radius=76,
         thickness=5,​         thickness=5,​
         start_angle=-90,​         start_angle=-90,​
         end_angle=90         end_angle=90
-    }, 
- { 
-        name='​cpu',​ 
-        arg='​cpu0',​ 
-        max=110, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.1,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=100, y=350, 
-        radius=97, 
-        thickness=4,​ 
-        start_angle=0,​ 
-        end_angle=240 
-    },    ​ 
- { 
-        name='​cpu',​ 
-        arg='​cpu1',​ 
-        max=100, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.6,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=100, y=350, 
-        radius=86, 
-        thickness=13,​ 
-        start_angle=0,​ 
-        end_angle=240 
-    }, 
-    { 
-        name='​cpu',​ 
-        arg='​cpu2',​ 
-        max=100, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.5,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=100, y=350, 
-        radius=71, 
-        thickness=12,​ 
-        start_angle=0,​ 
-        end_angle=240 
-    }, 
-{ 
-        name='​cpu',​ 
-        arg='​cpu3',​ 
-        max=100, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.4,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=100, y=350, 
-        radius=57, 
-        thickness=11,​ 
-        start_angle=0,​ 
-        end_angle=240 
-    }, 
-    { 
-        name='​cpu',​ 
-        arg='​cpu4',​ 
-        max=100, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.3,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=100, y=350, 
-        radius=44, 
-        thickness=10,​ 
-        start_angle=0,​ 
-        end_angle=240 
-    }, 
-{ 
-        name='​cpu',​ 
-        arg='​cpu5',​ 
-        max=100, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.2,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=100, y=350, 
-        radius=32, 
-        thickness=9,​ 
-        start_angle=0,​ 
-        end_angle=240 
-    }, 
-    { 
-        name='​cpu',​ 
-        arg='​cpu6',​ 
-        max=100, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.1,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=100, y=350, 
-        radius=21, 
-        thickness=8,​ 
-        start_angle=0,​ 
-        end_angle=240 
-    }, 
-    { 
-        name='​fs_used_perc',​ 
-        arg='/',​ 
-        max=100, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.2,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=110, y=550, 
-        radius=40, 
-        thickness=10,​ 
-        start_angle=0,​ 
-        end_angle=240 
-    }, 
-    { 
-        name='​fs_used_perc',​ 
-        arg='/​home',​ 
-        max=100, 
-        bg_colour=0xDCDCDC,​ 
-        bg_alpha=0.2,​ 
-        fg_colour=0x1B708D,​ 
-        fg_alpha=0.8,​ 
-        x=110, y=550, 
-        radius=28, 
-        thickness=10,​ 
-        start_angle=0,​ 
-        end_angle=240 
     },     },
 } }
Ligne 417: Ligne 291:
 -- "​clock_x"​ and "​clock_y"​ are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window. -- "​clock_x"​ and "​clock_y"​ are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
  
-clock_x=100 +clock_x=180 
-clock_y=150+clock_y=170
  
 show_seconds=true show_seconds=true
Ligne 558: Ligne 432:
  
 </​file>​ </​file>​
 +
 +Fichier caps_num.sh : \\
 +<file bash caps_num.sh>​
 +#!/bin/bash
 +caps=$(xset -q | grep -c "Caps Lock:   ​on"​)
 +num=$(xset -q | grep -c "Num Lock:    on")
 +
 +function bottom_align(){
 + if [ $caps -gt 0 ]; then
 + echo "​\${color red} Maj\${color}"​
 + else
 + echo " min"
 + fi
 + if [ $num -gt 0 ]; then
 + echo "​\${color 6495ee} Num${color}"​
 + else
 + echo " nv"
 + fi
 +}
 +
 +function top_align(){
 + if [ $caps -gt 0 ]; then
 + echo -n "​\${color red} Maj\${color}"​
 + else
 + echo -n " min "
 + fi
 + if [ $num -gt 0 ]; then
 + echo "​\${color 6495ee} Num${color}"​
 + else
 + echo " nv"
 + fi
 +}
 +
 +
 +#check alignment
 +alignbl=$(grep "​alignment bottom_left"​ ~/​.conkyrc|grep -c "#"​)
 +alignbr=$(grep "​alignment bottom_right"​ ~/​.conkyrc|grep -c "#"​)
 +if [ $alignbl -gt 0 ] && [ $alignbr -gt 0 ]; then
 + top_align
 +else
 + bottom_align
 +fi
 +</​file>​
 +
 +Fichier météo : \\
 +Fichier email : \\
 +Fichier Clementine : \\
 +Icones : \\
 +
 Logo Debian au centre de la pendule (debian-logo.png):​ \\ Logo Debian au centre de la pendule (debian-logo.png):​ \\
 {{/​file-Rd3fc65ac2073d97efe310365961d75c6.png}} {{/​file-Rd3fc65ac2073d97efe310365961d75c6.png}}
  
  
utilisateurs/jeremix/config/conky-1.10-lua-horloge-caps-num-lock-mail-clementine.1604217340.txt.gz · Dernière modification: 01/11/2020 08:55 par jeremix

Pied de page des forums

Propulsé par FluxBB