Modifications de confs et ajout d'un script

This commit is contained in:
Breizh 2019-01-03 00:02:39 +01:00
parent c7c0b0b474
commit 057dcc779f
4 changed files with 14 additions and 5 deletions

View file

@ -93,8 +93,10 @@ bindsym $mod+Ctrl+m exec pavucontrol
################################################################################################
# Screen brightness controls
bindsym XF86MonBrightnessUp exec --no-startup-id echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) + 10 ))) > /sys/class/backlight/intel_backlight/brightness || echo 937 > /sys/class/backlight/intel_backlight/brightness
bindsym XF86MonBrightnessDown exec --no-startup-id echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) - 10 ))) > /sys/class/backlight/intel_backlight/brightness || echo 0 > /sys/class/backlight/intel_backlight/brightness
#bindsym XF86MonBrightnessUp exec --no-startup-id echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) + 10 ))) > /sys/class/backlight/intel_backlight/brightness || echo 937 > /sys/class/backlight/intel_backlight/brightness
#bindsym XF86MonBrightnessDown exec --no-startup-id echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) - 10 ))) > /sys/class/backlight/intel_backlight/brightness || echo 0 > /sys/class/backlight/intel_backlight/brightness
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 1%
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 1%
bindsym XF86HomePage exec --no-startup-id pkill -x -USR1 redshift
# Volume controls
@ -369,7 +371,7 @@ exec --no-startup-id redshift
#exec --no-startup-id setxkbmap fr oss
exec --no-startup-id nm-applet
exec --no-startup-id env DRI_PRIME=1 steam-native -silent
#exec --no-startup-id qbittorrent
exec --no-startup-id qbittorrent
#exec --no-startup-id gdfs $HOME/.google_drive $HOME/Google_Drive/
#exec --no-startup-id transmission-gtk -m
exec --no-startup-id play -q "$HOME/Musique/WELCOME BACK.wav"

View file

@ -10,5 +10,5 @@ hr-seek-framedrop=no
#no-resume-playback
alang=fr,fre,fra
slang=fr,fre,fra
cache=123400
cache=262144
demuxer-readahead-secs=20

View file

@ -31,7 +31,8 @@ conky.config = {
template0 = [[${cpubar cpu\1 6,107}${goto 127}${top name \1}$alignr${top cpu \1}%]],
template1 = [[${top_mem name \1}$alignr${top_mem mem_res \1}\ \ \ ${top_mem mem \1}%]],
template2 = [[$color${goto 127}${top name \1}$alignr${top cpu \1}%${goto 115}$alignr${offset -150}${if_match ${freq \2}<1000}${freq \2} MHz$else${freq_G \2} GHz$endif]],
template3 = [[\1$alignr${fs_free \1} ${if_match ${fs_used_perc \1}>=90}${color CC99CC}$else${if_match ${fs_used_perc \1}>=80}${color 6699CC}$else${color 66CCCC}$endif$endif${fs_bar 6,125 \1}$color]]
template3 = [[\1$alignr${fs_free \1} ${if_match ${fs_used_perc \1}>=90}${color CC99CC}$else${if_match ${fs_used_perc \1}>=80}${color 6699CC}$else${color 66CCCC}$endif$endif${fs_bar 6,125 \1}$color]],
template4 = [[\2$alignr${fs_free \1} ${if_match ${fs_used_perc \1}>=90}${color CC99CC}$else${if_match ${fs_used_perc \1}>=80}${color 6699CC}$else${color 66CCCC}$endif$endif${fs_bar 6,125 \1}$color]]
};
conky.text = [[
@ -88,6 +89,7 @@ ${voffset -10}
${template3 /}
${template3 /home}
${template3 /tmp}
${execpi 15 ~/.local/bin/conky_mount}
${voffset -5}
${color2}${font xos4 Terminus:pixelsize=14}Système${font}${alignr}${execi 900 lsb_release -ds | tr -d '"'}${color}
Noyau$alignr${no_update $kernel}

5
.local/bin/conky_mount Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
for dir in /run/media/breizh/*
do
[[ -d "$dir" ]] && echo "\${template4 $dir $(basename $dir)}"
done