1
0
Fork 0

remove sway rdp stuff

This commit is contained in:
Massaki Archambault 2021-05-29 19:43:01 -04:00
parent 7f4d4bf34a
commit 0ac417a38c
1 changed files with 0 additions and 15 deletions

View File

@ -46,19 +46,4 @@ export _JAVA_AWT_WM_NONREPARENTING=1
# Firefox # Firefox
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
# wlroot rdp
wlroot_rdp_cache="$HOME/.cache/wlr-rdp"
wlroot_rdp_cert="$wlroot_rdp_cache/tls.crt"
wlroot_rdp_key="$wlroot_rdp_cache/tls.key"
wlroot_rdp_csr="$wlroot_rdp_cache/tls.csr"
mkdir "$wlroot_rdp_cache" 2>/dev/null
if [[ ! -e "$wlroot_rdp_cert" ]] || [[ ! -e "$wlroot_rdp_key" ]]; then
openssl genrsa -out "$wlroot_rdp_key" 2048
openssl req -new -key "$wlroot_rdp_key" -out "$wlroot_rdp_csr"
openssl x509 -req -days 365 -signkey "$wlroot_rdp_key" -in "$wlroot_rdp_csr" -out "$wlroot_rdp_cert"
fi
# start sway
WLR_RDP_TLS_CERT_PATH="$wlroot_rdp_cert" \
WLR_RDP_TLS_KEY_PATH="$wlroot_rdp_key" \
exec /usr/bin/sway $@ exec /usr/bin/sway $@