Compare commits
5 commits
1b2a6bd6f1
...
20f39963fe
Author | SHA1 | Date | |
---|---|---|---|
20f39963fe | |||
5ee3ba360e | |||
213f3b4ef2 | |||
0dd9c39183 | |||
62b96f7add |
11 changed files with 58 additions and 42 deletions
1
.bashrc
1
.bashrc
|
@ -270,6 +270,7 @@ alias fixit='sudo rm -f /var/lib/pacman/db.lck'
|
||||||
alias inst='yaourt -S'
|
alias inst='yaourt -S'
|
||||||
alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
|
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 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 rm='rm --preserve-root -I'
|
||||||
alias mirrors='sudo pacman-mirrors -g'
|
alias mirrors='sudo pacman-mirrors -g'
|
||||||
alias printer='system-config-printer'
|
alias printer='system-config-printer'
|
||||||
|
|
|
@ -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}
|
${color2}${font2}Système $hr$font$color${voffset 2}
|
||||||
Kernel${goto 140}$kernel
|
Kernel${goto 140}$kernel
|
||||||
Uptime${goto 140}$uptime
|
Uptime${goto 140}$uptime
|
||||||
|
Redshift${goto 140}${exec redshift -p | grep -Po "[0-9]+K"}
|
||||||
|
|
||||||
${color2}${font2}Sylvexplorer $hr$font$color${voffset 2}
|
${color2}${font2}Sylvexplorer $hr$font$color${voffset 2}
|
||||||
${texeci 3600 /home/breizh/.config/conky/sylv.sh}
|
${texeci 3600 /home/breizh/.config/conky/sylv.sh}
|
||||||
|
|
|
@ -3,6 +3,7 @@ gtk-application-prefer-dark-theme=true
|
||||||
gtk-theme-name=Vertex-Dark
|
gtk-theme-name=Vertex-Dark
|
||||||
gtk-icon-theme-name=Vertex-Icons
|
gtk-icon-theme-name=Vertex-Icons
|
||||||
gtk-font-name=IBM Plex Sans 10
|
gtk-font-name=IBM Plex Sans 10
|
||||||
|
#gtk-font-name=xos4 Terminus 10
|
||||||
gtk-button-images=1
|
gtk-button-images=1
|
||||||
gtk-menu-images=1
|
gtk-menu-images=1
|
||||||
gtk-enable-event-sounds=1
|
gtk-enable-event-sounds=1
|
||||||
|
|
|
@ -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)
|
# Start i3bar to display a workspace bar (plus the system information i3status if available)
|
||||||
bar {
|
bar {
|
||||||
# position top
|
# 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'
|
## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
|
||||||
tray_output primary
|
tray_output primary
|
||||||
|
|
|
@ -410,7 +410,7 @@ replaygain_limit "yes"
|
||||||
# result in the volume of all playing audio to be adjusted so the output has
|
# result in the volume of all playing audio to be adjusted so the output has
|
||||||
# equal "loudness". This setting is disabled by default.
|
# equal "loudness". This setting is disabled by default.
|
||||||
#
|
#
|
||||||
#volume_normalization "no"
|
volume_normalization "no"
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
|
@ -1,44 +1,47 @@
|
||||||
# Video
|
# Vidéo
|
||||||
profile=gpu-hq
|
profile=gpu-hq
|
||||||
scale=ewa_lanczossharp
|
scale=ewa_lanczossharp
|
||||||
cscale=ewa_lanczossharp
|
cscale=ewa_lanczossharp
|
||||||
video-sync=display-resample
|
video-sync=display-resample
|
||||||
interpolation
|
|
||||||
tscale=oversample
|
# Interpolation
|
||||||
|
#interpolation
|
||||||
|
#tscale=oversample
|
||||||
|
|
||||||
|
# Codecs
|
||||||
|
hwdec=auto-copy
|
||||||
|
hwdec-codecs=all
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
audio-channels=stereo
|
audio-channels=stereo
|
||||||
|
alang=fr,fre,fra
|
||||||
|
|
||||||
# Misc
|
# Sous-titres
|
||||||
cache-pause
|
|
||||||
input-ipc-server=/tmp/mpvsocket
|
|
||||||
hr-seek-framedrop=yes
|
|
||||||
osc=no
|
|
||||||
|
|
||||||
# Subtitles
|
|
||||||
sub-back-color=0.0/0.0/0.0/0.5
|
sub-back-color=0.0/0.0/0.0/0.5
|
||||||
sub-use-margins
|
sub-use-margins
|
||||||
sub-file-paths=~/Sous-titres/
|
sub-file-paths=~/Sous-titres/
|
||||||
sub-font=IBM Plex Sans
|
sub-font=IBM Plex Sans
|
||||||
sub-font-size=25
|
sub-font-size=25
|
||||||
sub-margin-y=10
|
sub-margin-y=10
|
||||||
|
slang=en,eng,en-US,en-GB,fr,fre,fra,fr-FR
|
||||||
# Codecs
|
|
||||||
hwdec=auto-copy
|
|
||||||
hwdec-codecs=all
|
|
||||||
|
|
||||||
# Language
|
|
||||||
alang=fr,fre,fra
|
|
||||||
#slang=fr,fre,fra
|
#slang=fr,fre,fra
|
||||||
slang=en,eng,fr,fre,fra
|
|
||||||
|
|
||||||
# Cache
|
# Cache
|
||||||
cache=yes
|
cache=yes
|
||||||
|
cache-pause
|
||||||
cache-pause-wait=5
|
cache-pause-wait=5
|
||||||
cache-pause-initial=yes
|
cache-pause-initial=yes
|
||||||
demuxer-max-bytes=512MiB
|
demuxer-max-bytes=512MiB
|
||||||
demuxer-readahead-secs=20
|
demuxer-readahead-secs=20
|
||||||
prefetch-playlist=yes
|
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
|
||||||
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"
|
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"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[sync]
|
[sync]
|
||||||
develpkgsexpiration = -1
|
develpkgsexpiration = 30
|
||||||
alwaysshowpkgorigin = no
|
alwaysshowpkgorigin = no
|
||||||
upgradesorting = versiondiff
|
upgradesorting = versiondiff
|
||||||
showdownloadsize = yes
|
showdownloadsize = yes
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
--hls-use-mpegts
|
--hls-use-mpegts
|
||||||
--compat-options no-keep-subs
|
--compat-options no-keep-subs
|
||||||
--download-archive ".yt-dlp_archive"
|
--download-archive ".yt-dlp_archive"
|
||||||
--downloader axel
|
-N 4
|
||||||
|
|
|
@ -1,21 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
color=""
|
declare color
|
||||||
|
|
||||||
if [[ "$button" -gt 0 ]]
|
|
||||||
then
|
|
||||||
i3-msg -q -- exec nm-connection-editor
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! nmcli dev | grep " connecté" &>/dev/null
|
if ! nmcli dev | grep " connecté" &>/dev/null
|
||||||
then
|
then
|
||||||
color="#747369"
|
color="#747369"
|
||||||
if [ ! -f /dev/shm/claws_offline ]
|
if [ ! -f /dev/shm/claws_offline ]
|
||||||
then
|
then
|
||||||
#i3-msg -q -- exec claws-mail --offline
|
i3-msg -q -- exec claws-mail --offline
|
||||||
touch /dev/shm/claws_offline
|
touch /dev/shm/claws_offline
|
||||||
fi
|
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
|
then
|
||||||
color="#99CC99"
|
color="#99CC99"
|
||||||
if [ -f /dev/shm/claws_offline ]
|
if [ -f /dev/shm/claws_offline ]
|
||||||
|
@ -23,14 +20,18 @@ then
|
||||||
i3-msg -q -- exec claws-mail --online
|
i3-msg -q -- exec claws-mail --online
|
||||||
rm /dev/shm/claws_offline
|
rm /dev/shm/claws_offline
|
||||||
fi
|
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
|
else
|
||||||
color="#F2777A"
|
|
||||||
if [ ! -f /dev/shm/claws_offline ]
|
if [ ! -f /dev/shm/claws_offline ]
|
||||||
then
|
then
|
||||||
#i3-msg -q -- exec claws-mail --offline
|
i3-msg -q -- exec claws-mail --offline
|
||||||
touch /dev/shm/claws_offline
|
touch /dev/shm/claws_offline
|
||||||
color="#FFCC66"
|
|
||||||
fi
|
fi
|
||||||
|
color="#F2777A"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "<span foreground=\"$color\">re</span>"
|
echo "<span foreground=\"$color\">re</span>"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash -x
|
||||||
|
|
||||||
# Fonction de réinitialisation en cas de perte de la connexion
|
# Fonction de réinitialisation en cas de perte de la connexion
|
||||||
self-reset() {
|
self-reset() {
|
||||||
|
@ -10,11 +10,11 @@ self-reset() {
|
||||||
trap self-reset PIPE
|
trap self-reset PIPE
|
||||||
|
|
||||||
# Initialisation de la connexion au serveur
|
# 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]}
|
IN=${COPROC[1]}
|
||||||
OUT=${COPROC[0]}
|
OUT=${COPROC[0]}
|
||||||
#echo "password xxx" >&"${IN}"
|
#echo "password xxx" >&"${IN}"
|
||||||
#sed '/^OK/q' <&"$OUT" &>/dev/null
|
|
||||||
|
|
||||||
# Initialisation des valeurs par défaut et des fonctions
|
# Initialisation des valeurs par défaut et des fonctions
|
||||||
declare -i SCROLL=50 I=0
|
declare -i SCROLL=50 I=0
|
||||||
|
@ -45,7 +45,7 @@ human_time() {
|
||||||
echo "status" >&"$IN"
|
echo "status" >&"$IN"
|
||||||
while read -t 0.1 -u "$OUT" output
|
while read -t 0.1 -u "$OUT" output
|
||||||
do
|
do
|
||||||
[[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }"
|
[[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Boucle principale
|
# Boucle principale
|
||||||
|
@ -86,7 +86,7 @@ do
|
||||||
echo "currentsong" >&"$IN" || self-reset
|
echo "currentsong" >&"$IN" || self-reset
|
||||||
while read -t 0.1 -u "$OUT" output
|
while read -t 0.1 -u "$OUT" output
|
||||||
do
|
do
|
||||||
[[ "$output" =~ : ]] && o[${output%%:*}]="${output##*: }"
|
[[ "$output" =~ : ]] && o[${output%%:*}]="${output#*: }"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Choix des couleurs selon l’état
|
# Choix des couleurs selon l’état
|
||||||
|
@ -100,11 +100,18 @@ do
|
||||||
# on réinitialise l’affichage défilant
|
# on réinitialise l’affichage défilant
|
||||||
if [[ "${o["file"]}" != "${old["file"]}" || "${o["Title"]}" != "${old["Title"]}" || "${o["Name"]}" != "${old["Name"]}" ]]
|
if [[ "${o["file"]}" != "${old["file"]}" || "${o["Title"]}" != "${old["Title"]}" || "${o["Name"]}" != "${old["Name"]}" ]]
|
||||||
then
|
then
|
||||||
unset bloc1 bloc2 bloc3 bloc4
|
|
||||||
artist="${o["Artist"]:-${o["Name"]}}"
|
artist="${o["Artist"]:-${o["Name"]}}"
|
||||||
song="${o["Title"]}"
|
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" ]]
|
if [[ "$(( ${#song} + ${#artist} + 1 ))" -gt "$SCROLL" ]]
|
||||||
then
|
then
|
||||||
scroll=true
|
scroll=true
|
||||||
|
@ -181,4 +188,5 @@ do
|
||||||
printf '<b>%s</b>%s<b>%s</b>%s%s\n' "$bloc1" "$bloc2" "$bloc3" "$bloc4" " $status$time</span>"
|
printf '<b>%s</b>%s<b>%s</b>%s%s\n' "$bloc1" "$bloc2" "$bloc3" "$bloc4" " $status$time</span>"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
self-reset
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ do
|
||||||
declare -a running
|
declare -a running
|
||||||
|
|
||||||
running=($(jobs -p))
|
running=($(jobs -p))
|
||||||
if [[ "${#running[@]}" -ge 6 ]]
|
if [[ "${#running[@]}" -ge 12 ]]
|
||||||
then
|
then
|
||||||
wait -n
|
wait -n
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue