From 9e3a0283dcece78e61b823451adb584c9c183d2b Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 10 Dec 2020 11:26:16 +0100 Subject: [PATCH 1/3] [BASH] Add a function to compress pdf --- .bashrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.bashrc b/.bashrc index 59ec0d8..8738eaa 100644 --- a/.bashrc +++ b/.bashrc @@ -175,4 +175,21 @@ function syncSubSessionCloud() { rsync -av --delete /media/HDD1/NextcloudSS/Sub-Session/ "/media/raghnarok/SubSession$disk/cloud/" } +function pdfcompress(){ + if [ -z ${3+x} ]; + then + quality=printer + else + case $3 in + ebook | screen | printer | prepress | default ) + quality=$3 + ;; + *) + quality='default' + ;; + esac + fi + gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/$quality -dNOPAUSE -dQUIET -dBATCH -sOutputFile="$2" "$1" +} + export PATH="$HOME/.cargo/bin:$PATH" From 08d9a4840f87dfbbad244deeaa9c6a1345d161f8 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 10 Dec 2020 11:27:00 +0100 Subject: [PATCH 2/3] [CONKY] Remove the display of the volume --- .config/conky/conky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/conky/conky.conf b/.config/conky/conky.conf index b2cdbdb..576eb34 100644 --- a/.config/conky/conky.conf +++ b/.config/conky/conky.conf @@ -51,7 +51,7 @@ conky.text = [[ ${color0}${font sans-serif:bold:size=8}DATE ${hr 2}$color ${alignc}${voffset 10}${alignc}${font Trebuchet MS:size=28}${time %H:%M:%S}${font} ${alignc}${alignc}${font Trebuchet MS:size=8}${time %a %d %b %Y} -${alignc}Volume: ${exec ~/.config/conky/conky-volume.sh}% +#${alignc}Volume: ${exec ~/.config/conky/conky-volume.sh}% #% ${execbar ~/.config/conky/conky-volume.sh} ############################################## #SYSTEM From ce1ad6b91c699c8f004a9031f0c9e0665bfe43cf Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 10 Dec 2020 11:27:54 +0100 Subject: [PATCH 3/3] [QB] Add some quickmarks and allow discord to record mic --- .config/qutebrowser/autoconfig.yml | 1 + .config/qutebrowser/quickmarks | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.config/qutebrowser/autoconfig.yml b/.config/qutebrowser/autoconfig.yml index ad2ab98..f138080 100644 --- a/.config/qutebrowser/autoconfig.yml +++ b/.config/qutebrowser/autoconfig.yml @@ -38,6 +38,7 @@ settings: '*://www.deepl.com/*': true '*://www2.yggtorrent.se/*': true content.media.audio_capture: + https://discord.com: true https://kmeet.infomaniak.com: true https://visio.inubo.ch: true content.media.audio_video_capture: diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks index bf47267..e543e0c 100644 --- a/.config/qutebrowser/quickmarks +++ b/.config/qutebrowser/quickmarks @@ -42,3 +42,7 @@ framalistes mail liste https://framalistes.org/sympa/my borg backup performance https://lapineige.fr/wp/blog/2020/10/borg-backup-et-compression-performances-comparees-des-differentes-possibilites/ postfix admin https://vulgarisons.info/adminmail/login.php zefix registre commerce https://www.zefix.ch/fr/search/entity/welcome +rich jeff bezos comparaison argent https://mkorostoff.github.io/1-pixel-wealth/ +culture calculateur production https://parcel-app.org/ +postit framemo memo outil https://postit.colibris-outilslibres.org/ +electricity map live statistiques https://www.electricitymap.org/map