aboutsummaryrefslogtreecommitdiff
path: root/local
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-08-09 09:29:27 +0200
committerKarel Kočí <cynerd@email.cz>2022-08-09 09:29:27 +0200
commit217fa9d53c5eac5cf63043aab7b3b97037796cb5 (patch)
treefb5837afb7faa2b13ff65e2eb6e9c24be71236d0 /local
parent4bbb98d616cdf3ce44256953b572e5911cd724ad (diff)
downloadmyconfigs-217fa9d53c5eac5cf63043aab7b3b97037796cb5.tar.gz
myconfigs-217fa9d53c5eac5cf63043aab7b3b97037796cb5.tar.bz2
myconfigs-217fa9d53c5eac5cf63043aab7b3b97037796cb5.zip
elektroline-windows: allow usage of my common socks5 proxy
Diffstat (limited to 'local')
-rwxr-xr-xlocal/bin/elektroline-windows11
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 \