#!/bin/sh
#setxkbmap -option ctrl:nocaps   #turn off Caps lock, it can make problems, especially in ncurses TUI
#sudo kbdrate -d 40  # has no effect because it accepts values only above 250
#xset r rate 40 30  #pianokeys and keyrepeats are better with ncurses in SID-Wizard if the OS doesn't introduce extra delay
if [ $# -eq 1 ] ; then
 /opt/SID-Wizard/SIDwizard  $(realpath $1)
else
 /opt/SID-Wizard/SIDwizard  -h  $1 $2 $3 $4 $5
# /opt/SID-Wizard/SIDwizard  -zoom2  -sid8580  -mono  /opt/SID-Wizard/examples/  -drive9 /opt/SID-Wizard/examples/instruments  -h  $1 $2 $3 $4 $5
fi
#sudo kbdrate -d 250
#xset r rate 250 30  #restore normal OS keyrepeat

