From 217fa9d53c5eac5cf63043aab7b3b97037796cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 9 Aug 2022 09:29:27 +0200 Subject: elektroline-windows: allow usage of my common socks5 proxy --- local/bin/elektroline-windows | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'local/bin') 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 \ -- cgit v1.2.3