diff --git a/.bash_profile b/.bash_profile index fdd600a..1b3eb37 100644 --- a/.bash_profile +++ b/.bash_profile @@ -23,7 +23,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=4G firefox" + export BROWSER="systemd-run --user --scope -p MemoryMax=3G firefox" export TERMINAL=urxvtc export XDG_CURRENT_DESKTOP=i3 # exec sway -d 2> $HOME/.sway.log diff --git a/.config/i3/config b/.config/i3/config index 426402d..2c15bde 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -370,12 +370,12 @@ exec claws-mail --online exec --no-startup-id urxvtc -name newsboat -e newsboat exec --no-startup-id redshift-gtk exec --no-startup-id nm-applet -#exec --no-startup-id sleep 2m && steam-native -silent -noverifyfiles -language french +exec --no-startup-id sleep 1m && steam-native -silent -noverifyfiles -language french #exec --no-startup-id SVPManager #exec --no-startup-id hp-systray -x -exec --no-startup-id sleep 5 && play "$HOME/Musique/WELCOME BACK.wav" +exec --no-startup-id sleep 1m && play "$HOME/Musique/WELCOME BACK.wav" #exec --no-startup-id variety -exec --no-startup-id sleep 5m && qbittorrent +#exec --no-startup-id sleep 5m && qbittorrent # Start i3bar to display a workspace bar (plus the system information i3status if available) bar { diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index c1e1672..273fe54 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -23,8 +23,9 @@ sub-file-paths=~/Sous-titres/ sub-font=IBM Plex Sans sub-font-size=25 sub-margin-y=10 -#slang=en,eng,en-US,en-GB,fr,fre,fra,fr-FR -#slang=fr,fre,fra +slang=en + +ytdl-raw-options=write-auto-subs= # Cache cache=yes diff --git a/.config/mpv/script-opts/uosc.conf b/.config/mpv/script-opts/uosc.conf index b552ed1..bc500e6 100644 --- a/.config/mpv/script-opts/uosc.conf +++ b/.config/mpv/script-opts/uosc.conf @@ -17,7 +17,7 @@ timeline_cache=yes # When to display an always visible progress bar (minimized timeline). Can be: windowed, fullscreen, always, never # Can also be toggled on demand with `toggle-progress` command. progress=always -progress_size=2 +progress_size=5 progress_line_width=20 # A comma delimited list of controls above the timeline. Set to `never` to disable. @@ -226,4 +226,4 @@ languages=slang,en # A comma separated list of element IDs to disable. Available IDs: # window_border, top_bar, timeline, controls, volume, # idle_indicator, audio_indicator, buffering_indicator, pause_indicator -disable_elements=buffering_indicator +disable_elements= diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config index d922d0c..b51b8c5 100644 --- a/.config/ncmpcpp/config +++ b/.config/ncmpcpp/config @@ -102,7 +102,7 @@ visualizer_in_stereo = yes # visualizer_fps = 144 # -visualizer_autoscale = yes +visualizer_autoscale = no # #visualizer_look = ●▮ # diff --git a/.config/pikaur.conf b/.config/pikaur.conf index a131e4f..d07a938 100644 --- a/.config/pikaur.conf +++ b/.config/pikaur.conf @@ -41,6 +41,7 @@ pacmanpath = pacman privilegeescalationtool = sudo privilegeescalationtarget = pikaur userid = 0 +preserveenv = PKGDEST,VISUAL,EDITOR,http_proxy,https_proxy,ftp_proxy,HTTP_PROXY,HTTPS_PROXY,FTP_PROXY,ALL_PROXY [network] aururl = https://aur.archlinux.org diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config index 2b1272f..045f18a 100644 --- a/.config/yt-dlp/config +++ b/.config/yt-dlp/config @@ -1,21 +1,18 @@ -U # Upgrade -o "%(release_date,upload_date)s.%(title)s.%(ext)s" -P "temp:/tmp" +--convert-thumbnails "webp>jpg" +--embed-thumbnail +--add-metadata --embed-subs --write-subs ---write-auto-subs +#--write-auto-subs --sub-langs fr,en,en(-|_)?.+,-live_chat -#--sub-langs en ---embed-thumbnail -i -S res:1440,fps,hdr:12,vcodec,channels,acodec,lang,proto -#-f "((bestvideo[height<=?1440][width<=?2560]/bestvideo)+bestaudio)/best" ---add-metadata --hls-use-mpegts --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/updates b/.i3blocks/updates index 19d6ca9..c3a8fd9 100755 --- a/.i3blocks/updates +++ b/.i3blocks/updates @@ -14,7 +14,7 @@ then echo 0 > ${runtime}/updates fi -avail=($(checkupdates | cut -d' ' -f1)) +avail=($(checkupdates --nocolor | cut -d' ' -f1)) aur=($(pikaur -Qua | cut -d' ' -f2)) total=$((${#avail[@]} + ${#aur[@]})) diff --git a/.local/bin/open_with_linux.py b/.local/bin/open_with_linux.py index 136275d..75079d9 100755 --- a/.local/bin/open_with_linux.py +++ b/.local/bin/open_with_linux.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import os @@ -7,7 +7,7 @@ import json import struct import subprocess -VERSION = '7.2.3' +VERSION = '7.2.6' try: sys.stdin.buffer @@ -33,23 +33,8 @@ try: except AttributeError: # Python 2.x version (if sys.stdin.buffer is not defined) - # Read a message from stdin and decode it. - def getMessage(): - rawLength = sys.stdin.read(4) - if len(rawLength) == 0: - sys.exit(0) - messageLength = struct.unpack('@I', rawLength)[0] - message = sys.stdin.read(messageLength) - return json.loads(message) - - # Send an encoded message to stdout - def sendMessage(messageContent): - encodedContent = json.dumps(messageContent) - encodedLength = struct.pack('@I', len(encodedContent)) - - sys.stdout.write(encodedLength) - sys.stdout.write(encodedContent) - sys.stdout.flush() + print('Python 3.2 or newer is required.') + sys.exit(-1) def install(): @@ -117,6 +102,7 @@ def find_browsers(): apps = [ 'Chrome', 'Chromium', + 'chromium', 'chromium-browser', 'firefox', 'Firefox', @@ -184,4 +170,5 @@ if __name__ == '__main__': listen() sys.exit(0) - print('Open With native helper, version %s.' % VERSION) + print('This is the Open With native helper, version %s.' % VERSION) + print('Run this script again with the word "install" after the file name to install.')