Màj diverses

This commit is contained in:
Breizh 2023-04-12 02:34:24 +02:00
parent e10532f42c
commit 06989d5b0b
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
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
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 XDG_CURRENT_DESKTOP=i3
# exec sway -d 2> $HOME/.sway.log

View file

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

View file

@ -13,7 +13,7 @@ hwdec=auto-copy
hwdec-codecs=all
# Audio
audio-channels=stereo
# audio-channels=stereo
alang=fr,fre,fra
# Sous-titres
@ -44,5 +44,3 @@ title=${?chapter:${chapter-metadata/by-key/title} | }${media-title} | mpv
osc=no
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
alwaysusedynamicusers = no
ignorearch = no
gpgdir =
gpgdir = /etc/pacman.d/gnupg
[review]
donteditbydefault = no

View file

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

View file

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

View file

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

View file

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

View file

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