Add torrent config

This commit is contained in:
Thomas Dehaeze 2020-03-27 15:38:04 +01:00
parent 7603583d19
commit ca5adde5ba
5 changed files with 102 additions and 14 deletions

View File

@ -204,3 +204,15 @@ Terminal=false
MimeType=x-scheme-handler/org-protocol;
NoDisplay=true
#+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]
Type=Application
Name=Torrent
Exec=tremc %U
#+end_src

View File

@ -291,6 +291,11 @@ Org Capture
config.bind(',R', 'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
#+end_src
Download a torrent
#+begin_src python
config.bind(',t', 'hint links spawn --userscript ~/scripts/torrent-add.sh {hint-url}')
#+end_src
Annotate with Hypothesis
#+begin_src python
config.bind(',a', "jseval javascript:(function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();")

View File

@ -15,13 +15,14 @@
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
#+PROPERTY: header-args:bash :comments both :mkdirp yes
#+PROPERTY: header-args:bash+ :shebang "#!/usr/bin/env bash"
:END:
* Wallpapers
:PROPERTIES:
:header-args: :tangle ~/scripts/wallpapers.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
@ -34,8 +35,6 @@
* LockScreen
:PROPERTIES:
:header-args: :tangle ~/scripts/lockscreen.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
First, turn off dunst
@ -103,8 +102,6 @@ Finally, lock the screen using =i3lock=.
* Lock / Exit / Suspend / ...
:PROPERTIES:
:header-args: :tangle ~/scripts/quit.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
@ -131,8 +128,6 @@ Finally, lock the screen using =i3lock=.
* NAS - Mount
:PROPERTIES:
:header-args: :tangle ~/scripts/nas.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
@ -151,11 +146,21 @@ Finally, lock the screen using =i3lock=.
fi
#+end_src
* Download Torrent
:PROPERTIES:
:header-args: :tangle ~/scripts/torrent-add.sh
:END:
#+begin_src bash
transmission-remote ***REMOVED***:9091 --auth tdehaeze:$(pass nas/transmission | sed -n 1p) -a $1 && \
dunstify 'Torrent' 'Successfully added' || \
dunstify 'Torrent' 'Error'
#+end_src
* Icons Unicode
:PROPERTIES:
:header-args: :tangle ~/scripts/icons.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
@ -180,8 +185,6 @@ Finally, lock the screen using =i3lock=.
* Org-Protocol-Capture-HTML
:PROPERTIES:
:header-args: :tangle ~/scripts/org-protocol-capture-html.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
Defaults
@ -311,8 +314,6 @@ Send to Emacs
* Restart Mopidy
:PROPERTIES:
:header-args: :tangle ~/scripts/mopidy-restart.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash

View File

@ -189,6 +189,10 @@ XF86Display
super + space ; i
$BROWSER;
# Start Terminal Application
super + space ; t
$TERMINAL -e "tremc"
# Alternative Browser
super + space ; shift + i
brave;

66
dotfiles/torrent.org Normal file
View File

@ -0,0 +1,66 @@
#+TITLE: Torrent Configuration
:DRAWER:
#+STARTUP: overview
#+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas
#+HTML_LINK_HOME: ./index.html
#+HTML_LINK_UP: ./index.html
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
:END:
* NAS Configuration
* Tremc - Curses interface for Transmission
https://github.com/tremc/tremc
#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/tremc/settings.cfg :noweb no-export
[Connection]
password = <<get-password(passname="nas/transmission")>>
username = tdehaeze
port = 9091
host = ***REMOVED***
path = /transmission/rpc
ssl = False
[Sorting]
order = name
[Filtering]
filter =
invert = False
[Misc]
compact_list = False
torrentname_is_progressbar = True
file_viewer = xdg-open %%s
file_open_in_terminal = True
[Colors]
title_seed = bg:green,fg:black
title_download = bg:blue,fg:black
title_idle = bg:cyan,fg:black
title_verify = bg:magenta,fg:black
title_paused = bg:black,fg:white
title_error = bg:red,fg:white
download_rate = bg:black,fg:blue
upload_rate = bg:black,fg:red
eta+ratio = bg:black,fg:white
filter_status = bg:red,fg:black
dialog = bg:black,fg:white
dialog_important = bg:red,fg:black
button = bg:white,fg:black
button_focused = bg:black,fg:white
file_prio_high = bg:red,fg:black
file_prio_normal = bg:white,fg:black
file_prio_low = bg:yellow,fg:black
file_prio_off = bg:blue,fg:black
#+end_src