Compare commits

...

5 commits

11 changed files with 58 additions and 42 deletions

View file

@ -270,6 +270,7 @@ alias fixit='sudo rm -f /var/lib/pacman/db.lck'
alias inst='yaourt -S'
alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
alias l='ls -lAh'
alias rm='rm --preserve-root -I'
alias mirrors='sudo pacman-mirrors -g'
alias printer='system-config-printer'

View file

@ -87,6 +87,7 @@ Ventilo${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2900"."fan1
${color2}${font2}Système $hr$font$color${voffset 2}
Kernel${goto 140}$kernel
Uptime${goto 140}$uptime
Redshift${goto 140}${exec redshift -p | grep -Po "[0-9]+K"}
${color2}${font2}Sylvexplorer $hr$font$color${voffset 2}
${texeci 3600 /home/breizh/.config/conky/sylv.sh}

View file

@ -3,6 +3,7 @@ gtk-application-prefer-dark-theme=true
gtk-theme-name=Vertex-Dark
gtk-icon-theme-name=Vertex-Icons
gtk-font-name=IBM Plex Sans 10
#gtk-font-name=xos4 Terminus 10
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1

View file

@ -375,7 +375,8 @@ exec --no-startup-id sleep 5 && play "$HOME/Musique/WELCOME BACK.wav"
# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
# position top
status_command i3blocks
#status_command i3blocks
status_command 2>/tmp/i3blocks.err i3blocks
## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
tray_output primary

View file

@ -410,7 +410,7 @@ replaygain_limit "yes"
# result in the volume of all playing audio to be adjusted so the output has
# equal "loudness". This setting is disabled by default.
#
#volume_normalization "no"
volume_normalization "no"
#
###############################################################################

View file

@ -1,44 +1,47 @@
# Video
# Vidéo
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
# Interpolation
#interpolation
#tscale=oversample
# Codecs
hwdec=auto-copy
hwdec-codecs=all
# Audio
audio-channels=stereo
alang=fr,fre,fra
# Misc
cache-pause
input-ipc-server=/tmp/mpvsocket
hr-seek-framedrop=yes
osc=no
# Subtitles
# Sous-titres
sub-back-color=0.0/0.0/0.0/0.5
sub-use-margins
sub-file-paths=~/Sous-titres/
sub-font=IBM Plex Sans
sub-font-size=25
sub-margin-y=10
# Codecs
hwdec=auto-copy
hwdec-codecs=all
# Language
alang=fr,fre,fra
slang=en,eng,en-US,en-GB,fr,fre,fra,fr-FR
#slang=fr,fre,fra
slang=en,eng,fr,fre,fra
# Cache
cache=yes
cache-pause
cache-pause-wait=5
cache-pause-initial=yes
demuxer-max-bytes=512MiB
demuxer-readahead-secs=20
prefetch-playlist=yes
# Autre
input-ipc-server=/tmp/mpvsocket
hr-seek-framedrop=yes
title=${?chapter:${chapter-metadata/by-key/title} | }${media-title} | mpv
#osd-msg3=${media-title}${?chapter:\n ${chapter-metadata/by-key/title}}\n${time-pos} / ${playtime-remaining}
osd-font-size=25
osc=no
# 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

@ -1,5 +1,5 @@
[sync]
develpkgsexpiration = -1
develpkgsexpiration = 30
alwaysshowpkgorigin = no
upgradesorting = versiondiff
showdownloadsize = yes

View file

@ -11,4 +11,4 @@
--hls-use-mpegts
--compat-options no-keep-subs
--download-archive ".yt-dlp_archive"
--downloader axel
-N 4

View file

@ -1,21 +1,18 @@
#!/bin/bash
color=""
if [[ "$button" -gt 0 ]]
then
i3-msg -q -- exec nm-connection-editor
fi
declare color
if ! nmcli dev | grep " connecté" &>/dev/null
then
color="#747369"
if [ ! -f /dev/shm/claws_offline ]
then
#i3-msg -q -- exec claws-mail --offline
i3-msg -q -- exec claws-mail --offline
touch /dev/shm/claws_offline
fi
elif ping -c 1 1.1.1.1 -W 1 &>/dev/null || ping -c 1 8.8.8.8 -W 1 &>/dev/null
# https://atlas.ripe.net/anchors/about/
# fr-rns-as204092.anchors.atlas.ripe.net
elif ping -c 1 2a00:5884:822c::1 -W 1 &>/dev/null || ping -c 1 80.67.190.218 -W 1 &>/dev/null
then
color="#99CC99"
if [ -f /dev/shm/claws_offline ]
@ -23,14 +20,18 @@ then
i3-msg -q -- exec claws-mail --online
rm /dev/shm/claws_offline
fi
# test-debit.free.fr
elif ping -c 1 2a01:e0c:1:1598::3 -W 1 &>/dev/null || ping -c 1 212.27.42.153 -W 1 &>/dev/null
then
color="#FFCC66"
else
color="#F2777A"
if [ ! -f /dev/shm/claws_offline ]
then
#i3-msg -q -- exec claws-mail --offline
i3-msg -q -- exec claws-mail --offline
touch /dev/shm/claws_offline
color="#FFCC66"
fi
color="#F2777A"
fi
echo "<span foreground=\"$color\">re</span>"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x
# Fonction de réinitialisation en cas de perte de la connexion
self-reset() {
@ -10,11 +10,11 @@ self-reset() {
trap self-reset PIPE
# Initialisation de la connexion au serveur
coproc nc -U /home/breizh/.mpd/socket
# coproc nc -U /home/breizh/.mpd/socket
coproc socat stdio /home/breizh/.mpd/socket
IN=${COPROC[1]}
OUT=${COPROC[0]}
#echo "password xxx" >&"${IN}"
#sed '/^OK/q' <&"$OUT" &>/dev/null
# Initialisation des valeurs par défaut et des fonctions
declare -i SCROLL=50 I=0
@ -45,7 +45,7 @@ human_time() {
echo "status" >&"$IN"
while read -t 0.1 -u "$OUT" output
do
[[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }"
[[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }"
done
# Boucle principale
@ -86,7 +86,7 @@ do
echo "currentsong" >&"$IN" || self-reset
while read -t 0.1 -u "$OUT" output
do
[[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }"
[[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }"
done
# Choix des couleurs selon létat
@ -100,10 +100,17 @@ do
# on réinitialise laffichage défilant
if [[ "${o["file"]}" != "${old["file"]}" || "${o["Title"]}" != "${old["Title"]}" || "${o["Name"]}" != "${old["Name"]}" ]]
then
unset bloc1 bloc2 bloc3 bloc4
artist="${o["Artist"]:-${o["Name"]}}"
song="${o["Title"]}"
[[ -z "$artist$song" ]] && song="$(basename "${o["file"]}")"
if [[ -z "$artist" ]]
then
if [[ -z "$song" ]]
then
song="$(basename "${o["file"]}")"
else
song="$song $(basename "${o["file"]}")"
fi
fi
if [[ "$(( ${#song} + ${#artist} + 1 ))" -gt "$SCROLL" ]]
then
@ -181,4 +188,5 @@ do
printf '<b>%s</b>%s<b>%s</b>%s%s\n' "$bloc1" "$bloc2" "$bloc3" "$bloc4" " $status$time</span>"
done
self-reset

View file

@ -24,7 +24,7 @@ do
declare -a running
running=($(jobs -p))
if [[ "${#running[@]}" -ge 6 ]]
if [[ "${#running[@]}" -ge 12 ]]
then
wait -n
fi