Màj diverses

This commit is contained in:
Breizh 2023-04-12 02:34:24 +02:00
parent 156327959f
commit 9a54e9ffb2
9 changed files with 18 additions and 17 deletions

View file

@ -20,7 +20,7 @@ eval $(ssh-agent -s)
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export QT_QPA_PLATFORMTHEME=qt5ct export QT_QPA_PLATFORMTHEME=qt5ct
export BROWSER="systemd-run --user --scope -p MemoryMax=3G -p MemorySwapMax=3G firefox" export BROWSER="systemd-run --user --scope -p MemoryMax=3G -p MemorySwapMax=4G firefox"
export TERMINAL=urxvtc export TERMINAL=urxvtc
export XDG_CURRENT_DESKTOP=i3 export XDG_CURRENT_DESKTOP=i3
# exec sway -d 2> $HOME/.sway.log # exec sway -d 2> $HOME/.sway.log

View file

@ -31,9 +31,9 @@ markup=pango
#command=echo $(xdotool getactivewindow getwindowname) #command=echo $(xdotool getactivewindow getwindowname)
#interval=1 #interval=1
#[empty_block] [empty_block]
#command=echo " " command=echo " "
#interval=once interval=once
# Generic media player support # Generic media player support
# #

View file

@ -13,7 +13,7 @@ hwdec=auto-copy
hwdec-codecs=all hwdec-codecs=all
# Audio # Audio
audio-channels=stereo # audio-channels=stereo
alang=fr,fre,fra alang=fr,fre,fra
# Sous-titres # Sous-titres
@ -44,5 +44,3 @@ title=${?chapter:${chapter-metadata/by-key/title} | }${media-title} | mpv
osc=no osc=no
screenshot-directory=~/Images/Screenshots/MPV screenshot-directory=~/Images/Screenshots/MPV
# YTDL
ytdl-format="((bestvideo[vcodec^=av01][height<=?1080][width<=?1920]/bestvideo[vcodec=vp9][height<=?1080][width<=?1920]/bestvideo[height<=?1080][width<=?1920]/bestvideo)+(bestaudio[acodec=opus]/bestaudio[acodec=vorbis]/bestaudio))/best"

View file

@ -12,7 +12,7 @@ keepbuilddeps = no
skipfailedbuild = no skipfailedbuild = no
alwaysusedynamicusers = no alwaysusedynamicusers = no
ignorearch = no ignorearch = no
gpgdir = gpgdir = /etc/pacman.d/gnupg
[review] [review]
donteditbydefault = no donteditbydefault = no

View file

@ -4,6 +4,7 @@
--write-subs --write-subs
--write-auto-subs --write-auto-subs
--sub-langs fr,en,en(-|_)?[A-Z]+,-live_chat --sub-langs fr,en,en(-|_)?[A-Z]+,-live_chat
#--sub-langs en
--embed-thumbnail --embed-thumbnail
-i -i
-S res:1440,fps,hdr:12,vcodec,channels,acodec,lang,proto -S res:1440,fps,hdr:12,vcodec,channels,acodec,lang,proto
@ -13,6 +14,7 @@
--compat-options no-keep-subs --compat-options no-keep-subs
--download-archive ".yt-dlp_archive" --download-archive ".yt-dlp_archive"
-N 4 -N 4
--netrc
# For 429 errors # For 429 errors
--retry-sleep fragment:exp=1:320 --retry-sleep fragment:exp=1:320

View file

@ -30,13 +30,13 @@ human_time() {
fi fi
local minutes=$(( seconds / 60 )) local minutes=$(( seconds / 60 ))
seconds=$(( seconds % 60 )) seconds=$(( seconds % 60 ))
if [[ "$minutes" -ge 60 ]] if [[ "$minutes" -ge 90 ]]
then then
local hours=$(( minutes / 60 )) local hours=$(( minutes / 60 ))
minutes=$(( minutes % 60 )) minutes=$(( minutes % 60 ))
printf "%02dh%02d\n" "$hours" "$minutes" printf "%2dh%02d\n" "$hours" "$minutes"
else else
printf "%02d:%02d\n" "$minutes" "$seconds" printf "%2d:%02d\n" "$minutes" "$seconds"
fi fi
return return
} }

View file

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
#SINK="alsa_output.pci-0000_2b_00.3.3.analog-stereo"
SINK="alsa_output.pci-0000_2b_00.3.analog-stereo" SINK="alsa_output.pci-0000_2b_00.3.analog-stereo"
currentport=$(pactl list sinks | grep -Po "Active Port: analog.*") currentport=$(pactl list sinks | grep -Po "Active Port: analog.*")

View file

@ -47,11 +47,11 @@ do
dunstify -r "$DUNST_ID" "MPD" "$cursong" dunstify -r "$DUNST_ID" "MPD" "$cursong"
# Ajout au scrobbler Pleroma # Ajout au scrobbler Pleroma
curl -s -X POST -u "breizh:$(pass show Web/pleroma.breizh.pm)" \ # curl -s -X POST -u "breizh:$(pass show Web/pleroma.breizh.pm)" \
--data-urlencode "title=${title}" \ # --data-urlencode "title=${title}" \
--data-urlencode "artist=${artist}" \ # --data-urlencode "artist=${artist}" \
--data-urlencode "album=${album}" \ # --data-urlencode "album=${album}" \
https://pleroma.breizh.pm/api/v1/pleroma/scrobble &>/dev/null # https://pleroma.breizh.pm/api/v1/pleroma/scrobble &>/dev/null
fi fi
done done

View file

@ -82,7 +82,7 @@ do
else else
# Pour les autres fichiers, les copier tel quels # Pour les autres fichiers, les copier tel quels
echo "[${green}COPY${reset}] $file" echo "[${green}COPY${reset}] $file"
cp -n --reflink=auto "${file}" "${dstdir}/" cp -n --reflink=auto "${file}" "${dstdir}/" || true
fi fi
done done
wait wait