From 90aa8ddad1663bdfb1e0d062004e31ff342360ca Mon Sep 17 00:00:00 2001 From: Breizh Date: Tue, 18 Oct 2022 01:34:52 +0200 Subject: [PATCH] Gestion des liens symboliques dans music-convert --- .config/conky/conkyrc2 | 6 +++--- .config/mpv/mpv.conf | 4 ++-- .config/pikaur.conf | 3 ++- .local/bin/music-convert | 6 ++++++ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.config/conky/conkyrc2 b/.config/conky/conkyrc2 index f2cbbd3..9e16963 100644 --- a/.config/conky/conkyrc2 +++ b/.config/conky/conkyrc2 @@ -75,14 +75,14 @@ $alignc${addrs tun0} $alignc${scroll left 39 2 1 ${v6addrs tun0 -n -s}} ${endif} ${color2}${font2}Capteurs $hr$font$color${voffset 2} -CPU${goto 140}${if_match ${execi 5 sensors -j | jq '."zenpower-pci-00c3"."Tdie"."temp1_input"'}>70}${color F2777A}$endif${execi 5 sensors -j | jq '."zenpower-pci-00c3"."Tdie"."temp1_input"' | cut -d. -f1}°C${color} +CPU${goto 140}${if_match ${hwmon zenpower temp 1}>70}${color F2777A}$endif${hwmon zenpower temp 1}°C${color} ${color2}${font2}Carte graphique $hr${font}${color} #${voffset 2}Usage${goto 140}${texeci 3 conky_radeon}% #VRAM: ${texeci 3 conky_radeon vram mb}M${goto 140}${texeci 3 conky_radeon vram}% -Temp${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2900"."edge"."temp1_input"'}>70}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-2900"."edge"."temp1_input"' | cut -d. -f1}°C${color} +Temp${goto 140}${if_match ${hwmon amdgpu temp 1}>70}${color F2777A}$endif${hwmon amdgpu temp 1}°C${color} Conso${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2900"."PPT"."power1_average"'}>180}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-2900"."PPT"."power1_average"' | cut -d. -f1} W${color} -Ventilo${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2900"."fan1"."fan1_input"'}>3000}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-2900"."fan1"."fan1_input"' | cut -d. -f1} RPM${color} +Ventilo${goto 140}${if_match ${hwmon amdgpu fan 1}>3000}${color F2777A}$endif${hwmon amdgpu fan 1} RPM${color} ${color2}${font2}Système $hr$font$color${voffset 2} Kernel${goto 140}$kernel diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 8b0ffd5..71be319 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -5,8 +5,8 @@ cscale=ewa_lanczossharp video-sync=display-resample # Interpolation -interpolation -tscale=oversample +# interpolation +# tscale=oversample # Codecs hwdec=auto-copy diff --git a/.config/pikaur.conf b/.config/pikaur.conf index 03838e1..5884854 100644 --- a/.config/pikaur.conf +++ b/.config/pikaur.conf @@ -12,6 +12,7 @@ keepbuilddeps = no skipfailedbuild = no alwaysusedynamicusers = no ignorearch = no +gpgdir = [review] donteditbydefault = no @@ -41,7 +42,7 @@ privilegeescalationtool = sudo [network] aururl = https://aur.archlinux.org -newsurl = https://archlinux.fr/category/news/feed +newsurl = https://archlinux.org/feeds/news/ socks5proxy = aurhttpproxy = aurhttpsproxy = diff --git a/.local/bin/music-convert b/.local/bin/music-convert index fa257a6..8c7e77b 100755 --- a/.local/bin/music-convert +++ b/.local/bin/music-convert @@ -20,6 +20,12 @@ cd "$rootdir" # Pour tous les sous-répertoires, à tous les niveaux for dir in **/ . do + # Ignorer les liens symboliques + if [[ -h "${rootdir}/${dir::-1}" ]] + then + continue + fi + # Affichage du répertoire en cours de traitement echo "$bold$dir$reset"