Update Makefile

This commit is contained in:
Thomas Dehaeze 2019-08-23 10:01:34 +02:00
parent 3f1d182535
commit f312cb688f
5 changed files with 32 additions and 11 deletions

View File

@ -1,4 +1,4 @@
test: *.org
for f in *.org; do emacsclient -e "(progn (find-file \"$$f\") (org-babel-tangle))"; done
all: tangle
tangle: *.org
for f in ./dotfiles/*.org; do emacsclient -e "(progn (find-file \"$$f\") (org-babel-tangle))"; done

View File

@ -129,3 +129,23 @@
Name=RSS feed addition
Exec=/usr/bin/env rssadd %U
#+end_src
* Qutebrowser
:PROPERTIES:
:header-args: :tangle ~/.local/share/applications/qutebrowser.desktop
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Desktop Entry]
Name=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=false
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

View File

@ -646,11 +646,11 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
#+end_src
* Print on Rnice
:PROPERTIES:
:header-args: :tangle ~/bin/print-rnice
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
:PROPERTIES:
:header-args: :tangle ~/bin/print-rnice
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
nbpage=$(echo -e '1\n2\n4' | dmenu -p 'Number of pages per sheet' -l 20);
@ -659,7 +659,7 @@ The sed piece just removes the colon from the provided prompt: =rofi -p= already
# First copy the file to Rnice
if sshpass -p "$(pass ssl.esrf.fr/dehaeze | sed -n 1p)" scp $1 dehaeze@rnice:~/Downloads/; then
# Then print on Rnice
sshpass -p "$(pass ssl.esrf.fr/dehaeze | sed -n 1p)" ssh dehaeze@rnice "lpr -o media=A4 -o sides=$sides -o outputorder=reverse -o number-up=$nbpage -P ctb110c1u ~/Downloads/$1";
sshpass -p "$(pass ssl.esrf.fr/dehaeze | sed -n 1p)" ssh dehaeze@rnice "lpr -o media=A4 -o sides=$sides -o number-up=$nbpage -P ctb110c1u ~/Downloads/$1";
# Finally, delete the file
else
echo "Command Failed"

View File

@ -181,8 +181,9 @@
** Github
#+BEGIN_SRC conf
[github]
user = tdehaeze
[github]
user = tdehaeze
oauth-token = 8cc5b41120f7e9a869c24fa3678667d3d8422e6f
#+END_SRC
* Global Git Ignore

View File

@ -1,4 +1,4 @@
#+TITLE: Dotfiles - Manjaro Linux on Macbook Pro
#+TITLE: Dotfiles - Manjaro Linux
:DRAWER:
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/styles/readtheorg/css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/styles/readtheorg/css/readtheorg.css"/>