aboutsummaryrefslogtreecommitdiff
path: root/local
diff options
context:
space:
mode:
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 \