Mise à jour de quelques fichiers de config

This commit is contained in:
Breizh 2018-06-02 00:09:39 +02:00
parent b3965ade25
commit 38bad21137
4 changed files with 18 additions and 5 deletions

View file

@ -29,7 +29,7 @@
# the top and down respectively. # the top and down respectively.
# The width can be negative. In this case the actual width is the # The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option. # screen width minus the width defined in within the geometry option.
geometry = "500x5-30+20" geometry = "1860x5-30+20"
# Show how many messages are currently hidden (because of geometry). # Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes indicate_hidden = yes

View file

@ -34,7 +34,8 @@ conky.text = [[
#${voffset 8} #${voffset 8}
${color 6699CC}$alignc${font xos4 Terminus:pixelsize=18}${time %A %d %B %Y}$font$color ${color 6699CC}$alignc${font xos4 Terminus:pixelsize=18}${time %A %d %B %Y}$font$color
${color2}${font xos4 Terminus:pixelsize=14}Processeur${alignr}${font}${if_match ${exec sensors -u | grep "temp1_input" | cut -d" " -f4 | cut -d. -f1 | head -n 1}>=60}${color F2777A}$endif${exec sensors -u | grep "temp1_input" | cut -d" " -f4 | cut -d. -f1 | head -n 1}°C${color} ${color2}${font xos4 Terminus:pixelsize=14}Processeur${color}${font}
#${alignr}${font}${if_match ${exec sensors -u | grep "temp1_input" | cut -d" " -f4 | cut -d. -f1 | head -n 1}>=60}${color F2777A}$endif${exec sensors -u | grep "temp1_input" | cut -d" " -f4 | cut -d. -f1 | head -n 1}°C${color}
${cpugraph 99CC99 F2777A -t}${color2}${voffset 10}${goto 100}$alignc$cpu%$color ${cpugraph 99CC99 F2777A -t}${color2}${voffset 10}${goto 100}$alignc$cpu%$color
${voffset -10}${template0 1} ${voffset -10}${template0 1}
${template0 2} ${template0 2}
@ -96,7 +97,7 @@ breizh.me$alignr${execi 300 host breizh.me | grep 'has address' | cut -d' ' -f4}
${if_match $battery_percent<10}${color F2777A}${blink Batterie $battery}${else}Batterie $battery$endif ${if_match $battery_percent<10}${color F2777A}${blink Batterie $battery}${else}Batterie $battery$endif
${if_match $battery_percent<20}${color F2777A}$else${if_match $battery_percent<60}${color FFCC66}$else${color 99CC99}$endif$endif$battery_bar$color ${if_match $battery_percent<20}${color F2777A}$else${if_match $battery_percent<60}${color FFCC66}$else${color 99CC99}$endif$endif$battery_bar$color
Rétro-éclairage ${exec echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))}%$alignr${exec redshift -p | head -n 2 | tail -n 1 | cut -d':' -f2} Rétro-éclairage ${exec echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))}%$alignr${exec redshift -p | head -n 3 | tail -n 1 | cut -d':' -f2}
${execbar echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))} ${execbar echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))}
${color2}${font xos4 Terminus:pixelsize=14}Music On Console${font}${alignr}${if_match "$moc_state"=="??"}STOP$color$else$moc_state${color} ${color2}${font xos4 Terminus:pixelsize=14}Music On Console${font}${alignr}${if_match "$moc_state"=="??"}STOP$color$else$moc_state${color}

View file

@ -6,12 +6,25 @@ then
exit exit
fi fi
if [ ! -f /dev/shm/updates ]
then
echo 0 > /dev/shm/updates
fi
avail=$(checkupdates | wc -l) avail=$(checkupdates | wc -l)
aur=$(yaourt -Qua | grep 'aur/' | wc -l) aur=$(yaourt -Qua | grep 'aur/' | wc -l)
total=$(($avail + $aur))
if [[ $(($avail + $aur)) -eq 0 ]] if [[ $total -eq 0 ]]
then then
echo "<span foreground=\"#99CC99\">█</span>" echo "<span foreground=\"#99CC99\">█</span>"
else else
echo "<span foreground=\"#FFCC66\">█</span>" echo "<span foreground=\"#FFCC66\">█</span>"
if [[ $(cat /dev/shm/updates) -ne $total ]]
then
[[ $total -eq 1 ]] && notify-send "Mise à jour disponible" "1 màj disponible"
[[ $total -gt 1 ]] && notify-send "Mises à jour disponibles" "$total màj disponibles"
fi fi
fi
echo $total > /dev/shm/updates

@ -1 +0,0 @@
Subproject commit a93ee1b7a4dadb82ca7ba793faf3047f6f6863d7