diff --git a/applications.org b/applications.org index 94c081a..5861c2e 100644 --- a/applications.org +++ b/applications.org @@ -1,10 +1,10 @@ #+TITLE:Desktop file for the applications #+SETUPFILE: ./setup/org-setup-file.org +#+PROPERTY: header-args:conf :comments none :mkdirp yes * Mime Applications :PROPERTIES: :header-args: :tangle ~/.config/mimeapps.list -:header-args+: :comments both :mkdirp yes :END: #+BEGIN_SRC conf @@ -40,7 +40,6 @@ application/x-bittorrent=deluge.desktop; * Neomutt :PROPERTIES: :header-args: :tangle ~/.local/share/applications/neomutt.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] @@ -57,7 +56,6 @@ StartupNotify=true * Weechat :PROPERTIES: :header-args: :tangle ~/.local/share/applications/weechat.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] @@ -77,15 +75,14 @@ GenericName=IRC Client * Matlab :PROPERTIES: :header-args: :tangle ~/.local/share/applications/matlab.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] -Version=R2020a +Version=R2020b Type=Application Terminal=false MimeType=text/x-matlab -Exec=/usr/local/MATLAB/R2020a/bin/matlab -desktop -nosplash +Exec=/usr/local/MATLAB/R2020b/bin/matlab -desktop Name=MATLAB Icon=matlab Categories=Development;Math;Science @@ -96,7 +93,6 @@ StartupNotify=true * Neovim :PROPERTIES: :header-args: :tangle ~/.local/share/applications/nvim.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] @@ -116,7 +112,6 @@ MimeType=text/english;text/plain;text/x-makefile; * Images :PROPERTIES: :header-args: :tangle ~/.local/share/applications/img.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] @@ -128,7 +123,6 @@ Exec=/usr/bin/sxiv -a %u * Org-Protocol :PROPERTIES: :header-args: :tangle ~/.local/share/applications/org-protocol.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] @@ -143,7 +137,6 @@ MimeType=x-scheme-handler/org-protocol; * Ranger :PROPERTIES: :header-args: :tangle ~/.local/share/applications/ranger.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] @@ -159,23 +152,23 @@ MimeType=inode/directory;inode/mount-point;x-scheme-handler/ssh;x-scheme-handler * Emacs Client :PROPERTIES: :header-args: :tangle ~/.local/share/applications/emacsclient.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] Name=Emacs Client -Exec=emacsclient -c %u -Icon=emacs-icon +GenericName=Text Editor +Comment=Edit text +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +Exec=emacsclient -c %f +Icon=emacs Type=Application Terminal=false -MimeType=x-scheme-handler/org-protocol; -NoDisplay=true +Categories=Utility;TextEditor; #+end_src * Torrent with Transmission :PROPERTIES: :header-args: :tangle ~/.local/share/applications/torrent.desktop -:header-args+: :comments both :mkdirp yes :END: #+begin_src conf [Desktop Entry] @@ -183,3 +176,41 @@ Type=Application Name=Torrent Exec=tremc %U #+end_src + +* Qutebrowser +:PROPERTIES: +:header-args: :tangle ~/.local/share/applications/qutebrowser.desktop +:END: +#+begin_src conf +[Desktop Entry] +Name=qutebrowser +StartupWMClass=qutebrowser +GenericName=Web Browser +Comment=A keyboard-driven, vim-like browser based on PyQt5 +Icon=qutebrowser +Type=Application +Categories=Network;WebBrowser; +Exec=qutebrowser %u +Terminal=false +StartupNotify=true +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/qute; +Keywords=Browser +Actions=new-window;preferences; +#+end_src + +* Zathura +:PROPERTIES: +:header-args: :tangle ~/.local/share/applications/zathura.desktop +:END: +#+begin_src conf +[Desktop Entry] +Version=1.0 +Type=Application +Name=Zathura +Comment=A minimalistic PDF viewer +Comment[de]=Ein minimalistischer PDF-Betrachter +Exec=zathura %f +Terminal=false +Categories=Office;Viewer; +MimeType=application/pdf; +#+end_src diff --git a/docs/applications.html b/docs/applications.html index 39c8efb..e4a19d7 100644 --- a/docs/applications.html +++ b/docs/applications.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +[Desktop Entry] -Version=R2020a +Version=R2020b Type=Application Terminal=false MimeType=text/x-matlab -Exec=/usr/local/MATLAB/R2020a/bin/matlab -desktop -nosplash +Exec=/usr/local/MATLAB/R2020b/bin/matlab -desktop Name=MATLAB Icon=matlab Categories=Development;Math;Science @@ -204,12 +206,14 @@[Desktop Entry] Name=Emacs Client -Exec=emacsclient -c %u -Icon=emacs-icon +GenericName=Text Editor +Comment=Edit text +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +Exec=emacsclient -c %f +Icon=emacs Type=Application Terminal=false -MimeType=x-scheme-handler/org-protocol; -NoDisplay=true +Categories=Utility;TextEditor;
[Desktop Entry] +Name=qutebrowser +StartupWMClass=qutebrowser +GenericName=Web Browser +Comment=A keyboard-driven, vim-like browser based on PyQt5 +Icon=qutebrowser +Type=Application +Categories=Network;WebBrowser; +Exec=qutebrowser %u +Terminal=false +StartupNotify=true +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/qute; +Keywords=Browser +Actions=new-window;preferences; ++
[Desktop Entry] +Version=1.0 +Type=Application +Name=Zathura +Comment=A minimalistic PDF viewer +Comment[de]=Ein minimalistischer PDF-Betrachter +Exec=zathura %f +Terminal=false +Categories=Office;Viewer; +MimeType=application/pdf; ++
Created: 2021-01-08 ven. 01:43
+Created: 2021-02-10 mer. 17:57
share
- Share file with self-hosted transfer.sh
screen-select
- Xrandr pre-defined scriptscolor-picker
- Pick color and copy to clipboardreadbib
- Open Bibliography Filereadnotes
- Open Notereadbib
- Open Bibliography File
+List all pdf
files and open selected one with zathura.
+
cd ~/Cloud/pdfs/ && ls | rofi -dmenu -lines 20 | xargs -I {} zathura {} ++
readnotes
- Open Note
+List all pdf
files and open selected one with zathura.
+
cd ~/Cloud/brain/pdfs/ && ls | rofi -dmenu -lines 20 | xargs -I {} zathura {} ++
Created: 2021-01-08 ven. 01:33
+Created: 2021-02-10 mer. 17:57
mopidy-restart
- Restart Mopidyupload
- Upload Scriptweather
- Display Weather in terminalreadbib
- Open Bibliography Filepdf2bib
- Extract bibtex entry from PDF filepdf2png
- Convert a PDF to PNGconvert-file
- Convert any file to another filetypereadbib
- Open Bibliography File
-List all pdf
files and open selected one with zathura.
-
cd ~/Cloud/pdfs/ && ls | rofi -dmenu -lines 20 | xargs -I {} zathura {} --
pdf2bib
- Extract bibtex entry from PDF filerofi
.
Created: 2021-01-08 ven. 01:40
+Created: 2021-02-10 mer. 17:57
Created: 2021-01-08 ven. 01:43
+Created: 2021-01-12 mar. 12:15
startblock
when opening org-mode files,m
ctrl-ret
used to execute the src block and go to the next onectrl-shift-ret
used to execute the (matlab) src block in the background and go to the next one
@@ -150,11 +153,12 @@
C-x C-q
)
+
+(defun tdh-screenshot-page () + "Open current page as an SVG file with Inkscape" + (interactive) + (if (string-match "_" (file-name-base buffer-file-name)) + (setq filename (read-string "Enter file name:" (car (split-string (file-name-base buffer-file-name) "_")))) + (setq filename (read-string "Enter file name:"))) + (setq filepath (concat "/tmp/" filename ".svg")) + (shell-command (concat "pdftk " buffer-file-name " cat " (number-to-string (pdf-view-current-page)) " output /tmp/pdf_page.pdf")) + (shell-command (concat "pdf2svg /tmp/pdf_page.pdf " filepath)) + (start-process "" nil "inkscape" filepath)) ++
(after! pdf-tools + (map! :map pdf-view-mode-map + (:desc "Screenshot" + :ni "C-c s" 'tdh-screenshot-page) + )) ++
attr_latex: :widt
-
-Org Links
-
+
+Org Links
+
(after! org
(setq org-link-abbrev-alist
@@ -1227,6 +1254,24 @@ Org Agenda Custom Views
+
+Org Agenda HTML
+
+
+This function can be used to export the week calendar to html.
+This html page can be used as a starting page for the browser.
+This idea comes from here.
+
+
+(defun tdh-org-agenda-to-html ()
+ (interactive)
+ (org-agenda-list)
+ (org-agenda-write "/ssh:thomas@grenoble:~/docker/config/calendar/www/index.html"))
+
+
+
+
+
Org Fancy Priority
@@ -1295,7 +1340,7 @@ dunstify --replace=85401 ("C" . "comment")
("mm" . "src matlab")
("mf" . "src matlab :exports none")
- ("mv" . "src matlab :results value replace :exports none :tangle no")
+ ("mv" . "src matlab :results value replace :exports results :tangle no")
("l" . "src emacs-lisp")
("q" . "quote")
("s" . "src")
@@ -1742,13 +1787,13 @@ Adapt this from https://github.com/
:latex-compiler ("latex -interaction nonstopmode -output-directory %o %f")
:image-converter ("dvipng -D %D -T tight -o %O %f"))
(dvisvgm
- :programs ("pdflatex" "dvisvgm")
- :description "dvi > svg"
- :message "you need to install the programs: latex and dvisvgm."
- :image-input-type "dvi"
+ :programs ("xetex" "dvisvgm")
+ :description "xdv > svg"
+ :message "you need to install the programs: xetex and dvisvgm."
+ :image-input-type "xdv"
:image-output-type "svg"
:image-size-adjust (0.6 . 0.6)
- :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f")
+ :latex-compiler ("xelatex -no-pdf -output-directory %o %f")
:image-converter ("dvisvgm %f -n -b min -c %S -o %O"))
))
@@ -2131,6 +2176,19 @@ Special Environments
+
+Org Auto Tangle
+
+
+(use-package! org-auto-tangle
+ :after org
+ :hook (org-mode . org-auto-tangle-mode)
+ )
+
+
+
+
+
LaTeX macro both for LaTeX and HTML export
@@ -2363,7 +2421,7 @@ Special Environments
(while (not (eq 'table (org-element-type (org-element-at-point))))
(forward-line -1))
- (tdh-render-org-table (org-element-at-point))
+ (tdh-render-org-table (org-element-at-point))
)))))
@@ -2397,7 +2455,7 @@ Special Environments
(org-element-map (org-element-parse-buffer) 'table 'tdh-render-org-table)))
;; Use F9 to globally generate tables
- (map! :map org-mode-map :n "<f8>" (lambda () (interactive) (tdh-render-org-table-at-point)))
+ (map! :map org-mode-map :n "<f8>" (lambda () (interactive) (tdh-render-org-table-at-point)))
)
@@ -2428,9 +2486,9 @@ Special Environments
-
-Org Links
-
+
+Org Links
+
Youtube Links
@@ -3126,6 +3184,45 @@ Better format the output results for Matlab (
+Mermaid
+
+
+yay -S mermaid-cli
+
+
+
+
+(use-package! ob-mermaid
+ :after org
+ :config
+ (setq ob-mermaid-cli-path "/usr/bin/mmdc")
+ )
+
+
+
+
+gantt
+dateFormat YYYY-MM-DD
+title Adding GANTT diagram to mermaid
+excludes weekdays 2014-01-10
+
+section A section
+Completed task :done, des1, 2014-01-06,2014-01-08
+Active task :active, des2, 2014-01-09, 3d
+Future task : des3, after des2, 5d
+Future task2 : des4, after des3, 5d
+
+
+
+
+
+
+
+
+
+
+
Some functions for using Matlab with Org Babel ,m
@@ -3369,8 +3466,9 @@ if no region is selected, it runs all the code blocks and goes to the next block
(tdh-matlab-execute-selected (region-beginning) (region-end))
(progn (tdh-org-babel-execute-matlab-background)
(org-babel-next-src-block)))
- (tdh-ctrl-ret))
+ (org-babel-next-src-block))
)
+ (org-babel-next-src-block)
)
)
@@ -3613,7 +3711,7 @@ Nice Functions:
:custom-face
(org-roam-link ((t (:inherit org-link :foreground "#cc241d"))))
:config
- (setq org-roam-directory "~/Cloud/brain/")
+ (setq org-roam-directory (file-truename "~/Cloud/brain/"))
(setq org-roam-completion-system 'helm)
(setq org-roam-tag-sources '(prop last-directory))
(setq org-roam-capture-templates
@@ -3664,20 +3762,26 @@ Automatic export of backlinks
(insert (format "- [[file:%s][%s]]\n"
(file-relative-name link org-roam-directory)
(org-roam--get-title-or-slug link))))))
+
(add-hook 'org-export-before-processing-hook #'tdh-org-export-preprocessor)
-
-
- (defun tdh-org-roam-export-all ()
- "Re-exports all Org-roam files to Hugo markdown."
- (interactive)
- (dolist (f (org-roam--list-all-files))
- (with-current-buffer (find-file f)
- (when (s-contains? "SETUPFILE" (buffer-string))
- (org-hugo-export-wim-to-md)))))
)
+
+Re-Export all roam files.
+
+
+(defun tdh-org-roam-export-all ()
+ "Re-exports all Org-roam files to Hugo markdown."
+ (interactive)
+ (dolist (f (org-roam--list-all-files))
+ (with-current-buffer (find-file f)
+ (when (s-contains? "SETUPFILE" (buffer-string))
+ (org-hugo-export-wim-to-md)))))
+
+
+
Create Org-Roam file from heading (link)
@@ -3893,7 +3997,7 @@ Provides nice functions such as:
(use-package! org-roam-bibtex
- :hook (org-roam-mode . org-roam-bibtex-mode)
+ :hook (org-roam-mode . org-roam-bibtex-mode)
:config
(setq orb-preformat-keywords `("=key=" "title" "author" "year" "author-abbrev" "=type="))
@@ -3949,6 +4053,18 @@ Provides nice functions such as:
+
+
+Bibtex-Mode
+
+
+(after! bibtex
+ (map! :map bibtex-mode-map
+ :n "C-c c" 'org-ref-clean-bibtex-entry))
+
+
+
+
@@ -3960,9 +4076,9 @@ Provides nice functions such as:
-
-Basic Config
-
+
+Basic Config
+
(after! auctex
(setq +latex-viewers '(zathura pdf-tools)))
@@ -4233,9 +4349,9 @@ Choose account label to feed msmtp -a option based on From header in Message buf
-
-Basic Config
-
+
+Basic Config
+
(use-package! mu4e
:config
@@ -4562,12 +4678,24 @@ Choose account label to feed msmtp -a option based on From header in Message buf
+
+;; Connector between Org-roam, BibTeX-completion, and Org-ref
+(package! org-roam-bibtex)
+
+
+
;; Org-mode modules for citations, cross-references, bibliographies
(package! org-ref)
+
+;; Org file tangling upon save
+;; (package! org-auto-tangle)
+
+
+
;; Alert notifications for org-agenda
(package! org-wild-notifier)
@@ -4597,6 +4725,7 @@ Choose account label to feed msmtp -a option based on From header in Message buf
;; Org-mode query language
(package! org-ql)
+(package! helm-org-ql)
@@ -4617,12 +4746,18 @@ Choose account label to feed msmtp -a option based on From header in Message buf
(package! evil-escape :disable t)
+
+
+;; Nice gantt charts
+(package! ob-mermaid)
+
+
Created: 2021-01-08 ven. 01:32
+Created: 2021-02-10 mer. 17:57
diff --git a/docs/emacs-snippets.html b/docs/emacs-snippets.html
index 391473f..627d18d 100644
--- a/docs/emacs-snippets.html
+++ b/docs/emacs-snippets.html
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
+
-Doom Emacs Configuration
@@ -217,7 +217,7 @@ if exist('opts_param','
#name :LaTeX Environment
# --
\begin{${1:equation}}
- $0
+$0
\end{$1}
@@ -572,9 +572,9 @@ $0
#name :Tikz figure
# --
#+begin_src latex :file ${1:figure_name}.pdf :post pdf2svg(file=*this*, ext="png") :exports both
- \begin{tikzpicture}
- $0
- \end{tikzpicture}
+\begin{tikzpicture}
+ $0
+\end{tikzpicture}
#+end_src
@@ -594,9 +594,9 @@ $0
#+HEADER: :results raw replace :buffer no :eval no-export :exports both :mkdirp yes
#+HEADER: :output-dir ${2:figs}
#+begin_src latex :file $1.pdf :post pdf2svg(file=*this*, ext="png") :exports both
- \begin{tikzpicture}
- $0
- \end{tikzpicture}
+\begin{tikzpicture}
+ $0
+\end{tikzpicture}
#+end_src
#+NAME: fig:$1
@@ -616,9 +616,9 @@ $0
# --
* ${1:Title/Description of the figure}
#+begin_src latex :file ${2:figure_name}.pdf :tangle figs/$2.tex :exports ${3:both}
- \begin{tikzpicture}
- $0
- \end{tikzpicture}
+\begin{tikzpicture}
+ $0
+\end{tikzpicture}
#+end_src
#+name: fig:$2
@@ -774,18 +774,18 @@ $0
This Matlab function is accessible [[file:src/$2.m][here]].
#+begin_src matlab
- function [${4:in_data}] = $2(${3:in_data})
- % $2 - $0
- %
- % Syntax: [$4] = $2($3)
- %
- % Inputs:
- % - $3 -
- %
- % Outputs:
- % - $4 -
+function [${4:in_data}] = $2(${3:in_data})
+% $2 - $0
+%
+% Syntax: [$4] = $2($3)
+%
+% Inputs:
+% - $3 -
+%
+% Outputs:
+% - $4 -
- end
+end
#+end_src
@@ -808,17 +808,17 @@ This Matlab function is accessible [[file:src/$2.m][here]].
** ZIP file containing the data and matlab files :ignore:
#+begin_src bash :exports none :results none
- if [ matlab/$2.m -nt data/$2.zip ]; then
- cp matlab/$2.m $2.m;
- zip data/$2 \
- mat/data.mat \
- $2.m
- rm $2.m;
- fi
+if [ matlab/$2.m -nt data/$2.zip ]; then
+ cp matlab/$2.m $2.m;
+ zip data/$2 \
+ mat/data.mat \
+ $2.m
+ rm $2.m;
+fi
#+end_src
#+begin_note
- All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
+All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
#+end_note
$0
@@ -836,11 +836,11 @@ $0
# --
** Matlab Init :noexport:ignore:
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
- <<matlab-dir>>
+<<matlab-dir>>
#+end_src
#+begin_src matlab :exports none :results silent :noweb yes
- <<matlab-init>>
+<<matlab-init>>
#+end_src
$0
@@ -857,7 +857,7 @@ $0
#name :Matlab-Table
# --
#+begin_src matlab :exports results :results value table replace :tangle no :post addhdr(*this*)
- data2orgtable(${1:data}, {${2:'rowlabel'}}, {${3:'collabel'}}, ' %.1f ');
+data2orgtable(${1:data}, {${2:'rowlabel'}}, {${3:'collabel'}}, ' %.1f ');
#+end_src
$0
@@ -873,7 +873,7 @@ $0
#name :Matlab-Value
# --
#+begin_src matlab :results value replace :exports results :tangle no
- sprintf('x = %.2g', x);
+sprintf('x = %.2g', x);
#+end_src
$0
@@ -895,7 +895,7 @@ $0
:END:
#+begin_src bash :tangle ~/.local/bin/$1
- $0
+$0
#+end_src
@@ -905,7 +905,7 @@ $0
Created: 2021-01-08 ven. 01:40
+Created: 2021-01-11 lun. 14:50
diff --git a/docs/figs/mermaid.png b/docs/figs/mermaid.png
new file mode 100644
index 0000000..afa3df2
Binary files /dev/null and b/docs/figs/mermaid.png differ
diff --git a/docs/i3.html b/docs/i3.html
index 75918c7..5b4d367 100644
--- a/docs/i3.html
+++ b/docs/i3.html
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
+
-I3 Configuration
@@ -250,6 +250,7 @@ set $ws8 8
for_window [title="khal"] floating enable, resize set 600 600, move position center
for_window [title="ncmpcpp"] floating enable, resize set 800 400, move position center
for_window [title="nmtui"] floating enable, resize set 800 600, move position center
+for_window [title="linkding"] floating enable, resize set 800 600, move position center
@@ -291,7 +292,7 @@ exec --no-startup-id polybar top >>/tmp/polybar.log 2>&1 &
Created: 2021-01-08 ven. 01:43
+Created: 2021-02-10 mer. 17:57
diff --git a/docs/mail.html b/docs/mail.html
index 133be8d..508b6d1 100644
--- a/docs/mail.html
+++ b/docs/mail.html
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
+
-Mail Configuration
@@ -25,8 +25,8 @@
mbsync
- Synchronize Mailboxes
@@ -34,8 +34,8 @@
msmtp
- Send Mails
- Defaults
-- Gmail Account
-- ESRF Account
+- Gmail Account
+- ESRF Account
- ULG Account
- ULIEGE Account
- Default Account
@@ -48,11 +48,11 @@
- Unding all the key bindings
- Quit Neomutt
-- Generic
+- Generic
- Index and Pager
- Limit
- Search
-- Attachments
+- Attachments
- Compose
- Attach with Ranger Script
@@ -60,9 +60,8 @@
- Browser
-- Generic
-- Copy and move mails
-- Sidebar
+- Generic
+- Sidebar
- Reload Configuration
- urlview - Open URL in emails
- Searching using Mu
@@ -77,9 +76,9 @@
- Basic colors
- Index
-- Sidebar
+- Sidebar
- Message headers
-- Attachments
+- Attachments
- Body
- PGP
- Urls
@@ -93,26 +92,26 @@
@@ -128,13 +127,13 @@
- Headers
-Sidebar
+ Sidebar
-Attachments
+ Attachments
- Attachment View Options
- Open Attachment
@@ -187,9 +186,9 @@ Expunge Both
-
-Gmail Account
-
+
+Gmail Account
+
IMAPAccount gmail
Host imap.gmail.com
@@ -264,9 +263,9 @@ Sync Pull
-
-ESRF Account
-
+
+ESRF Account
+
IMAPAccount esrf
Host imaps.esrf.fr
@@ -481,9 +480,9 @@ tls_certcheck off
-
-Gmail Account
-
+
+Gmail Account
+
account gmail
host smtp.gmail.com
@@ -497,9 +496,9 @@ passwordeval "pass email/dehaeze.thomas@gmail.com"
-
-ESRF Account
-
+
+ESRF Account
+
account esrf
host smtps.esrf.fr
@@ -882,9 +881,9 @@ macro index q "<shell-escape>if [ $TMUX ]; then t
-
-Generic
-
+
+Generic
+
bind generic Q exit
@@ -956,12 +955,11 @@ macro index \Cr \
-bind index za collapse-thread
-bind index zA collapse-all # Missing :folddisable/foldenable
+bind index z collapse-thread
+bind index Z collapse-all
-
Write/Reply/Forward mail
@@ -1022,8 +1020,18 @@ Labels
bind index,pager Y modify-labels
+
+
+Copy and move mails
+
+
+macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
+macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
+
+
+
Limit
@@ -1049,9 +1057,9 @@ bind index,pager N search-opposite
-
-Attachments
-
+
+Attachments
+
bind attach l view-attach
@@ -1149,9 +1157,9 @@ bind browser q exit
-
-Generic
-
+
+Generic
+
Enter Command
@@ -1162,20 +1170,9 @@ Enter Command
-
-Copy and move mails
-
-
-macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
-macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
-
-
-
-
-
-
-Sidebar
-
+
+Sidebar
+
bind index,pager \Cp sidebar-prev
bind index,pager \Cn sidebar-next
@@ -1338,9 +1335,9 @@ color index brightcolor000 color001 "~v~(~D)"
-
-Sidebar
-
+
+Sidebar
+
color sidebar_indicator color000 color021 # Mailbox is open
color sidebar_highlight color000 color003 # Mailbox is highlighted
@@ -1363,9 +1360,9 @@ color header brightcolor004 color000 "^(Subject)"
-
-Attachments
-
+
+Attachments
+
# Color if the attachment is autoviewed
color attach_headers brightgreen default "Autoview"
@@ -1511,9 +1508,9 @@ macro index,pager gm "<change-folder>+gmail/Inbox
Gmail
-
-Configuration
-
+
+Configuration
+
set from = "dehaeze.thomas@gmail.com"
set sendmail = "~/.config/neomutt/bin/send_mail.sh gmail"
@@ -1537,9 +1534,9 @@ macro index,pager D \
-
-Signature
-
+
+Signature
+
Thomas Dehaeze
@@ -1559,9 +1556,9 @@ This empty code block is used to add a new line after signature
ESRF
-
-Configuration
-
+
+Configuration
+
set from = "thomas.dehaeze@esrf.fr"
set sendmail = "~/.config/neomutt/bin/send_mail.sh esrf"
@@ -1585,9 +1582,9 @@ macro index,pager D \
-
-Signature
-
+
+Signature
+
Thomas Dehaeze
@@ -1607,9 +1604,9 @@ This empty code block is used to add a new line after signature
ULG
-
-Configuration
-
+
+Configuration
+
set from = "thomas.dehaeze@doct.uliege.be"
set sendmail = "~/.config/neomutt/bin/send_mail.sh ulg"
@@ -1633,9 +1630,9 @@ macro index,pager D \
-
-Signature
-
+
+Signature
+
Thomas Dehaeze
@@ -1655,9 +1652,9 @@ This empty code block is used to add a new line after signature
ULIEGE
-
-Configuration
-
+
+Configuration
+
set from = "tdehaeze@uliege.be"
set sendmail = "~/.config/neomutt/bin/send_mail.sh uliege"
@@ -1681,9 +1678,9 @@ macro index,pager D \
-
-Signature
-
+
+Signature
+
Thomas Dehaeze
@@ -1825,9 +1822,9 @@ hdr_order from: to: cc: date: subject: #
-
-Sidebar
-
+
+Sidebar
+
General Config
@@ -1934,9 +1931,9 @@ named-mailboxes " Trash" =uliege/Trash
-
-Attachments
-
+
+Attachments
+
Attachment View Options
@@ -2150,7 +2147,7 @@ text/rtf; libreoffice --nologo --writer '%s'; co
Created: 2021-01-08 ven. 01:43
+Created: 2021-02-10 mer. 17:57
diff --git a/docs/nas.html b/docs/nas.html
index a71359b..6a22291 100644
--- a/docs/nas.html
+++ b/docs/nas.html
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
+
-Home Server
@@ -48,62 +48,68 @@
- Update System/Packages
- Docker Commands
- Add User and Password for Basic Authentication
-- Snapraid
+- Snapraid
- Restore Online backup with
restic
- Docker-Compose
- Networks
-- Traefik
-- Homer
+
traefik
- Application proxy
+homer
- Home page
-- Restic
+
restic
- Automatic online backups
-- Snapraid
+
snapraid
- Manage local backup with parity disk
-- Portainer
-- Wireguard
-- Gitea
-- Caddy - Research Pages
+
portainer
- Manage docker
+wireguard
- VPN
+gitea
- Git server
+caddy
- Research Pages
-- Caddy - Dotfiles
+
caddy
- Dotfiles
-- Hugo
-- Syncthing
-- Miniflux
-- Home Assistant
-- Jellyfin
-- Filebrowser
+
hugo
- Wiki + Blog
+syncthing
- File Synchronization
+miniflux
- RSS reader
+homeassistant
- Home Automation
+jellyfin
- Media server
+filebrowser
- Web file browser
-- Scrutiny
-- Guacamole
-- Transmission
-- Aria2 - Daemon
+
scrutiny
- Hard drive monitoring
+guacamole
- Remote connection
+transmission
- Torrent server
+aria2
- Download daemon
-- Deemix
+aria2-ui
- Download web UI
+deemix
- Music Download
+
+.arl
+
+
+linkding
- Bookmark manager
.env
- Variable used for Docker Compose
@@ -528,9 +534,9 @@ This will delete all unused images, volumes and networks.
-
-Snapraid
-
+
+Snapraid
+
To see all files “backed up” by snapraid, use:
@@ -651,9 +657,9 @@ You can use latest
instead of the ID.
-
-Traefik
-
+
+traefik
- Application proxy
+
services:
@@ -738,9 +744,9 @@ You can use latest
instead of the ID.
-
-Homer
-
+
+homer
- Home page
+
homer:
container_name: homer
@@ -795,6 +801,10 @@ You can use latest
instead of the ID.
logo: "/assets/tools/orgmode.png"
subtitle: "Research Pages"
url: "https://research.tdehaeze.xyz"
+ - name: "Dotfiles"
+ logo: "/assets/tools/dotfiles.png"
+ subtitle: "My Literate Dotfiles"
+ url: "https://dotfiles.tdehaeze.xyz"
- name: "Utilities"
icon: "fas fa-rss"
items:
@@ -844,10 +854,10 @@ You can use latest
instead of the ID.
subtitle: "Download Music"
logo: "/assets/tools/deezer.png"
url: "https://deemix.tdehaeze.xyz"
- # - name: "Aria2"
- # logo: "/assets/tools/aria2.png"
- # subtitle: "Direct Downloads"
- # url: "https://dl.tdehaeze.xyz"
+ - name: "Aria2"
+ logo: "/assets/tools/aria2.png"
+ subtitle: "Direct Downloads"
+ url: "http://dl.tdehaeze.xyz"
- name: "Media"
icon: "fas fa-film"
items:
@@ -903,9 +913,9 @@ You can use latest
instead of the ID.
-
-Restic
-
+
+restic
- Automatic online backups
+
restic:
container_name: restic
@@ -944,9 +954,9 @@ You can use latest
instead of the ID.
-
-Snapraid
-
+
+snapraid
- Manage local backup with parity disk
+
snapraid:
container_name: snapraid
@@ -1074,9 +1084,9 @@ exclude .AppleDB
-
-Portainer
-
+
+portainer
- Manage docker
+
portainer:
container_name: portainer
@@ -1106,9 +1116,9 @@ exclude .AppleDB
-
-Wireguard
-
+
+wireguard
- VPN
+
wireguard:
container_name: wireguard
@@ -1137,13 +1147,13 @@ exclude .AppleDB
-
-Gitea
-
+
+gitea
- Git server
+
gitea:
container_name: git
- image: gitea/gitea:1.12.4
+ image: gitea/gitea:1.13.2
depends_on:
- gitea_db
restart: unless-stopped
@@ -1190,9 +1200,9 @@ exclude .AppleDB
-
-Caddy - Research Pages
-
+
+caddy
- Research Pages
+
caddy:
container_name: caddy
@@ -1220,9 +1230,9 @@ exclude .AppleDB
-
-Caddyfile
-
+
+Caddyfile
+
0.0.0.0:2015 {
root /srv/www/
@@ -1241,9 +1251,9 @@ exclude .AppleDB
-
-Caddy - Dotfiles
-
+
+caddy
- Dotfiles
+
dotfiles:
container_name: dotfiles
@@ -1270,9 +1280,9 @@ exclude .AppleDB
-
-Caddyfile
-
+
+Caddyfile
+
0.0.0.0:2015 {
root /srv/www/docs/
@@ -1290,13 +1300,13 @@ exclude .AppleDB
-
-Hugo
-
+
+hugo
- Wiki + Blog
+
hugo:
container_name: hugo
- image: muninn/hugo-caddy
+ image: tdehaeze/hugo-caddy
restart: unless-stopped
networks:
- t2_proxy
@@ -1314,9 +1324,9 @@ exclude .AppleDB
-
-Syncthing
-
+
+syncthing
- File Synchronization
+
syncthing:
container_name: syncthing
@@ -1353,13 +1363,13 @@ exclude .AppleDB
-
-Miniflux
-
+
+miniflux
- RSS reader
+
miniflux:
container_name: miniflux
- image: miniflux/miniflux:latest
+ image: miniflux/miniflux
restart: unless-stopped
networks:
- t2_proxy
@@ -1398,9 +1408,9 @@ exclude .AppleDB
-
-Home Assistant
-
+
+homeassistant
- Home Automation
+
homeassistant:
container_name: homeassistant
@@ -1440,9 +1450,9 @@ exclude .AppleDB
-
-Jellyfin
-
+
+jellyfin
- Media server
+
jellyfin:
container_name: jellyfin
@@ -1473,9 +1483,9 @@ exclude .AppleDB
-
-Filebrowser
-
+
+filebrowser
- Web file browser
+
filebrowser:
container_name: filebrowser
@@ -1521,9 +1531,9 @@ exclude .AppleDB
-
-Scrutiny
-
+
+scrutiny
- Hard drive monitoring
+
scrutiny:
container_name: scrutiny
@@ -1557,9 +1567,9 @@ exclude .AppleDB
-
-Guacamole
-
+
+guacamole
- Remote connection
+
guacamole:
image: oznu/guacamole
@@ -1586,13 +1596,13 @@ exclude .AppleDB
-
-Transmission
-
+
+transmission
- Torrent server
+
transmission-openvpn:
container_name: transmission
- image: haugene/transmission-openvpn:2.13
+ image: haugene/transmission-openvpn
restart: unless-stopped
networks:
- t2_proxy
@@ -1633,9 +1643,9 @@ exclude .AppleDB
-
-Aria2 - Daemon
-
+
+aria2
- Download daemon
+
aria2:
container_name: aria2
@@ -1687,18 +1697,45 @@ exclude .AppleDB
-
-Deemix
-
+
+aria2-ui
- Download web UI
+
+
+ aria2-ui:
+ container_name: aria2-ui
+ image: p3terx/ariang
+ restart: unless-stopped
+ networks:
+ - t2_proxy
+ environment:
+ - PUID=$PUID
+ - PGID=$PGID
+ ports:
+ - 6880:6880
+ labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.aria2-rtr.entrypoints=http"
+ - "traefik.http.routers.aria2-rtr.rule=Host(`dl.$DOMAINNAME`)"
+ - "traefik.http.routers.aria2-rtr.tls=false"
+ - "traefik.http.routers.aria2-rtr.service=aria2-svc"
+ - "traefik.http.services.aria2-svc.loadbalancer.server.port=6880"
+
+
+
+
+
+
+deemix
- Music Download
+
deemix:
- image: registry.gitlab.com/bockiii/deemix-docker
container_name: deemix
+ image: registry.gitlab.com/bockiii/deemix-docker
restart: unless-stopped
networks:
- t2_proxy
volumes:
- - /srv/storage/Downloads:/downloads
+ - /srv/storage/Music:/downloads
- $CONFIGDIR/deemix:/config
environment:
- TZ=$TZ
@@ -1711,11 +1748,49 @@ exclude .AppleDB
- "traefik.http.routers.deemix-rtr.rule=Host(`deemix.$DOMAINNAME`)"
- "traefik.http.routers.deemix-rtr.tls=true"
- "traefik.http.routers.deemix-rtr.service=deemix-svc"
- - "traefik.http.routers.deemix-rtr.middlewares=traefik-auth"
+ # - "traefik.http.routers.deemix-rtr.middlewares=traefik-auth"
- "traefik.http.services.deemix-svc.loadbalancer.server.port=6595"
+
+
+.arl
+
+
+<<get-password(passname="nas/deemix_arl")>>
+
+
+
+
+
+
+
+linkding
- Bookmark manager
+
+
+ linkding:
+ container_name: linkding
+ image: sissbruecker/linkding:latest
+ restart: unless-stopped
+ networks:
+ - t2_proxy
+ volumes:
+ - $CONFIGDIR/linkding:/etc/linkding/data
+ environment:
+ - TZ=$TZ
+ - PUID=$PUID
+ - PGID=$PGID
+ labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.linkding-rtr.entrypoints=https"
+ - "traefik.http.routers.linkding-rtr.rule=Host(`bm.$DOMAINNAME`)"
+ - "traefik.http.routers.linkding-rtr.tls=true"
+ - "traefik.http.routers.linkding-rtr.service=linkding-svc"
+ - "traefik.http.services.linkding-svc.loadbalancer.server.port=9090"
+
+
+
@@ -1808,7 +1883,7 @@ Type crontab -e
and add this line:
Created: 2021-01-11 lun. 14:50
+Created: 2021-02-10 mer. 17:57
diff --git a/docs/qutebrowser.html b/docs/qutebrowser.html
index ae165bd..e26a69b 100644
--- a/docs/qutebrowser.html
+++ b/docs/qutebrowser.html
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
+
-Qutebrowser Configuration
@@ -23,10 +23,12 @@
- Import
+- Auto Config
- General config
- Content
- Editor
- Downloads
+- File Select
- Colors
- Fonts
- Input
@@ -70,6 +72,19 @@
+
+Auto Config
+
+
+Do not load config set with :set
command in qutebrowser.
+
+
+config.load_autoconfig(True)
+
+
+
+
+
General config
@@ -94,6 +109,7 @@
c.content.javascript.can_access_clipboard = True
c.content.pdfjs = False
c.content.proxy = 'system'
+c.content.blocking.method = 'both'
@@ -124,6 +140,18 @@
+
+File Select
+
+
+c.fileselect.handler = "default"
+# c.fileselect.single_file.command = ['termine', '-e', 'ranger', '--choosefile', '{}']
+# c.fileselect.multiple_files.command = ['termite', '-e', 'ranger', '--choosefiles', '{}']
+
+
+
+
+
Colors
@@ -508,7 +536,7 @@ Annotate with Hypothesis
See Amazon price history using CamelCamelCamel
-config.bind(',A', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
+config.bind(',A', "open -t https://fr.camelcamelcamel.com/search?sq={url}")
@@ -519,6 +547,11 @@ Org Roam Entry for the current page
config.bind(',R', "open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))")
+
+
+config.bind(',Z', "open -w https://bm.tdehaeze.xyz/bookmarks/new?url={url}&auto_close")
+
+
@@ -877,7 +910,7 @@ buku --add "
Created: 2021-01-08 ven. 01:40
+Created: 2021-02-10 mer. 17:57
diff --git a/docs/ranger.html b/docs/ranger.html
index 7437a1f..83c48d6 100644
--- a/docs/ranger.html
+++ b/docs/ranger.html
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
+
-Ranger
@@ -38,7 +38,7 @@
- Define keys for the browser
-- Basic
+- Basic
- Open Shell in current directory
- Open With
- Filter
@@ -62,7 +62,7 @@
- Define keys for the console
@@ -312,8 +312,7 @@ Delete first page of pdf
Convert images/pdf/…
-
map ,cp shell pdf2png %f
-map ,cc shell convert-file %f
+map ,c shell convert-file %f
@@ -452,9 +451,9 @@ Backup to NAS
Define keys for the browser
-
-Basic
-
+
+Basic
+
map Q quit!
map q eval fm.execute_console("shell tmux detach") if 'TMUX' in os.environ.keys() else fm.execute_console("quit")
@@ -767,9 +766,9 @@ map '<any> enter_bookmark %any
Define keys for the console
-
-Basic
-
+
+Basic
+
cmap <tab> eval fm.ui.console.tab()
cmap <s-tab> eval fm.ui.console.tab(-1)
@@ -956,10 +955,9 @@ ext 1
ext docx?, has wps, X, flag f = wps "$@"
+ext docx?, has onlyoffice, X, flag f = onlyoffice "$@"
-ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
-
- ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has wpp, X, flag f = wpp "$@"
+ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has wpp, X, flag f = wpp "$@"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@"
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@"
@@ -1085,7 +1083,7 @@ label wallpaper, number 14, mi
Created: 2021-01-08 ven. 01:33
+Created: 2021-02-10 mer. 17:57
diff --git a/docs/zathura.html b/docs/zathura.html
index d57e512..6f7b77a 100644
--- a/docs/zathura.html
+++ b/docs/zathura.html
@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-
+
-Zathura
@@ -155,7 +155,7 @@ pdftk $1
Created: 2021-01-08 ven. 01:43
+Created: 2021-02-10 mer. 17:57
-
diff --git a/emacs-snippets.org b/emacs-snippets.org
index 3def7d2..9510510 100644
--- a/emacs-snippets.org
+++ b/emacs-snippets.org
@@ -92,7 +92,7 @@ $0
#name :LaTeX Environment
# --
\begin{${1:equation}}
- $0
+$0
\end{$1}
#+end_src
@@ -342,9 +342,9 @@ $0
#name :Tikz figure
# --
,#+begin_src latex :file ${1:figure_name}.pdf :post pdf2svg(file=*this*, ext="png") :exports both
- \begin{tikzpicture}
- $0
- \end{tikzpicture}
+\begin{tikzpicture}
+ $0
+\end{tikzpicture}
,#+end_src
#+end_src
@@ -359,9 +359,9 @@ $0
#+HEADER: :results raw replace :buffer no :eval no-export :exports both :mkdirp yes
#+HEADER: :output-dir ${2:figs}
,#+begin_src latex :file $1.pdf :post pdf2svg(file=*this*, ext="png") :exports both
- \begin{tikzpicture}
- $0
- \end{tikzpicture}
+\begin{tikzpicture}
+ $0
+\end{tikzpicture}
,#+end_src
#+NAME: fig:$1
@@ -376,9 +376,9 @@ $0
# --
,* ${1:Title/Description of the figure}
,#+begin_src latex :file ${2:figure_name}.pdf :tangle figs/$2.tex :exports ${3:both}
- \begin{tikzpicture}
- $0
- \end{tikzpicture}
+\begin{tikzpicture}
+ $0
+\end{tikzpicture}
,#+end_src
#+name: fig:$2
@@ -496,18 +496,18 @@ $0
This Matlab function is accessible [[file:src/$2.m][here]].
,#+begin_src matlab
- function [${4:in_data}] = $2(${3:in_data})
- % $2 - $0
- %
- % Syntax: [$4] = $2($3)
- %
- % Inputs:
- % - $3 -
- %
- % Outputs:
- % - $4 -
+function [${4:in_data}] = $2(${3:in_data})
+% $2 - $0
+%
+% Syntax: [$4] = $2($3)
+%
+% Inputs:
+% - $3 -
+%
+% Outputs:
+% - $4 -
- end
+end
,#+end_src
#+end_src
@@ -525,17 +525,17 @@ This Matlab function is accessible [[file:src/$2.m][here]].
,** ZIP file containing the data and matlab files :ignore:
,#+begin_src bash :exports none :results none
- if [ matlab/$2.m -nt data/$2.zip ]; then
- cp matlab/$2.m $2.m;
- zip data/$2 \
- mat/data.mat \
- $2.m
- rm $2.m;
- fi
+if [ matlab/$2.m -nt data/$2.zip ]; then
+ cp matlab/$2.m $2.m;
+ zip data/$2 \
+ mat/data.mat \
+ $2.m
+ rm $2.m;
+fi
,#+end_src
,#+begin_note
- All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
+All the files (data and Matlab scripts) are accessible [[file:data/$2.zip][here]].
,#+end_note
$0
@@ -548,11 +548,11 @@ $0
# --
,** Matlab Init :noexport:ignore:
,#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
- <>
+<>
,#+end_src
,#+begin_src matlab :exports none :results silent :noweb yes
- <>
+<>
,#+end_src
$0
@@ -564,7 +564,7 @@ $0
#name :Matlab-Table
# --
,#+begin_src matlab :exports results :results value table replace :tangle no :post addhdr(*this*)
- data2orgtable(${1:data}, {${2:'rowlabel'}}, {${3:'collabel'}}, ' %.1f ');
+data2orgtable(${1:data}, {${2:'rowlabel'}}, {${3:'collabel'}}, ' %.1f ');
,#+end_src
$0
#+end_src
@@ -575,7 +575,7 @@ $0
#name :Matlab-Value
# --
,#+begin_src matlab :results value replace :exports results :tangle no
- sprintf('x = %.2g', x);
+sprintf('x = %.2g', x);
,#+end_src
$0
#+end_src
@@ -591,6 +591,6 @@ $0
:END:
,#+begin_src bash :tangle ~/.local/bin/$1
- $0
+$0
,#+end_src
#+end_src
diff --git a/figs b/figs
new file mode 120000
index 0000000..0c7cba9
--- /dev/null
+++ b/figs
@@ -0,0 +1 @@
+docs/figs
\ No newline at end of file
diff --git a/i3.org b/i3.org
index 6b914c1..d27b529 100644
--- a/i3.org
+++ b/i3.org
@@ -134,6 +134,7 @@ for_window [class="Sxiv"] floating enable, resize set 800 600, move position cen
for_window [title="khal"] floating enable, resize set 600 600, move position center
for_window [title="ncmpcpp"] floating enable, resize set 800 400, move position center
for_window [title="nmtui"] floating enable, resize set 800 600, move position center
+for_window [title="linkding"] floating enable, resize set 800 600, move position center
#+end_src
* Scratchpad