dominic revised this gist 11 months ago. Go to revision
4 files changed, 76 insertions
config.i3config(file created)
| @@ -0,0 +1,27 @@ | |||
| 1 | + | # some default settings | |
| 2 | + | set $ws0 " 0:Winlink " | |
| 3 | + | bindsym $mod+0 workspace $ws0 | |
| 4 | + | bindsym $mod+Ctrl+0 move container to workspace $ws0 | |
| 5 | + | bindsym $mod+Shift+0 move container to workspace $ws0; workspace $ws0 | |
| 6 | + | ||
| 7 | + | # Winlink | |
| 8 | + | for_window [class="rms express.exe"] floating enable, border normal | |
| 9 | + | for_window [class="notepad.exe"] floating enable, border normal | |
| 10 | + | for_window [title="Winlink Session"] floating enable, border normal, resize set 900 500, move absolute position 1120 30 | |
| 11 | + | for_window [title="^ Winlink Express"] floating enable, border normal, resize set 1100 700, move absolute position 0 30 | |
| 12 | + | # Pat with qutebrowser in Screen 0 | |
| 13 | + | for_window [class="qutebrowser"] floating enable, border normal, resize set 1050 1050, move absolute position 0 30 | |
| 14 | + | for_window [title="Pat_Alsamixer"] floating enable, border normal, resize set 860 600, move absolute position 1060 30 | |
| 15 | + | for_window [title="Pat_rigctld"] floating enable, border normal, resize set 860 170, move absolute position 1060 910 | |
| 16 | + | # Soundmodem | |
| 17 | + | for_window [class="soundmodem.exe"] floating enable, border normal, resize set 900 550, move absolute position 1120 530 | |
| 18 | + | # ARDOP_Win is usually 540x143 (positon x: 1380) | |
| 19 | + | for_window [class="ardop_win.exe"] floating enable, border normal | |
| 20 | + | for_window [title="^ARDOP_Win"] floating enable, border normal, move absolute position 1120 540 | |
| 21 | + | #VARA HF is usually 732x240 (depends on settings, waterfall, diagrams....) | |
| 22 | + | for_window [class="vara.exe"] floating enable, border normal, move position center | |
| 23 | + | for_window [class="varafm.exe"] floating enable, border normal, move position center | |
| 24 | + | for_window [title="^VARA (HF|FM)"] move absolute position 1120 640 | |
| 25 | + | # VARA FM is usually 732x147 (also depends on settings) | |
| 26 | + | # for_window [title="^VARA FM"] move absolute position 1120 540 | |
| 27 | + | for_window [title="^VARA(FM|HF).log"] floating enable, border normal, move position center | |
varafm.sh(file created)
| @@ -0,0 +1,16 @@ | |||
| 1 | + | #!/usr/bin/sh | |
| 2 | + | # Start VARA via wine | |
| 3 | + | # lastmod: 2025-01-24T00:32:09+0100 | |
| 4 | + | # | |
| 5 | + | # Author: Dominic Reich (OE7DRT) <quick.hat4396@qtztsjosmprqmgtunjyf.com> | |
| 6 | + | ||
| 7 | + | # VARA itself can only select COM ports up to COM16, so we manually | |
| 8 | + | # edit the config file so it gets to use the first USB device (/dev/ttyUSB0) | |
| 9 | + | sed -i '/^PTTPort=/s/=.*$/=COM33/' ~/.wine-winlink/drive_c/VARA\ FM/VARAFM.ini | |
| 10 | + | ||
| 11 | + | WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\VARA FM\\VARAFM.exe" & | |
| 12 | + | ||
| 13 | + | # We should not need rigctl because VARA will use the PTTPort COM33 | |
| 14 | + | # (which *must* be ttyUSB0 - otherwise our script will fail) | |
| 15 | + | #alacritty -o font.size=9 --title=Rigctld -e rigctld -m 1 -p /dev/ttyUSB0 -P RTS -s 9600 -vvvv & | |
| 16 | + | ||
varahf.sh(file created)
| @@ -0,0 +1,15 @@ | |||
| 1 | + | #!/usr/bin/sh | |
| 2 | + | # Start VARA via wine | |
| 3 | + | # lastmod: 2025-01-24T00:32:42+0100 | |
| 4 | + | # | |
| 5 | + | # Author: Dominic Reich (OE7DRT) <quick.hat4396@qtztsjosmprqmgtunjyf.com> | |
| 6 | + | ||
| 7 | + | # sed -i '/^PTTPort=/s/=.*$/=COM33/' ~/.wine-winlink/drive_c/VARA/VARA.ini | |
| 8 | + | ||
| 9 | + | WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\VARA\\VARA.exe" & | |
| 10 | + | ||
| 11 | + | # sleep 3 | |
| 12 | + | # alacritty -o font.size=9 --title=Rigctld -e rigctld -m 2050 -r /dev/ttyUSB0 -d /dev/ttyUSB0 -p /dev/ttyUSB0 -P RTS -s 9600 -vvvv | |
| 13 | + | ||
| 14 | + | alacritty --title Pat_rigctld -e rigctld -m 2050 -p /dev/ttyUSB0 -P RTS -s9600 -vvv & | |
| 15 | + | ||
wl2k.sh(file created)
| @@ -0,0 +1,18 @@ | |||
| 1 | + | #!/usr/bin/sh | |
| 2 | + | # Start Winlink Express via Wine | |
| 3 | + | # lastmod: 2025-01-23T23:27:51+0100 | |
| 4 | + | # | |
| 5 | + | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> | |
| 6 | + | ||
| 7 | + | # Check if we are on the "Winlink screen" | |
| 8 | + | workspaces=$(i3-msg -t get_workspaces) | |
| 9 | + | ||
| 10 | + | if [[ "${workspaces}" != *" 0:Winlink "* ]]; then | |
| 11 | + | i3-msg 'workspace " 0:Winlink "' | |
| 12 | + | fi | |
| 13 | + | ||
| 14 | + | qutebrowser --target window --untrusted-args http://localhost:8080 & | |
| 15 | + | alacritty --title Pat_Alsamixer -e alsamixer -c 1 -V all -M & | |
| 16 | + | ||
| 17 | + | # WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe" | |
| 18 | + | # WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe" | |