From fc643c007f33cb4a82efec5d63762f2de3fcc2a6 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Sat, 21 Jun 2025 12:35:06 +0500 Subject: [PATCH] added transmission settings --- .config/nvim/lua/user/options.lua | 4 ++ .config/sway/config | 4 +- .config/transmission-daemon/settings.json | 79 +++++++++++++++++++++++ 3 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 .config/transmission-daemon/settings.json diff --git a/.config/nvim/lua/user/options.lua b/.config/nvim/lua/user/options.lua index af10a04..d7ff681 100644 --- a/.config/nvim/lua/user/options.lua +++ b/.config/nvim/lua/user/options.lua @@ -36,6 +36,10 @@ vim.api.nvim_create_autocmd("FileType", { pattern = "cs", command = "setlocal shiftwidth=4 tabstop=4" }) +vim.api.nvim_create_autocmd("FileType", { + pattern = "Jenkinsfile", + command = "setlocal shiftwidth=2 tabstop=2" +}) vim.cmd "au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'" vim.cmd "au VimLeave * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'" diff --git a/.config/sway/config b/.config/sway/config index eea5e52..3a4c1ed 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -176,8 +176,8 @@ bindsym --to-code $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy # subscribe to ntfy notifications exec ~/Scripts/ntfy/ntfy_subscribe.sh & -# try to make DP-2 monitor primary for xwayland apps +# start xwayland at session start to make DP-2 monitor primary +xwayland force exec xrandr --output DP-2 --primary -exec_always sleep 10s && xrandr --output DP-2 --primary include /etc/sway/config.d/* diff --git a/.config/transmission-daemon/settings.json b/.config/transmission-daemon/settings.json new file mode 100644 index 0000000..2f1a257 --- /dev/null +++ b/.config/transmission-daemon/settings.json @@ -0,0 +1,79 @@ +{ + "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, + "announce-ip": "", + "announce-ip-enabled": false, + "anti-brute-force-enabled": false, + "anti-brute-force-threshold": 100, + "bind-address-ipv4": "0.0.0.0", + "bind-address-ipv6": "::", + "blocklist-enabled": false, + "blocklist-url": "http://www.example.com/blocklist", + "cache-size-mb": 4, + "default-trackers": "", + "dht-enabled": true, + "download-dir": "/home/nikita/hdd/Downloads", + "download-queue-enabled": true, + "download-queue-size": 5, + "encryption": 1, + "idle-seeding-limit": 30, + "idle-seeding-limit-enabled": false, + "incomplete-dir": "/home/nikita/hdd/Downloads", + "incomplete-dir-enabled": false, + "lpd-enabled": true, + "message-level": 4, + "peer-congestion-algorithm": "", + "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": "le", + "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": false, + "rpc-authentication-required": false, + "rpc-bind-address": "0.0.0.0", + "rpc-enabled": true, + "rpc-host-whitelist": "", + "rpc-host-whitelist-enabled": true, + "rpc-password": "{81bde6fbaa04122e11234901f59f8ecdd26514bd7UX5ZIJ0", + "rpc-port": 9091, + "rpc-socket-mode": "0750", + "rpc-url": "/transmission/", + "rpc-username": "", + "rpc-whitelist": "127.0.0.1,::1", + "rpc-whitelist-enabled": true, + "scrape-paused-torrents-enabled": true, + "script-torrent-added-enabled": true, + "script-torrent-added-filename": "~/Scripts/transmission/transmission_add_handler.sh", + "script-torrent-done-enabled": true, + "script-torrent-done-filename": "~/Scripts/transmission/transmission_done_handler.sh", + "script-torrent-done-seeding-enabled": false, + "script-torrent-done-seeding-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, + "tcp-enabled": true, + "torrent-added-verify-mode": "fast", + "trash-original-torrent-files": false, + "umask": "022", + "upload-slots-per-torrent": 8, + "utp-enabled": true +}