dotfiles/bin/weston-rdp

35 lines
499 B
Text
Raw Permalink Normal View History

2023-04-13 00:04:20 +02:00
#!/bin/bash
# Variables
weston=weston
backend=rdp-backend.so
rdp_d="${HOME}/.rdp"
hostname="$(hostname)"
crt="${rdp_d}/${hostname}.crt"
key="${rdp_d}/${hostname}.key"
# Arguments
width="${1:-1920}" ; shift
height="${1:-1080}"; shift
# Command building
weston_com=(
"$weston"
"$@"
2023-04-23 22:46:39 +02:00
--backend="$backend"
--rdp-tls-cert="$crt"
--rdp-tls-key="$key"
--width="$width"
--height="$height"
2023-04-13 00:04:20 +02:00
)
# Debug
#echo "${weston_com[@]}"
#exit 0
# Execution
set -xe
cd
"${weston_com[@]}"