Màj diverses

This commit is contained in:
Breizh 2022-01-10 19:37:13 +01:00
parent 88446ff38c
commit 7d7fa29d16
5 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
# Beware! This file is rewritten by htop when settings are changed in the interface. # Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly. # The parser is also very primitive, and not human-friendly.
htop_version=3.1.1 htop_version=3.1.2
config_reader_min_version=2 config_reader_min_version=2
fields=0 48 17 18 113 38 39 40 119 111 2 46 47 49 1 fields=0 48 17 18 113 38 39 40 119 111 2 46 47 49 1
sort_key=46 sort_key=46
@ -21,7 +21,7 @@ highlight_changes_delay_secs=5
find_comm_in_cmdline=1 find_comm_in_cmdline=1
strip_exe_from_cmdline=1 strip_exe_from_cmdline=1
show_merged_command=1 show_merged_command=1
tree_view=0 tree_view=1
tree_view_always_by_pid=0 tree_view_always_by_pid=0
all_branches_collapsed=0 all_branches_collapsed=0
header_margin=1 header_margin=1

View File

@ -290,7 +290,7 @@ for_window [class="(?i)Rail Route.x86"] border none
# Assign apps to workspace # Assign apps to workspace
assign [app_id="claws-mail"] 🖂 assign [app_id="claws-mail"] 🖂
assign [app_id="org.qbittorrent.qBittorrent"] 8 assign [instance="qbittorrent"] 8
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload

View File

@ -1,7 +1,10 @@
-o "%(title)s.%(ext)s" -o "%(title)s.%(ext)s"
--embed-subs --embed-subs
--write-auto-subs
--sub-lang fr,en --sub-lang fr,en
-i -i
-f "((bestvideo[vcodec^=av01][height<=?1440][width<=?2560]/bestvideo[vcodec=vp9][height<=?1440][width<=?2560]/bestvideo[height<=?1440][width<=?2560]/bestvideo)+(bestaudio[acodec=opus]/bestaudio[acodec=vorbis]/bestaudio))/best" -f "((bestvideo[vcodec^=av01][height<=?1440][width<=?2560]/bestvideo[vcodec=vp9][height<=?1440][width<=?2560]/bestvideo[height<=?1440][width<=?2560]/bestvideo)+(bestaudio[acodec=opus]/bestaudio[acodec=vorbis]/bestaudio))/best"
--add-metadata --add-metadata
--hls-use-mpegts --hls-use-mpegts
--compat-options no-keep-subs
--download-archive ".yt-dlp_archive"

View File

@ -1,8 +1,5 @@
#!/bin/bash #!/bin/bash
# Sortie à la moindre erreur
set -e
shopt -s globstar shopt -s globstar
# Initialisation de la mise en forme # Initialisation de la mise en forme
@ -13,13 +10,16 @@ reset=$(tput sgr0)
bold=$(tput bold) bold=$(tput bold)
# Répertoire source # Répertoire source
rootdir="$(realpath ${1:-${HOME}/Musique/})" rootdir="$(realpath "${1:-${HOME}/Musique/}")"
cd "$rootdir" cd "$rootdir"
# Pour tous les sous-répertoires, à tous les niveaux # Pour tous les sous-répertoires, à tous les niveaux
for dir in **/ . for dir in **/ .
do do
# Vérifie que le répertoire existe, sinon on le saute.
[[ -d "${rootdir}/${dir}" ]] || continue
# On entre dans le répertoire à traiter # On entre dans le répertoire à traiter
cd "${rootdir}/${dir}" cd "${rootdir}/${dir}"
@ -37,7 +37,7 @@ do
fi fi
# Sil sagit daudio # Sil sagit daudio
if [[ "$(file --mime-type -b -e ascii -e compress -e tar -e cdf "$file")" =~ audio/ ]] if [[ "$file" =~ .mp3$ || "$file" =~ .m4a$ || "$(file --mime-type -b -e ascii -e compress -e tar -e cdf "$file")" =~ audio/ ]]
then then
todo+=("$file") todo+=("$file")
fi fi

View File

@ -1,8 +1,5 @@
#!/bin/bash #!/bin/bash
# Sortie à la moindre erreur
set -e
shopt -s globstar shopt -s globstar
# Initialisation de la mise en forme # Initialisation de la mise en forme
@ -21,7 +18,7 @@ cd "$rootdir"
for file in * for file in *
do do
# Sil sagit daudio # Sil sagit daudio
if [[ "$(file --mime-type -b -e ascii -e compress -e tar -e cdf "$file")" =~ audio/ ]] if [[ "$file" =~ .mp3$ || "$file" =~ .m4a$ || "$(file --mime-type -b -e ascii -e compress -e tar -e cdf "$file")" =~ audio/ ]]
then then
# Parrallélisation des traitements # Parrallélisation des traitements
declare -a running declare -a running