Màj diverses
This commit is contained in:
parent
9cfcb89e06
commit
d3a71b3169
5 changed files with 12 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# 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
|
||||
fields=0 48 17 18 113 38 39 40 119 111 2 46 47 49 1
|
||||
sort_key=46
|
||||
|
@ -21,7 +21,7 @@ highlight_changes_delay_secs=5
|
|||
find_comm_in_cmdline=1
|
||||
strip_exe_from_cmdline=1
|
||||
show_merged_command=1
|
||||
tree_view=0
|
||||
tree_view=1
|
||||
tree_view_always_by_pid=0
|
||||
all_branches_collapsed=0
|
||||
header_margin=1
|
||||
|
|
|
@ -290,7 +290,7 @@ for_window [class="(?i)Rail Route.x86"] border none
|
|||
|
||||
# Assign apps to workspace
|
||||
assign [app_id="claws-mail"] 🖂
|
||||
assign [app_id="org.qbittorrent.qBittorrent"] 8
|
||||
assign [instance="qbittorrent"] 8
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
-o "%(title)s.%(ext)s"
|
||||
--embed-subs
|
||||
--write-auto-subs
|
||||
--sub-lang fr,en
|
||||
-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"
|
||||
--add-metadata
|
||||
--hls-use-mpegts
|
||||
--compat-options no-keep-subs
|
||||
--download-archive ".yt-dlp_archive"
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Sortie à la moindre erreur
|
||||
set -e
|
||||
|
||||
shopt -s globstar
|
||||
|
||||
# Initialisation de la mise en forme
|
||||
|
@ -13,13 +10,16 @@ reset=$(tput sgr0)
|
|||
bold=$(tput bold)
|
||||
|
||||
# Répertoire source
|
||||
rootdir="$(realpath ${1:-${HOME}/Musique/})"
|
||||
rootdir="$(realpath "${1:-${HOME}/Musique/}")"
|
||||
|
||||
cd "$rootdir"
|
||||
|
||||
# Pour tous les sous-répertoires, à tous les niveaux
|
||||
for dir in **/ .
|
||||
do
|
||||
# Vérifie que le répertoire existe, sinon on le saute.
|
||||
[[ -d "${rootdir}/${dir}" ]] || continue
|
||||
|
||||
# On entre dans le répertoire à traiter
|
||||
cd "${rootdir}/${dir}"
|
||||
|
||||
|
@ -37,7 +37,7 @@ do
|
|||
fi
|
||||
|
||||
# S’il s’agit d’audio
|
||||
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
|
||||
todo+=("$file")
|
||||
fi
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Sortie à la moindre erreur
|
||||
set -e
|
||||
|
||||
shopt -s globstar
|
||||
|
||||
# Initialisation de la mise en forme
|
||||
|
@ -21,7 +18,7 @@ cd "$rootdir"
|
|||
for file in *
|
||||
do
|
||||
# S’il s’agit d’audio
|
||||
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
|
||||
# Parrallélisation des traitements
|
||||
declare -a running
|
||||
|
|
Loading…
Reference in a new issue