diff options
author | Karel Kočí <cynerd@email.cz> | 2022-08-09 09:29:27 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-08-09 09:29:27 +0200 |
commit | 217fa9d53c5eac5cf63043aab7b3b97037796cb5 (patch) | |
tree | fb5837afb7faa2b13ff65e2eb6e9c24be71236d0 | |
parent | 4bbb98d616cdf3ce44256953b572e5911cd724ad (diff) | |
download | myconfigs-217fa9d53c5eac5cf63043aab7b3b97037796cb5.tar.gz myconfigs-217fa9d53c5eac5cf63043aab7b3b97037796cb5.tar.bz2 myconfigs-217fa9d53c5eac5cf63043aab7b3b97037796cb5.zip |
elektroline-windows: allow usage of my common socks5 proxy
-rwxr-xr-x | local/bin/elektroline-windows | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/local/bin/elektroline-windows b/local/bin/elektroline-windows index 07b5a3c..59c548b 100755 --- a/local/bin/elektroline-windows +++ b/local/bin/elektroline-windows @@ -1,7 +1,14 @@ -#!/bin/sh +#!/usr/bin/env bash +set -eu + +declare -a args # Using SOCS: -# /proxy:socks5://127.0.0.1:8123 +if [ "${1:-}" = "socks" ]; then + args+=("/proxy:socks5://127.0.0.1:8123") +fi + exec xfreerdp \ + "${args[@]}" \ -decorations /w:1537 /h:903 /kbd:0x00000409 \ /d:ELEKTROLINE /u:kkoci \ /bpp:24 /audio-mode:0 /sound:sys:alsa /network:lan /rfx /cert-ignore \ |