From 06989d5b0b26ec14c6057e2f4864133a6c4f09f3 Mon Sep 17 00:00:00 2001 From: Breizh Date: Wed, 12 Apr 2023 02:34:24 +0200 Subject: [PATCH] =?UTF-8?q?M=C3=A0j=20diverses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bash_profile | 2 +- .config/i3blocks/config | 6 +++--- .config/mpv/mpv.conf | 4 +--- .config/pikaur.conf | 2 +- .config/yt-dlp/config | 2 ++ .i3blocks/mpd | 6 +++--- .i3blocks/toggle-sink | 1 + .local/bin/mpd-notif | 10 +++++----- .local/bin/music-convert | 2 +- 9 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.bash_profile b/.bash_profile index 2dcabf4..fdd5a5b 100644 --- a/.bash_profile +++ b/.bash_profile @@ -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 diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 18b5478..1b30b38 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -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 # diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 6190a86..2054a3a 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -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" diff --git a/.config/pikaur.conf b/.config/pikaur.conf index 9a8b770..854a583 100644 --- a/.config/pikaur.conf +++ b/.config/pikaur.conf @@ -12,7 +12,7 @@ keepbuilddeps = no skipfailedbuild = no alwaysusedynamicusers = no ignorearch = no -gpgdir = +gpgdir = /etc/pacman.d/gnupg [review] donteditbydefault = no diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config index 48e030a..aabce87 100644 --- a/.config/yt-dlp/config +++ b/.config/yt-dlp/config @@ -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 diff --git a/.i3blocks/mpd b/.i3blocks/mpd index 4f3e5ee..e5f24b3 100755 --- a/.i3blocks/mpd +++ b/.i3blocks/mpd @@ -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 } diff --git a/.i3blocks/toggle-sink b/.i3blocks/toggle-sink index 3ed6c15..24ca629 100755 --- a/.i3blocks/toggle-sink +++ b/.i3blocks/toggle-sink @@ -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.*") diff --git a/.local/bin/mpd-notif b/.local/bin/mpd-notif index c17d308..84ec580 100755 --- a/.local/bin/mpd-notif +++ b/.local/bin/mpd-notif @@ -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 diff --git a/.local/bin/music-convert b/.local/bin/music-convert index 0d4f824..6f25dc4 100755 --- a/.local/bin/music-convert +++ b/.local/bin/music-convert @@ -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