dominic 修订了这个 Gist 10 months ago. 转到此修订
1 file changed, 7 insertions, 1 deletion
winlink-express.sh
| @@ -1,5 +1,6 @@ | |||
| 1 | 1 | #!/usr/bin/sh | |
| 2 | 2 | # Start Winlink Express via Wine | |
| 3 | + | # lastmod: 2025-01-24T01:13:25+0100 | |
| 3 | 4 | # | |
| 4 | 5 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> | |
| 5 | 6 | ||
| @@ -10,4 +11,9 @@ if [[ "${workspaces}" == *" 0:Winlink "* ]]; then | |||
| 10 | 11 | i3-msg 'exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' | |
| 11 | 12 | else | |
| 12 | 13 | i3-msg 'workspace " 0:Winlink "; exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' | |
| 13 | - | fi | |
| 14 | + | fi | |
| 15 | + | ||
| 16 | + | # reset the ports to COM1 because the Pat version changes them to COM33 | |
| 17 | + | # and we don't want Winlink to cry about wrong ports | |
| 18 | + | sed -i '/^PTTPort=/s/=.*$/=COM1/' ~/.wine-winlink/drive_c/VARA\ FM/VARAFM.ini | |
| 19 | + | sed -i '/^PTTPort=/s/=.*$/=COM1/' ~/.wine-winlink/drive_c/VARA/VARA.ini | |
dominic 修订了这个 Gist 10 months ago. 转到此修订
没有任何变更
dominic 修订了这个 Gist 10 months ago. 转到此修订
1 file changed, 5 insertions, 1 deletion
config.i3config
| @@ -4,10 +4,13 @@ bindsym $mod+0 workspace $ws0 | |||
| 4 | 4 | bindsym $mod+Ctrl+0 move container to workspace $ws0 | |
| 5 | 5 | bindsym $mod+Shift+0 move container to workspace $ws0; workspace $ws0 | |
| 6 | 6 | ||
| 7 | - | # Winlink specific (could be enhanced ofc) | |
| 7 | + | # Winlink | |
| 8 | 8 | for_window [class="rms express.exe"] floating enable, border normal | |
| 9 | + | for_window [class="notepad.exe"] floating enable, border normal | |
| 9 | 10 | for_window [title="Winlink Session"] floating enable, border normal, resize set 900 500, move absolute position 1120 30 | |
| 10 | 11 | for_window [title="^ Winlink Express"] floating enable, border normal, resize set 1100 700, move absolute position 0 30 | |
| 12 | + | # Soundmodem | |
| 13 | + | for_window [class="soundmodem.exe"] floating enable, border normal, resize set 900 550, move absolute position 1120 530 | |
| 11 | 14 | # ARDOP_Win is usually 540x143 (positon x: 1380) | |
| 12 | 15 | for_window [class="ardop_win.exe"] floating enable, border normal | |
| 13 | 16 | for_window [title="^ARDOP_Win"] floating enable, border normal, move absolute position 1120 540 | |
| @@ -16,4 +19,5 @@ for_window [class="vara.exe"] floating enable, border normal, move position cent | |||
| 16 | 19 | for_window [class="varafm.exe"] floating enable, border normal, move position center | |
| 17 | 20 | for_window [title="^VARA (HF|FM)"] move absolute position 1120 540 | |
| 18 | 21 | # VARA FM is usually 732x147 (also depends on settings) | |
| 22 | + | # for_window [title="^VARA FM"] move absolute position 1120 540 | |
| 19 | 23 | for_window [title="^VARA(FM|HF).log"] floating enable, border normal, move position center | |
dominic 修订了这个 Gist 10 months ago. 转到此修订
1 file changed, 7 insertions, 1 deletion
winlink-express.sh
| @@ -3,5 +3,11 @@ | |||
| 3 | 3 | # | |
| 4 | 4 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> | |
| 5 | 5 | ||
| 6 | - | i3-msg 'workspace " 0:Winlink "; exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' | |
| 6 | + | # Check if we are on the "Winlink screen" | |
| 7 | + | workspaces=$(i3-msg -t get_workspaces) | |
| 7 | 8 | ||
| 9 | + | if [[ "${workspaces}" == *" 0:Winlink "* ]]; then | |
| 10 | + | i3-msg 'exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' | |
| 11 | + | else | |
| 12 | + | i3-msg 'workspace " 0:Winlink "; exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' | |
| 13 | + | fi | |
dominic 修订了这个 Gist 10 months ago. 转到此修订
1 file changed, 2 insertions, 1 deletion
winlink-express.sh
| @@ -3,4 +3,5 @@ | |||
| 3 | 3 | # | |
| 4 | 4 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> | |
| 5 | 5 | ||
| 6 | - | i3-msg 'workspace 0; exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' | |
| 6 | + | i3-msg 'workspace " 0:Winlink "; exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' | |
| 7 | + | ||
dominic 修订了这个 Gist 10 months ago. 转到此修订
1 file changed, 0 insertions, 0 deletions
i3-config 重命名为 config.i3config
文件已重命名,但内容与之前没有差异
dominic 修订了这个 Gist 10 months ago. 转到此修订
1 file changed, 19 insertions
i3-config(文件已创建)
| @@ -0,0 +1,19 @@ | |||
| 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 specific (could be enhanced ofc) | |
| 8 | + | for_window [class="rms express.exe"] floating enable, border normal | |
| 9 | + | for_window [title="Winlink Session"] floating enable, border normal, resize set 900 500, move absolute position 1120 30 | |
| 10 | + | for_window [title="^ Winlink Express"] floating enable, border normal, resize set 1100 700, move absolute position 0 30 | |
| 11 | + | # ARDOP_Win is usually 540x143 (positon x: 1380) | |
| 12 | + | for_window [class="ardop_win.exe"] floating enable, border normal | |
| 13 | + | for_window [title="^ARDOP_Win"] floating enable, border normal, move absolute position 1120 540 | |
| 14 | + | #VARA HF is usually 732x240 (depends on settings, waterfall, diagrams....) | |
| 15 | + | for_window [class="vara.exe"] floating enable, border normal, move position center | |
| 16 | + | for_window [class="varafm.exe"] floating enable, border normal, move position center | |
| 17 | + | for_window [title="^VARA (HF|FM)"] move absolute position 1120 540 | |
| 18 | + | # VARA FM is usually 732x147 (also depends on settings) | |
| 19 | + | for_window [title="^VARA(FM|HF).log"] floating enable, border normal, move position center | |
dominic 修订了这个 Gist 10 months ago. 转到此修订
1 file changed, 6 insertions
winlink-express.sh(文件已创建)
| @@ -0,0 +1,6 @@ | |||
| 1 | + | #!/usr/bin/sh | |
| 2 | + | # Start Winlink Express via Wine | |
| 3 | + | # | |
| 4 | + | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> | |
| 5 | + | ||
| 6 | + | i3-msg 'workspace 0; exec WINEPREFIX=/home/dominic/.wine-winlink wine "C:\\RMS Express\\RMS Express.exe"' | |