diff --git a/.Xresources b/.Xresources index 522f79c..3a2b666 100644 --- a/.Xresources +++ b/.Xresources @@ -58,7 +58,8 @@ XTerm*reverseVideo: on XTerm*selectToClipboard: true !URxvt.font: xft:IBM Plex Mono:pixelsize=14,xft:DejaVu Sans Mono:pixelsize=14,xft:Noto Sans Mono:pixelsize=14 -URxvt.font: xft:xos4 Terminus:pixelsize=14,xft:DejaVu Sans Mono:antialias=false:pixelsize=14,xft:Noto Sans Mono:pixelsize=14:antialias=false +!URxvt.font: xft:xos4 Terminus:pixelsize=14,xft:DejaVu Sans Mono:antialias=false:pixelsize=14,xft:Noto Sans Mono:pixelsize=14:antialias=false +URxvt.font: xft:xos4 Terminus:size=12,xft:DejaVu Sans Mono:antialias=false:size=12,xft:Noto Sans Mono:size=12:antialias=false !URxvt.letterSpace: 0 !URxvt.depth: 32 !URxvt.background: [100]#000000 diff --git a/.bashrc b/.bashrc index 0f8ee2e..fd9755d 100644 --- a/.bashrc +++ b/.bashrc @@ -262,6 +262,9 @@ colors() { export EDITOR=vim +# Debug +export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: ' + # fix "xdg-open fork-bomb" export your preferred browser from here alias conf='vim $HOME/.i3/config' diff --git a/.config/conky/conkyrc2 b/.config/conky/conkyrc2 index 9e16963..5e56670 100644 --- a/.config/conky/conkyrc2 +++ b/.config/conky/conkyrc2 @@ -80,9 +80,11 @@ CPU${goto 140}${if_match ${hwmon zenpower temp 1}>70}${color F2777A}$endif${hwmo ${color2}${font2}Carte graphique $hr${font}${color} #${voffset 2}Usage${goto 140}${texeci 3 conky_radeon}% #VRAM: ${texeci 3 conky_radeon vram mb}M${goto 140}${texeci 3 conky_radeon vram}% -Temp${goto 140}${if_match ${hwmon amdgpu temp 1}>70}${color F2777A}$endif${hwmon amdgpu temp 1}°C${color} +Temp puce${goto 140}${if_match ${hwmon amdgpu temp 1}>80}${color F2777A}$endif${hwmon amdgpu temp 1}°C${color} +Temp junction${goto 140}${if_match ${hwmon amdgpu temp 2}>90}${color F2777A}$endif${hwmon amdgpu temp 2}°C${color} +Temp mem${goto 140}${if_match ${hwmon amdgpu temp 3}>80}${color F2777A}$endif${hwmon amdgpu temp 3}°C${color} Conso${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-2900"."PPT"."power1_average"'}>180}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-2900"."PPT"."power1_average"' | cut -d. -f1} W${color} -Ventilo${goto 140}${if_match ${hwmon amdgpu fan 1}>3000}${color F2777A}$endif${hwmon amdgpu fan 1} RPM${color} +Ventilo${goto 140}${if_match ${hwmon amdgpu fan 1}>2000}${color F2777A}$endif${hwmon amdgpu fan 1} RPM${color} ${color2}${font2}Système $hr$font$color${voffset 2} Kernel${goto 140}$kernel diff --git a/.config/fish/functions/l.fish b/.config/fish/functions/l.fish index 962c10f..5af2cdb 100644 --- a/.config/fish/functions/l.fish +++ b/.config/fish/functions/l.fish @@ -1,3 +1,3 @@ function l --description 'alias l=ls -lAh' - exa -lgHahb@ --git --time-style long-iso $argv + exa -lgHahb --git --time-style long-iso $argv end diff --git a/.config/htop/htoprc b/.config/htop/htoprc index ad032e7..4106d78 100644 --- a/.config/htop/htoprc +++ b/.config/htop/htoprc @@ -36,17 +36,17 @@ column_meters_0=LeftCPUs2 Blank CPU Memory Swap Blank Hostname System DateTime B column_meter_modes_0=1 2 1 1 1 2 2 2 2 2 2 2 2 2 2 column_meters_1=RightCPUs2 Blank CPU Memory Swap Blank Uptime LoadAverage Tasks Blank DiskIO NetworkIO Blank PressureStallMemoryFull PressureStallIOFull column_meter_modes_1=1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 -tree_view=1 -sort_key=46 +tree_view=0 +sort_key=111 tree_sort_key=0 sort_direction=-1 tree_sort_direction=1 tree_view_always_by_pid=0 all_branches_collapsed=0 screen:Main=PID USER PRIORITY NICE OOM M_VIRT M_RESIDENT M_SHARE M_SWAP IO_RATE STATE PERCENT_CPU PERCENT_MEM TIME Command -.sort_key=PERCENT_CPU +.sort_key=IO_RATE .tree_sort_key=PID -.tree_view=1 +.tree_view=0 .tree_view_always_by_pid=0 .sort_direction=-1 .tree_sort_direction=1 diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 71be319..6190a86 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -42,6 +42,7 @@ 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 +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/ncmpcpp/config b/.config/ncmpcpp/config index e4bae7f..cf4ce7e 100644 --- a/.config/ncmpcpp/config +++ b/.config/ncmpcpp/config @@ -102,7 +102,7 @@ visualizer_in_stereo = yes # #visualizer_fps = 60 # -#visualizer_autoscale = no +visualizer_autoscale = yes # #visualizer_look = ●▮ # @@ -467,7 +467,7 @@ connected_message_on_startup = no # #ask_before_clearing_playlists = yes # -#clock_display_seconds = no +clock_display_seconds = yes # #display_volume_level = yes # diff --git a/.config/pikaur.conf b/.config/pikaur.conf index 5884854..9a8b770 100644 --- a/.config/pikaur.conf +++ b/.config/pikaur.conf @@ -34,6 +34,7 @@ aursearchsorting = hottest displaylastupdated = yes groupbyrepository = yes reversesearchsorting = yes +warnaboutpackageupdates = [misc] sudoloopinterval = 30 diff --git a/.local/bin/auto-poweroff.sh b/.local/bin/auto-poweroff.sh index 7119f8d..b55a412 100755 --- a/.local/bin/auto-poweroff.sh +++ b/.local/bin/auto-poweroff.sh @@ -1,8 +1,10 @@ -#!/bin/bash -x +#!/bin/bash # 1: Temps en minutes # 2: Type d’extinction +trap 'exit' INT TERM + touch /dev/shm/mccount while true @@ -15,17 +17,20 @@ if [[ "$mcstatus" == "T" ]] then echo . >> /dev/shm/mccount else + echo "Joueur(s) connecté(s), réinitialisation du compteur" > /dev/shm/mccount fi time=$(wc -l /dev/shm/mccount | cut -d" " -f1) +echo "$time"/"${1:-5}" + if [[ "$time" -ge "${1:-5}" ]] then > /dev/shm/mccount systemctl "${2:-suspend}" fi -sleep 60 +sleepcount -c 60 done diff --git a/.local/bin/music-convert b/.local/bin/music-convert index 8c7e77b..82da0da 100755 --- a/.local/bin/music-convert +++ b/.local/bin/music-convert @@ -21,7 +21,7 @@ cd "$rootdir" for dir in **/ . do # Ignorer les liens symboliques - if [[ -h "${rootdir}/${dir::-1}" ]] + if [[ -h "${rootdir}/${dir::-1}" && "${dir}" != "Vidéos/" ]] then continue fi @@ -64,8 +64,8 @@ do # Parrallélisation des conversions declare -a running - running=($(jobs -p)) - if [[ "${#running[@]}" -ge 10 ]] + mapfile -t running < <(jobs -p) + if [[ "${#running[@]}" -ge 12 ]] then wait -n fi @@ -93,7 +93,7 @@ do cd "${dstdir}" shopt -s nullglob echo "[${blue}GAIN${reset}] $dir" - loudgain -S -a -k -q -s e *.opus &>/dev/null && \ + loudgain -S -a -k -q -s e -- *.opus &>/dev/null && \ echo "[${green}GAIN${reset}] $dir" || \ echo "[${red}GAIN${reset}] $dir" shopt -u nullglob