Change from tremc to stig
This commit is contained in:
@@ -18,7 +18,10 @@ image/gif=img.desktop;
|
|||||||
application/rss+xml=rss.desktop
|
application/rss+xml=rss.desktop
|
||||||
x-scheme-handler/mailto=neomutt.desktop
|
x-scheme-handler/mailto=neomutt.desktop
|
||||||
message/rfc822=neomutt.desktop
|
message/rfc822=neomutt.desktop
|
||||||
application/x-bittorrent=deluge.desktop
|
|
||||||
|
x-scheme-handler/magnet=stig.desktop;
|
||||||
|
application/x-bittorrent=stig.desktop
|
||||||
|
|
||||||
application/pdf=zathura.desktop
|
application/pdf=zathura.desktop
|
||||||
x-scheme-handler/http=qutebrowser.desktop
|
x-scheme-handler/http=qutebrowser.desktop
|
||||||
x-scheme-handler/https=qutebrowser.desktop
|
x-scheme-handler/https=qutebrowser.desktop
|
||||||
@@ -34,7 +37,7 @@ application/x-extension-xht=qutebrowser.desktop
|
|||||||
|
|
||||||
[Added Associations]
|
[Added Associations]
|
||||||
text/plain=mousepad.desktop;
|
text/plain=mousepad.desktop;
|
||||||
application/x-bittorrent=deluge.desktop;
|
application/x-bittorrent=stig.desktop;
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Neomutt
|
* Neomutt
|
||||||
@@ -184,3 +187,17 @@ Terminal=false
|
|||||||
Categories=Office;Viewer;
|
Categories=Office;Viewer;
|
||||||
MimeType=application/pdf;
|
MimeType=application/pdf;
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* Stig
|
||||||
|
|
||||||
|
#+begin_src conf :tangle ~/.local/share/applications/stig.desktop
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Stig
|
||||||
|
Comment=TUI and CLI for Transmission
|
||||||
|
Terminal=true
|
||||||
|
Exec=torrent-add %U
|
||||||
|
Type=Application
|
||||||
|
MimeType=application/x-bittorrent
|
||||||
|
Categories=Network;FileTransfer;P2P;
|
||||||
|
Keywords=p2p;bittorrent;transmission;rpc;
|
||||||
|
#+end_src
|
||||||
|
|||||||
@@ -239,3 +239,10 @@ List all =pdf= files and open selected one with zathura.
|
|||||||
cd ~/Cloud/brain/pdfs/ && ls *.pdf | rofi -dmenu -lines 20 | xargs -I {} zathura {}
|
cd ~/Cloud/brain/pdfs/ && ls *.pdf | rofi -dmenu -lines 20 | xargs -I {} zathura {}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* =torrent-add= - Add Torrent using =stig=
|
||||||
|
Used to add notification when a torrent is added.
|
||||||
|
#+begin_src bash :tangle ~/.local/bin/torrent-add
|
||||||
|
stig add $@ && \
|
||||||
|
dunstify --replace=22221 "Stif" 'Torrent Added' || \
|
||||||
|
dunstify --replace=22221 --urgency=critical "Stif" 'Failed'
|
||||||
|
#+end_src
|
||||||
|
|||||||
@@ -190,6 +190,10 @@ super + space ; w
|
|||||||
super + space ; p
|
super + space ; p
|
||||||
$TERMINAL -e tmux new-session -A -s ncmpcpp ncmpcpp
|
$TERMINAL -e tmux new-session -A -s ncmpcpp ncmpcpp
|
||||||
|
|
||||||
|
# Torrend Client with stig
|
||||||
|
super + space ; t
|
||||||
|
$TERMINAL -e tmux new-session -A -s stig stig
|
||||||
|
|
||||||
# Default Browser
|
# Default Browser
|
||||||
super + space ; i
|
super + space ; i
|
||||||
$BROWSER;
|
$BROWSER;
|
||||||
|
|||||||
67
torrent.org
67
torrent.org
@@ -1,50 +1,31 @@
|
|||||||
#+TITLE: Torrent Configuration
|
#+TITLE: Torrent Configuration
|
||||||
#+SETUPFILE: ./setup/org-setup-file.org
|
#+SETUPFILE: ./setup/org-setup-file.org
|
||||||
|
|
||||||
* =tremc= - Curses interface for Transmission
|
* =stig= - TUI and CLI for Transmission
|
||||||
https://github.com/tremc/tremc
|
https://github.com/rndusr/stig
|
||||||
|
|
||||||
#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/tremc/settings.cfg :noweb no-export
|
#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/stig/rc :noweb no-export
|
||||||
[Connection]
|
# Host that runs Transmission daemon
|
||||||
password = <<get-password(passname="nas/transmission")>>
|
set connect.host torrent.tdehaeze.xyz
|
||||||
username = tdehaeze
|
set connect.port 9091
|
||||||
port = 9091
|
set connect.user tdehaeze
|
||||||
host = torrent.tdehaeze.xyz
|
set connect.password <<get-password(passname="nas/transmission")>>
|
||||||
path = /transmission/rpc/
|
|
||||||
ssl = False
|
|
||||||
|
|
||||||
[Sorting]
|
# Update torrent/peer/file/etc lists every 10 seconds
|
||||||
order = name
|
set tui.poll 10
|
||||||
|
|
||||||
[Filtering]
|
# Tabs
|
||||||
filter =
|
tab ls all --columns size,ratio,status,rate-down,rate-up,%downloaded,name
|
||||||
invert = False
|
tab -b ls peers
|
||||||
|
tab -b ls uploading
|
||||||
|
tab -b ls downloading
|
||||||
|
|
||||||
[Misc]
|
# Default columns in torrent lists
|
||||||
compact_list = False
|
set columns.torrents marked eta %downloaded status rate-down rate-up size seeds peers name
|
||||||
torrentname_is_progressbar = True
|
set columns.peers host client %downloaded rate-down rate-up rate-est eta
|
||||||
file_viewer = xdg-open %%s
|
set columns.files marked priority %downloaded downloaded size name
|
||||||
file_open_in_terminal = True
|
set columns.trackers tier domain error last-announce next-announce leeches seeds downloads
|
||||||
|
set columns.settings name value default description
|
||||||
[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
|
#+end_src
|
||||||
|
|
||||||
* =aria2c= - Lightweight download utility
|
* =aria2c= - Lightweight download utility
|
||||||
@@ -65,15 +46,15 @@ on-download-error=/home/thomas/.config/aria2/download-error.sh
|
|||||||
|
|
||||||
** Download Start Script
|
** Download Start Script
|
||||||
#+begin_src bash :tangle ~/.config/aria2/download-start.sh :comments both :mkdirp yes :shebang "#!/bin/bash"
|
#+begin_src bash :tangle ~/.config/aria2/download-start.sh :comments both :mkdirp yes :shebang "#!/bin/bash"
|
||||||
notify-send --hint=string:x-dunst-stack-tag:bHEPn7rW "DL Started" "$(basename \"$3\" 2> /dev/null)"
|
dunstify "DL Started" "$(basename \"$3\" 2> /dev/null)"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Download Complete Script
|
** Download Complete Script
|
||||||
#+begin_src bash :tangle ~/.config/aria2/download-complete.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash"
|
#+begin_src bash :tangle ~/.config/aria2/download-complete.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash"
|
||||||
notify-send --hint=string:x-dunst-stack-tag:bHEPn7rW "DL Completed" "$(basename \"$3\" 2> /dev/null)"
|
dunstify "DL Completed" "$(basename \"$3\" 2> /dev/null)"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Download Error Script
|
** Download Error Script
|
||||||
#+begin_src bash :tangle ~/.config/aria2/download-error.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash"
|
#+begin_src bash :tangle ~/.config/aria2/download-error.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash"
|
||||||
notify-send --hint=string:x-dunst-stack-tag:bHEPn7rW --urgency=critical "DL Failed" "$(basename \"$3\" 2> /dev/null)"
|
dunstify --urgency=critical "DL Failed" "$(basename \"$3\" 2> /dev/null)"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|||||||
Reference in New Issue
Block a user