Skip to content

Instantly share code, notes, and snippets.

@juanlufont
juanlufont / transmission-port-update.sh
Last active December 1, 2024 22:31
Transmission port update
#!/bin/sh
# Description: this script updates the peer port used by the
# torrent client Transmission using its RPC API
# Author: Juan Luis Font
DEFAULT_URL="http://localhost:9091/transmission/rpc"
WGET_OPTS="--quiet"
# colors
client.focused #688060 #688060 #303030 #ffcfaf
client.focused_inactive #3f3f3f #3F3F3F #7f9f7f #3f3f3f
client.unfocused #3f3f3f #3F3F3F #DCDCCC #3f3f3f
client.urgent #dca3a3 #dca3a3 #DCDCCC #3f3f3f
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {