Compare commits

...

3 Commits

3 changed files with 20 additions and 15 deletions

View File

@ -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('<Backspace>', 'back', mode='normal')
config.bind('<Shift-Backspace>', 'forward', mode='normal')
config.bind('<Control-Tab>', 'tab-next', mode='normal')

View File

@ -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

View File

@ -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"