#!/usr/bin/sh # Start Winlink Express via Wine # lastmod: 2025-01-24T01:13:25+0100 # # Author: Dominic Reich # Check if we are on the "Winlink screen" workspaces=$(i3-msg -t get_workspaces) if [[ "${workspaces}" == *" 0:Winlink "* ]]; then i3-msg 'exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' else i3-msg 'workspace " 0:Winlink "; exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' fi # reset the ports to COM1 because the Pat version changes them to COM33 # and we don't want Winlink to cry about wrong ports sed -i '/^PTTPort=/s/=.*$/=COM1/' ~/.wine-winlink/drive_c/VARA\ FM/VARAFM.ini sed -i '/^PTTPort=/s/=.*$/=COM1/' ~/.wine-winlink/drive_c/VARA/VARA.ini