diff --git a/.config/paru/pkglist.txt b/.config/paru/pkglist.txt index 9f0c41c..b071d46 100644 --- a/.config/paru/pkglist.txt +++ b/.config/paru/pkglist.txt @@ -49,6 +49,7 @@ msmtp ncmpcpp neomutt neovim +nnn notmuch pacman pacman-contrib @@ -71,7 +72,8 @@ sxiv texinfo texlive-core texlive-latexextra -transmission-gtk +transmission-cli +tremc ttf-fira-sans ttf-iosevka-fixed-slab ttf-nerd-fonts-symbols-mono diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index dbf3877..806eaf0 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -56,5 +56,8 @@ super + shift + m super + shift + n $TERMINAL -c "neomutt" -e neomutt +super + shift + t + $TERMINAL -c -e tremc + super + shift + b script="$(printf "bibinput\nbibshow" | dmenu -i -p "which script?")" && $script diff --git a/.config/transmission-daemon/settings.json b/.config/transmission-daemon/settings.json new file mode 100644 index 0000000..53fc400 --- /dev/null +++ b/.config/transmission-daemon/settings.json @@ -0,0 +1,68 @@ +{ + "alt-speed-down": 50, + "alt-speed-enabled": false, + "alt-speed-time-begin": 540, + "alt-speed-time-day": 127, + "alt-speed-time-enabled": false, + "alt-speed-time-end": 1020, + "alt-speed-up": 50, + "bind-address-ipv4": "0.0.0.0", + "bind-address-ipv6": "::", + "blocklist-enabled": false, + "blocklist-url": "http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz", + "cache-size-mb": 4, + "dht-enabled": true, + "download-dir": "/home/swytch/downloads/torrents", + "download-queue-enabled": true, + "download-queue-size": 5, + "encryption": 1, + "idle-seeding-limit": 30, + "idle-seeding-limit-enabled": false, + "incomplete-dir": "/home/swytch/downloads", + "incomplete-dir-enabled": false, + "lpd-enabled": false, + "message-level": 2, + "peer-congestion-algorithm": "", + "peer-id-ttl-hours": 6, + "peer-limit-global": 200, + "peer-limit-per-torrent": 50, + "peer-port": 51413, + "peer-port-random-high": 65535, + "peer-port-random-low": 49152, + "peer-port-random-on-start": false, + "peer-socket-tos": "default", + "pex-enabled": true, + "port-forwarding-enabled": true, + "preallocation": 1, + "prefetch-enabled": true, + "queue-stalled-enabled": true, + "queue-stalled-minutes": 30, + "ratio-limit": 2, + "ratio-limit-enabled": false, + "rename-partial-files": true, + "rpc-authentication-required": false, + "rpc-bind-address": "0.0.0.0", + "rpc-enabled": true, + "rpc-host-whitelist": "", + "rpc-host-whitelist-enabled": true, + "rpc-password": "{2b0cc22890788d0906609e7aeca962177f26b78dkdlJ.Kdw", + "rpc-port": 9091, + "rpc-url": "/transmission/", + "rpc-username": "", + "rpc-whitelist": "127.0.0.1,::1", + "rpc-whitelist-enabled": true, + "scrape-paused-torrents-enabled": true, + "script-torrent-done-enabled": false, + "script-torrent-done-filename": "", + "seed-queue-enabled": false, + "seed-queue-size": 10, + "speed-limit-down": 100, + "speed-limit-down-enabled": false, + "speed-limit-up": 100, + "speed-limit-up-enabled": false, + "start-added-torrents": true, + "trash-original-torrent-files": false, + "umask": 18, + "upload-slots-per-torrent": 14, + "utp-enabled": true +} diff --git a/.config/tremc/settings.cfg b/.config/tremc/settings.cfg new file mode 100644 index 0000000..98b66a4 --- /dev/null +++ b/.config/tremc/settings.cfg @@ -0,0 +1,41 @@ +[Connection] +password = +username = +port = 9091 +host = localhost +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:yellow,fg:black +title_verify = bg:magenta,fg:black +title_paused = bg:black,fg:white +title_error = bg:red,fg:white +download_rate = bg:blue,fg:black +upload_rate = bg:red,fg:black +eta+ratio = bg:green,fg:black +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 + diff --git a/.local/bin/transadd b/.local/bin/transadd new file mode 100755 index 0000000..551969f --- /dev/null +++ b/.local/bin/transadd @@ -0,0 +1,17 @@ +#!/usr/bin/env sh + +###################################################################### +# @author : swytch (adapted from Luke Smith - lukesmith.xyz) +# @file : transadd +# @license : GPLv3 +# @created : Saturday Feb 20, 2021 01:30:29 CET +# +# @description : add torrents to transmission-daemon +# start the daemon if not running +###################################################################### + +# transmission-daemon sometimes fails to take remote requests in its first moments, hence the sleep. + +pidof transmission-daemon >/dev/null || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}") + +transmission-remote -a "$@" && notify-send " Torrent added."