From 895271871b72fe53ff41f07645168f33fc1208c5 Mon Sep 17 00:00:00 2001 From: Breizh Date: Thu, 3 Jan 2019 00:02:39 +0100 Subject: [PATCH] Modifications de confs et ajout d'un script --- .config/i3/config | 8 +++++--- .config/mpv/mpv.conf | 2 +- .conkyrc | 4 +++- .local/bin/conky_mount | 5 +++++ 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100755 .local/bin/conky_mount diff --git a/.config/i3/config b/.config/i3/config index 50f3d05..21d69b8 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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" diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 090d551..5b30fdd 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -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 diff --git a/.conkyrc b/.conkyrc index ee88888..74eb7f9 100644 --- a/.conkyrc +++ b/.conkyrc @@ -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} diff --git a/.local/bin/conky_mount b/.local/bin/conky_mount new file mode 100755 index 0000000..8006a3a --- /dev/null +++ b/.local/bin/conky_mount @@ -0,0 +1,5 @@ +#!/bin/bash +for dir in /run/media/breizh/* +do + [[ -d "$dir" ]] && echo "\${template4 $dir $(basename $dir)}" +done