From 1db8ded391ba284e1657f0573934487858c59704 Mon Sep 17 00:00:00 2001 From: Breizh Date: Sat, 2 Jun 2018 00:09:39 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20quelques=20fichiers?= =?UTF-8?q?=20de=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/dunst/dunstrc | 2 +- .conkyrc | 5 +++-- .i3blocks/updates | 15 ++++++++++++++- .vim/bundle/vim-Grammalecte | 1 - 4 files changed, 18 insertions(+), 5 deletions(-) delete mode 160000 .vim/bundle/vim-Grammalecte diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 4f1c026..90521da 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -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 diff --git a/.conkyrc b/.conkyrc index 2e8146a..abc1bbf 100644 --- a/.conkyrc +++ b/.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} diff --git a/.i3blocks/updates b/.i3blocks/updates index d7ce7ee..5c2bc4b 100755 --- a/.i3blocks/updates +++ b/.i3blocks/updates @@ -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 "" else echo "" + 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 diff --git a/.vim/bundle/vim-Grammalecte b/.vim/bundle/vim-Grammalecte deleted file mode 160000 index a93ee1b..0000000 --- a/.vim/bundle/vim-Grammalecte +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a93ee1b7a4dadb82ca7ba793faf3047f6f6863d7