From 6a0bcd731607ddd4ee960c4fb6847db885536d5d Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Wed, 26 Oct 2022 18:15:16 +0200 Subject: [PATCH 1/3] [QB] Back to default-like shortcuts --- .config/qutebrowser/config.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index ed7fbe1..8f075fa 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -14,19 +14,19 @@ c.qt.args = ["blink-settings=darkMode=1"] c.auto_save.session = True # Bindings -config.bind('o', 'set-cmd-text -s :open', mode='normal') -config.bind('O', 'set-cmd-text -s :open {url:pretty}', mode='normal') -config.bind('w', 'set-cmd-text -s :open -t', mode='normal') -config.bind('W', 'set-cmd-text -s :open -t {url:pretty}', mode='normal') -config.bind('Fy', 'hint links yank-primary', mode='normal') -config.bind('yy', 'yank -s', mode='normal') -config.bind('Ev', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {url}', mode='normal') -config.bind('EV', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {url}', mode='normal') -config.bind('Ea', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {url}', mode='normal') -config.bind('Fv', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {hint-url}', mode='normal') -config.bind('FV', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {hint-url}', mode='normal') -config.bind('Fa', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {hint-url}', mode='normal') -config.unbind('F') +#config.bind('o', 'set-cmd-text -s :open', mode='normal') +#config.bind('O', 'set-cmd-text -s :open {url:pretty}', mode='normal') +#config.bind('w', 'set-cmd-text -s :open -t', mode='normal') +#config.bind('W', 'set-cmd-text -s :open -t {url:pretty}', mode='normal') +#config.bind('Fy', 'hint links yank-primary', mode='normal') +#config.bind('yy', 'yank -s', mode='normal') +config.bind(',vl', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {hint-url}', mode='normal') +config.bind(',Vl', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {url}', mode='normal') +config.bind(',vh', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {hint-url}', mode='normal') +config.bind(',Vh', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {url}', mode='normal') +config.bind(',a', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {hint-url}', mode='normal') +config.bind(',A', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {url}', mode='normal') +#config.unbind('F') config.bind('', 'back', mode='normal') config.bind('', 'forward', mode='normal') config.bind('', 'tab-next', mode='normal') From 1d7412d67dd3e8f5dfa7fad3c22567697940b8e2 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Wed, 26 Oct 2022 18:16:17 +0200 Subject: [PATCH 2/3] [QB] Add some quickmarks --- .config/qutebrowser/quickmarks | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks index d96a5be..0fe765d 100644 --- a/.config/qutebrowser/quickmarks +++ b/.config/qutebrowser/quickmarks @@ -62,7 +62,7 @@ texte analyse complexité lisibilité https://www.scolarius.com/ icon web logo svg https://iconify.design/ airali amigurumi pattern crochet https://shop.airalidesign.com/ trust simulation game https://ncase.me/trust/ -svt optimizer svgomg https://xerocho.github.io/svgomg/ +svg optimizer svgomg https://xerocho.github.io/svgomg/ tuto backup borg https://sebsauvage.net/wiki/doku.php?id=disque_externe url tiny unshorten https://unshorten.umaneti.net/ tuto css flexbox align html https://css-tricks.com/snippets/css/a-guide-to-flexbox/ @@ -125,7 +125,6 @@ true size country https://thetruesize.com/#?borders=1~!MTcxMzQyMTQ.NTY0NjIzOA*Mz quiz politique test https://politiscales.fr/ Sub-Session Nextcloud https://cloud.sub-session.ch/index.php/apps/dashboard/ typeracer keyboard speed https://play.typeracer.com/?universe=lang_fr -qr facture generateur https://qrmodul.ch/fr/ image free wallapapers https://unsplash.com/ pdf signature https://pdf.libreon.fr/signature octave tutorial (matlab) https://www.tutorialspoint.com/matlab/matlab_gnu_octave.htm @@ -136,3 +135,7 @@ segregation triangle carré jeu société http://ncase.me/polygons-fr/ recette pain levain nuit https://www.painlevain.com/recette-du-pain-au-levain/ qr facture generator https://www.postfinance.ch/pfch/web/qrbill/Index.do atlas statistique suisse population https://www.atlas.bfs.admin.ch/maps/13/fr/16219_3006_3005_70/25218.html +tufte edward latex book https://edwardtufte.github.io/ +typograhie normes orthographe https://cuy.be/ +arthur perret pandoc make blog https://www.arthurperret.fr/ +qr facture générateur raiffeisen https://www.raiffeisen.ch/qr-rechnung/fr.html From 8e817ad10b9a5aefa35d5623677489f883741738 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Wed, 26 Oct 2022 18:16:58 +0200 Subject: [PATCH 3/3] [SCRIPTS] Add png compression with pndquant --- .scripts/generate_tumbnails.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.scripts/generate_tumbnails.sh b/.scripts/generate_tumbnails.sh index 389116b..3bd6cb1 100755 --- a/.scripts/generate_tumbnails.sh +++ b/.scripts/generate_tumbnails.sh @@ -28,6 +28,7 @@ thumbnail(){ jpegq=75 webpq=55 cavifq=35 + pngq="60-90" # Si une image est un thumbnail on la considère comme déjà bien traitée. if [[ $2 == *".thumb."* ]]; then @@ -56,6 +57,7 @@ thumbnail(){ pngcrush -warn "$2" "$2.tmp" mv -f "$2.tmp" "$2" /usr/bin/convert -resize $maxwidth\> "$2" "$thumbname" + /usr/bin/pngquant --quality=$pngq --skip-if-larger --force --transbug "$thumbname" -o "$thumbname" /usr/bin/convert -resize $maxwidth\> -quality $webpq "$2" "$thumbwebpname" pngcrush -warn "$thumbname" "$thumbname.tmp" mv -f "$thumbname.tmp" "$thumbname"