Mise à jour de quelques fichiers de config
This commit is contained in:
parent
c484706788
commit
1db8ded391
4 changed files with 18 additions and 5 deletions
|
@ -29,7 +29,7 @@
|
|||
# the top and down respectively.
|
||||
# The width can be negative. In this case the actual width is the
|
||||
# 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).
|
||||
indicate_hidden = yes
|
||||
|
|
5
.conkyrc
5
.conkyrc
|
@ -34,7 +34,8 @@ conky.text = [[
|
|||
#${voffset 8}
|
||||
${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
|
||||
${voffset -10}${template0 1}
|
||||
${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<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) )))}
|
||||
|
||||
${color2}${font xos4 Terminus:pixelsize=14}Music On Console${font}${alignr}${if_match "$moc_state"=="??"}STOP$color$else$moc_state${color}
|
||||
|
|
|
@ -6,12 +6,25 @@ then
|
|||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f /dev/shm/updates ]
|
||||
then
|
||||
echo 0 > /dev/shm/updates
|
||||
fi
|
||||
|
||||
avail=$(checkupdates | wc -l)
|
||||
aur=$(yaourt -Qua | grep 'aur/' | wc -l)
|
||||
total=$(($avail + $aur))
|
||||
|
||||
if [[ $(($avail + $aur)) -eq 0 ]]
|
||||
if [[ $total -eq 0 ]]
|
||||
then
|
||||
echo "<span foreground=\"#99CC99\">█</span>"
|
||||
else
|
||||
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
|
||||
|
||||
echo $total > /dev/shm/updates
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit a93ee1b7a4dadb82ca7ba793faf3047f6f6863d7
|
Loading…
Reference in a new issue