From 9d57aa805d5d9fbb2afd2d1146721358be9b9a2f Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Sat, 11 Jan 2020 22:24:51 +0100 Subject: [PATCH] Update CSS and JS path --- dotfiles/applications.org | 20 ++++++------ dotfiles/bash.org | 12 +++---- dotfiles/binaries.org | 12 +++---- dotfiles/bookmarks.org | 12 +++---- dotfiles/bspwm.org | 15 +++++---- dotfiles/calendar.org | 12 +++---- dotfiles/compositor.org | 12 +++---- dotfiles/config.org | 12 +++---- dotfiles/contacts.org | 12 +++---- dotfiles/doom/.gitignore | 1 + dotfiles/doom/config.org | 17 ++++++++-- dotfiles/git.org | 12 +++---- dotfiles/gtk.org | 12 +++---- dotfiles/i3.org | 20 ++++++------ dotfiles/image.org | 12 +++---- dotfiles/index.org | 12 +++---- dotfiles/mail.org | 66 ++++++++++++++++++++------------------ dotfiles/music.org | 12 +++---- dotfiles/newsboat.org | 12 +++---- dotfiles/notifications.org | 12 +++---- dotfiles/pcmanfm.org | 12 +++---- dotfiles/polybar.org | 12 +++---- dotfiles/qutebrowser.org | 17 +++++----- dotfiles/ranger.org | 15 +++++---- dotfiles/rofi.org | 12 +++---- dotfiles/scripts.org | 33 +++++++++++-------- dotfiles/spacemacs.org | 38 ++++++++++++++++------ dotfiles/sxhkd.org | 12 +++---- dotfiles/systemd.org | 22 +++++++------ dotfiles/termite.org | 12 +++---- dotfiles/tmux.org | 12 +++---- dotfiles/video.org | 12 +++---- dotfiles/vim.org | 12 +++---- dotfiles/xconfig.org | 21 +++++++----- dotfiles/zathura.org | 12 +++---- dotfiles/zsh.org | 12 +++---- 36 files changed, 314 insertions(+), 259 deletions(-) diff --git a/dotfiles/applications.org b/dotfiles/applications.org index ef15346..8a30545 100644 --- a/dotfiles/applications.org +++ b/dotfiles/applications.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Mime Applications @@ -115,16 +115,16 @@ :END: #+begin_src conf [Desktop Entry] - Version=1.0 + Version=R2019b Type=Application Terminal=false - Exec=/home/thomas/bin/matlab -desktop + MimeType=text/x-matlab + Exec=/usr/local/MATLAB/R2019b/bin/matlab -desktop Name=MATLAB - Icon=/usr/share/icons/Papirus/48x48/apps/matlab.svg + Icon=matlab Categories=Development;Math;Science Comment=Scientific computing environment StartupNotify=true - StartupWMClass=com-mathworks-util-PostVMInit #+end_src * Neovim diff --git a/dotfiles/bash.org b/dotfiles/bash.org index 363ab2c..f96b71e 100644 --- a/dotfiles/bash.org +++ b/dotfiles/bash.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Bashrc diff --git a/dotfiles/binaries.org b/dotfiles/binaries.org index a996b82..5b3e6ec 100644 --- a/dotfiles/binaries.org +++ b/dotfiles/binaries.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Select Screen diff --git a/dotfiles/bookmarks.org b/dotfiles/bookmarks.org index 4341451..6261f3c 100644 --- a/dotfiles/bookmarks.org +++ b/dotfiles/bookmarks.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args: :tangle ~/.config/buku_run/config #+PROPERTY: header-args+: :comments both :mkdirp yes diff --git a/dotfiles/bspwm.org b/dotfiles/bspwm.org index e763bb2..4982eff 100644 --- a/dotfiles/bspwm.org +++ b/dotfiles/bspwm.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args:bash :comments both #+PROPERTY: header-args:bash+ :mkdirp yes @@ -56,7 +56,10 @@ Use =xprop= to obtain information about the window. bspc rule --add qutebrowser desktop='web' follow=on state=tiled bspc rule --add Emacs desktop='code' follow=on state=tiled + bspc rule --add Zathura state=tiled + bspc rule --add Pavucontrol state=floating + bspc rule --add Blueman-manager state=floating #+end_src * Run Polybar and SXHKD diff --git a/dotfiles/calendar.org b/dotfiles/calendar.org index a8e250e..94542b0 100644 --- a/dotfiles/calendar.org +++ b/dotfiles/calendar.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Vdirsyncer diff --git a/dotfiles/compositor.org b/dotfiles/compositor.org index 7b80402..12e1c77 100644 --- a/dotfiles/compositor.org +++ b/dotfiles/compositor.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args: :tangle ~/.config/picom/picom.conf #+PROPERTY: header-args+: :comments both :mkdirp yes diff --git a/dotfiles/config.org b/dotfiles/config.org index e3192e6b..2a5bddc 100644 --- a/dotfiles/config.org +++ b/dotfiles/config.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Font diff --git a/dotfiles/contacts.org b/dotfiles/contacts.org index 6065ee9..07ffbf8 100644 --- a/dotfiles/contacts.org +++ b/dotfiles/contacts.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Khard diff --git a/dotfiles/doom/.gitignore b/dotfiles/doom/.gitignore index b5f34f8..2b57c07 100644 --- a/dotfiles/doom/.gitignore +++ b/dotfiles/doom/.gitignore @@ -1 +1,2 @@ snippets/ +config.el diff --git a/dotfiles/doom/config.org b/dotfiles/doom/config.org index 6b6c3f9..1725dae 100644 --- a/dotfiles/doom/config.org +++ b/dotfiles/doom/config.org @@ -1,8 +1,21 @@ #+TITLE: Doom Emacs Configuration :DRAWER: -#+AUTHOR: Dehaeze Thomas -#+EMAIL: dehaeze.thomas@gmail.com +#+STARTUP: overview + #+LANGUAGE: en +#+EMAIL: dehaeze.thomas@gmail.com +#+AUTHOR: Dehaeze Thomas + +#+HTML_LINK_HOME: ./index.html +#+HTML_LINK_UP: ./index.html + +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: + #+PROPERTY: header-args :tangle yes :results none :padline no :END: diff --git a/dotfiles/git.org b/dotfiles/git.org index 8f712ad..5a13562 100644 --- a/dotfiles/git.org +++ b/dotfiles/git.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Gitconfig diff --git a/dotfiles/gtk.org b/dotfiles/gtk.org index 7985ac2..3641016 100644 --- a/dotfiles/gtk.org +++ b/dotfiles/gtk.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * GTK-2.0 diff --git a/dotfiles/i3.org b/dotfiles/i3.org index cfdca7d..e7962b1 100644 --- a/dotfiles/i3.org +++ b/dotfiles/i3.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args:conf :comments none #+PROPERTY: header-args:conf+ :mkdirp yes @@ -111,7 +111,7 @@ Colors are gathered based on the documentation https://i3wm.org/docs/userguide.h # set_from_resource $term_color15 color15 #+end_src -** TODO Theme colors +** Theme colors #+begin_src conf # class border backgr. text indic. child_border client.focused $blue $blue $fg $blue @@ -180,7 +180,7 @@ Colors are gathered based on the documentation https://i3wm.org/docs/userguide.h } #+end_src -** TODO Workspace names +** Workspace names To display names or symbols instead of plain workspace numbers you can use something like: =set $ws1 1:mail= and =set $ws2 2:=. #+begin_src conf @@ -194,7 +194,7 @@ To display names or symbols instead of plain workspace numbers you can use somet set $ws8 8 #+end_src -** TODO Use Mouse+$mod to drag floating windows +** Use Mouse+$mod to drag floating windows #+begin_src conf floating_modifier $mod #+end_src @@ -236,7 +236,7 @@ To display names or symbols instead of plain workspace numbers you can use somet for_window [title="Simulink Library Browser"] floating enable #+end_src -* TODO Scratchpad +** Scratchpad #+begin_src conf # move the currently focused window to the scratchpad bindsym $mod+Shift+BackSpace move scratchpad diff --git a/dotfiles/image.org b/dotfiles/image.org index b262088..5d3e0cc 100644 --- a/dotfiles/image.org +++ b/dotfiles/image.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args: :tangle ~/.config/sxiv/exec/key-handler #+PROPERTY: header-args+: :comments both :mkdirp yes diff --git a/dotfiles/index.org b/dotfiles/index.org index 34e1025..e155e0e 100644 --- a/dotfiles/index.org +++ b/dotfiles/index.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Ressources diff --git a/dotfiles/mail.org b/dotfiles/mail.org index e82b892..492ee4d 100644 --- a/dotfiles/mail.org +++ b/dotfiles/mail.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Synchronize Mailboxes - Mbsync @@ -706,17 +706,17 @@ Attach multiple files using ranger #+end_src **** Attach with Ranger Script - :PROPERTIES: - :header-args: :tangle ~/.config/neomutt/bin/rangerpick - :header-args+: :comments both :mkdirp yes - :header-args+: :shebang "#!/usr/bin/env bash" - :END: +:PROPERTIES: +:header-args: :tangle ~/.config/neomutt/bin/rangerpick +:header-args+: :comments both :mkdirp yes +:header-args+: :shebang "#!/usr/bin/env bash" +:END: #+begin_src bash tmpfile=/tmp/rangerpick if [ -z "$1" ]; then - ranger --choosefiles $tmpfile && sed -i 's/^//' $tmpfile && sed -i 's/$//' $tmpfile && sed -i ':a;N;$!ba;s/\n//g' $tmpfile && sed -i 's/^/push /' $tmpfile + ranger --choosefiles $tmpfile && sed -i 's/\s/\\ /g' $tmpfile && echo "$(awk 'BEGIN {printf "%s", "push "} {printf "%s", ""$0""}' $tmpfile)" > $tmpfile elif [ $1 == "clean" ]; then - rm $tmpfile + ls $tmpfile fi #+end_src @@ -1273,6 +1273,7 @@ This empty code block is used to add a new line after signatude #+BEGIN_SRC conf set attach_format = "[%D %t] %2n [%-7.7m/%10.10M] %.40d %> [%s] " #+END_SRC + *** Open Attachment Program to open is defined in the =mailcap= file. @@ -1286,13 +1287,15 @@ First, tag the files you want to send using =t=, then =;= to apply the action on set abort_noattach = ask-yes set abort_noattach_regex = "\\<(attach(|ed|ments?)|(attaché|attachés|attache|attachons|joint|jointe|joints|jointes|joins|joignons))\\>" #+end_src + ** Scripts and other config files *** Sync Mail script - :PROPERTIES: - :header-args: :tangle ~/.config/neomutt/bin/get_new_mail.sh - :header-args+: :comments both :mkdirp yes - :header-args+: :shebang "#!/usr/bin/env bash" - :END: +:PROPERTIES: +:header-args: :tangle ~/.config/neomutt/bin/get_new_mail.sh +:header-args+: :comments both :mkdirp yes +:header-args+: :shebang "#!/usr/bin/env bash" +:END: + #+begin_src bash if [ $TMUX ]; then tmux split -v -l 1 ~/scripts/checkmail.sh $1 && tmux select-pane -U @@ -1302,11 +1305,12 @@ First, tag the files you want to send using =t=, then =;= to apply the action on #+end_src *** Openfile Scripts - :PROPERTIES: - :header-args: :tangle ~/.config/neomutt/bin/openfile.sh - :header-args+: :comments both :mkdirp yes - :header-args+: :shebang "#!/usr/bin/env bash" - :END: +:PROPERTIES: +:header-args: :tangle ~/.config/neomutt/bin/openfile.sh +:header-args+: :comments both :mkdirp yes +:header-args+: :shebang "#!/usr/bin/env bash" +:END: + #+begin_src bash base=$(basename "$1") ext="${base##*.}" @@ -1321,10 +1325,10 @@ First, tag the files you want to send using =t=, then =;= to apply the action on #+end_src *** urlview Config - :PROPERTIES: - :header-args:conf+: :tangle ~/.urlview - :header-args:conf+: :comments both :mkdirp yes - :END: +:PROPERTIES: +:header-args:conf+: :tangle ~/.urlview +:header-args:conf+: :comments both :mkdirp yes +:END: #+BEGIN_SRC conf REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):] @@ -1333,10 +1337,10 @@ First, tag the files you want to send using =t=, then =;= to apply the action on #+END_SRC *** Mailcap - :PROPERTIES: - :header-args:conf: :tangle ~/.config/neomutt/mailcap - :header-args:conf+: :comments both :mkdirp yes - :END: +:PROPERTIES: +:header-args:conf: :tangle ~/.config/neomutt/mailcap +:header-args:conf+: :comments both :mkdirp yes +:END: Generic #+BEGIN_SRC conf diff --git a/dotfiles/music.org b/dotfiles/music.org index 996d21d..e89e180 100644 --- a/dotfiles/music.org +++ b/dotfiles/music.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Pavu Control diff --git a/dotfiles/newsboat.org b/dotfiles/newsboat.org index b491533..5c09795 100644 --- a/dotfiles/newsboat.org +++ b/dotfiles/newsboat.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: https://wiki.archlinux.org/index.php/Newsboat diff --git a/dotfiles/notifications.org b/dotfiles/notifications.org index 8f48f4e..2ad213f 100644 --- a/dotfiles/notifications.org +++ b/dotfiles/notifications.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args :comments both :mkdirp yes #+PROPERTY: header-args+ :tangle ~/.config/dunst/dunstrc diff --git a/dotfiles/pcmanfm.org b/dotfiles/pcmanfm.org index 07fe0fa..cc9a105 100644 --- a/dotfiles/pcmanfm.org +++ b/dotfiles/pcmanfm.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args:bash :comments both #+PROPERTY: header-args:bash+ :mkdirp yes diff --git a/dotfiles/polybar.org b/dotfiles/polybar.org index 8f0e0fa..c6beaad 100644 --- a/dotfiles/polybar.org +++ b/dotfiles/polybar.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args :comments no #+PROPERTY: header-args+ :mkdirp yes diff --git a/dotfiles/qutebrowser.org b/dotfiles/qutebrowser.org index 42a03eb..731957d 100644 --- a/dotfiles/qutebrowser.org +++ b/dotfiles/qutebrowser.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args+ :comments none #+PROPERTY: header-args+ :mkdirp yes @@ -562,12 +562,11 @@ c.url.searchengines = { 'yt': 'https://www.youtube.com/results?search_query={}', 'gh': 'https://github.com/search?q={}', 're': 'https://www.reddit.com/search?q={}', - 'lb': 'http://gen.lib.rus.ec/search.php?req={}', - 'la': 'http://gen.lib.rus.ec/scimag/index.php?s={}', + 'lb': 'http://188.240.208.184/search.php?req={}', + 'la': 'http://188.240.208.184/scimag/index.php?s={}', 'sm': 'https://www.openstreetmap.org/search?query={}', 'am': 'https://www.amazon.fr/s?k={}', 'md': 'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch=', - } # Page(s) to open at the start. diff --git a/dotfiles/ranger.org b/dotfiles/ranger.org index 6aa5856..bcb7c63 100644 --- a/dotfiles/ranger.org +++ b/dotfiles/ranger.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Config @@ -357,9 +357,11 @@ map ,z shell apack %f.zip %f map cd console cd%space map gh cd ~ + map ga cd ~/Cloud/administratif map gm cd ~/Cloud/thesis map gp cd ~/Pictures map gd cd ~/Downloads + map gc cd ~/.config/literate-dotfiles #+END_SRC *** TODO [#B] Open With @@ -481,7 +483,6 @@ map = chmod map gt tab_move 1 map gT tab_move -1 map gn tab_new ~ - map gc tab_close map uq tab_restore map tab_open 1 map tab_open 2 diff --git a/dotfiles/rofi.org b/dotfiles/rofi.org index e4ad21a..67fd0cd 100644 --- a/dotfiles/rofi.org +++ b/dotfiles/rofi.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Rofi diff --git a/dotfiles/scripts.org b/dotfiles/scripts.org index e380950..246cac3 100644 --- a/dotfiles/scripts.org +++ b/dotfiles/scripts.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Wallpapers @@ -101,18 +101,23 @@ Finally, lock the screen using =i3lock=. #+end_src * Delete first page of PDF - :PROPERTIES: - :header-args: :tangle ~/scripts/pdf-delete-first-page.sh - :header-args+: :comments both :mkdirp yes - :header-args+: :shebang "#!/usr/bin/env bash" - :END: -The requirement is to have =pdftk= installed. +:PROPERTIES: +:header-args: :tangle ~/scripts/pdf-delete-first-page.sh +:header-args+: :comments both :mkdirp yes +:header-args+: :shebang "#!/usr/bin/env bash" +:END: +The requirement is to have =pdftk= or =stapler= installed. #+begin_src bash if [[ -f $1 && $1 == *.pdf ]]; then # Argument if a file - # pdftk "$1" cat 2-end output /tmp/pdftk_out.pdf && mv /tmp/pdftk_out.pdf "$1" - stapler del "$1" 1 /tmp/pdftk_out.pdf && mv /tmp/pdftk_out.pdf "$1" + if type stapler > /dev/null; then + stapler del "$1" 1 /tmp/pdftk_out.pdf && mv /tmp/pdftk_out.pdf "$1" + elif type pdftk > /dev/null; then + pdftk "$1" cat 2-end output /tmp/pdftk_out.pdf && mv /tmp/pdftk_out.pdf "$1" + else + echo "Neither pdftk nor stapler are installed" + fi fi #+end_src diff --git a/dotfiles/spacemacs.org b/dotfiles/spacemacs.org index ae04695..93f9abd 100644 --- a/dotfiles/spacemacs.org +++ b/dotfiles/spacemacs.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args:emacs-lisp :comments link :results silent :END: @@ -31,9 +31,12 @@ Ressources: (add-to-list 'package-archives '("melpa" . "http://www.mirrorservice.org/sites/melpa.org/packages/")) #+end_src -** Ispell +** TODO Ispell +https://emacs.stackexchange.com/questions/17237/in-emacs-where-is-ispells-personal-dictionary-stored + #+begin_src emacs-lisp (setq ispell-program-name "/usr/bin/aspell") + ;; (setq ispell-personal-dictionary "/home/thomas/.config/aspell/") #+end_src ** Org latex fragment @@ -864,7 +867,6 @@ https://emacs.stackexchange.com/questions/30575/adding-latex-newpage-before-a-he ) #+end_src - ***** TODO MP4 movies #+begin_src emacs-lisp :tangle no (with-eval-after-load 'org @@ -1096,7 +1098,7 @@ https://orgmode.org/manual/CDLaTeX-mode.html#CDLaTeX-mode )) ;; Use imagemagick/dvisvgm to generate png from pdf - (setq org-preview-latex-default-process 'imagemagick) + (setq org-preview-latex-default-process 'dvisvgm) )) #+end_src @@ -1707,6 +1709,24 @@ https://www.reddit.com/r/emacs/comments/d3a8or/pretty_org_tables_in_the_buffer_c (evil-define-key 'normal matlab-mode-map (kbd ", d q") 'gud-finish) #+end_src +*** Wrong highlight of comments +#+begin_src emacs-lisp :tangle no + (add-hook 'matlab-mode-hook + ;; `highlight-numbers-mode' breaks MATLAB comment coloring -- + ;; `highlight-numbers-mode' is mostly redundant with + ;; `rainbow-identifiers-mode' anyway + (lambda () + (highlight-numbers-mode -1)) + ;; We must append the above *after* `spacemacs/run-prog-mode-hooks' + ;; in `matlab-mode-hook', since the former hook enables + ;; `highlight-numbers-mode'. Note that + ;; `spacemacs/run-prog-mode-hooks' is manually added to + ;; `matlab-mode-hook' by Spacemacs since the upstream `matlab-mode' + ;; package does not derive `matlab-mode' from `prog-mode' (oddly -- + ;; IIRC the author refused to do so for compatibility with XEmacs). + 'append) +#+end_src + ** TODO [#B] Mails With Mu4e :PROPERTIES: :header-args:emacs-lisp+: :tangle no diff --git a/dotfiles/sxhkd.org b/dotfiles/sxhkd.org index 1db25e5..4fb0d85 100644 --- a/dotfiles/sxhkd.org +++ b/dotfiles/sxhkd.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args :comments no #+PROPERTY: header-args+ :mkdirp yes diff --git a/dotfiles/systemd.org b/dotfiles/systemd.org index ea6f84e..6bca12b 100644 --- a/dotfiles/systemd.org +++ b/dotfiles/systemd.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units @@ -472,12 +472,16 @@ WantedBy=default.target #+begin_src conf [Unit] -Description=mopidy +Description=Mopidy music server +After=avahi-daemon.service +After=dbus.service After=network.target +After=nss-lookup.target +After=pulseaudio.service +After=remote-fs.target +After=sound.target [Service] -Type=simple -# User=mopidy # this should be removed ExecStart=/usr/bin/mopidy [Install] diff --git a/dotfiles/termite.org b/dotfiles/termite.org index e8a3b83..cfece13 100644 --- a/dotfiles/termite.org +++ b/dotfiles/termite.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args+ :comments both #+PROPERTY: header-args+ :mkdirp yes diff --git a/dotfiles/tmux.org b/dotfiles/tmux.org index e658cd8..ffbeda9 100644 --- a/dotfiles/tmux.org +++ b/dotfiles/tmux.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args :tangle ~/.tmux.conf #+PROPERTY: header-args+ :comments both :mkdirp yes diff --git a/dotfiles/video.org b/dotfiles/video.org index e370c22..63ed1c7 100644 --- a/dotfiles/video.org +++ b/dotfiles/video.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * MPV Configuration diff --git a/dotfiles/vim.org b/dotfiles/vim.org index 4a73a36..42db50f 100644 --- a/dotfiles/vim.org +++ b/dotfiles/vim.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args+ :comments none #+PROPERTY: header-args+ :mkdirp yes diff --git a/dotfiles/xconfig.org b/dotfiles/xconfig.org index d7cc2d2..a770efb 100644 --- a/dotfiles/xconfig.org +++ b/dotfiles/xconfig.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: :END: * Xresources @@ -161,7 +161,6 @@ URxvt.keysym.C-S-v: perl:clipboard:paste #+end_src - * Xmodmap :PROPERTIES: :header-args: :tangle ~/.Xmodmap @@ -436,6 +435,11 @@ Start =gnome-keyring-daemon= in order not to be asked for password to unlock GPG # export SSH_AUTH_SOCK #+end_src +Fix for Matlab. +#+begin_src bash + export _JAVA_AWT_WM_NONREPARENTING=1 +#+end_src + Merge in defaults and keymaps #+BEGIN_SRC bash userresources=$HOME/.Xresources @@ -514,13 +518,14 @@ Start the applications related to the top bar (polybar + applet). blueman-applet & # Synology Cloud Station Drive - # synology-drive & + synology-drive & # Udiskie to automount usb keys pgrep -xu "$USER" udiskie >/dev/null || \ udiskie --automount --notify --tray --use-udisks2 & #+end_src +Finally, run SXHKD for the key bindings. #+begin_src bash # Start sxhkd pgrep -xu "$USER" sxhkd >/dev/null || \ diff --git a/dotfiles/zathura.org b/dotfiles/zathura.org index 4d43db2..f523fae 100644 --- a/dotfiles/zathura.org +++ b/dotfiles/zathura.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args :comments no #+PROPERTY: header-args+ :mkdirp yes diff --git a/dotfiles/zsh.org b/dotfiles/zsh.org index 0b37a51..6121243 100644 --- a/dotfiles/zsh.org +++ b/dotfiles/zsh.org @@ -9,12 +9,12 @@ #+HTML_LINK_HOME: ./index.html #+HTML_LINK_UP: ./index.html -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: -#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: +#+HTML_HEAD: #+PROPERTY: header-args:conf+ :comments both #+PROPERTY: header-args:conf+ :mkdirp yes