# -*- mode: shell-script -*- # ============================================================================ # Shortcuts configuration file for TorkilsTaskSwitcher # # Basic Shortcut Configuration # ---------------------------- # Basic definition of a shortcut consists of four items: # # Name: The name shown in the GUI. # This must be the first line of each shortcut. # # TitleRegExp: A regular expression used to identify the window to be # activated when the shortcut is chosen. # # Command: Command to run if no window matches TitleRegExp. Optional. # Environment variables (surrounded by '%') may be used. # # If %PROGRAMFILES% is used, then the specified file is # automatically searched for in both both "Program Files" and # "Program Files (x86)". Though note that this only works # if no arguments are specified for the command. # # Key: The shortcut key. Examples: # a-z # 0-9 # f1-f12 # Optionally above keys can be prefixed with # + = Shift # ! = Alt/AltGr # ^ = Ctrl # # Note that after changing and saving the shortcuts file, TorkilsTaskSwitcher # must be restarted (ctrl-r). # # # Advanced Shortcut Configuration # ------------------------------- # For more advanced shortcut configuration these items can be used: # # ProcessRegExp: A regular expression that the process owning the window # must match. # If ProcessRegExp is specified, TitleRegExp is optional. # If both ProcessRegExp and TitleRegExp are specified, then # the target window must match both regexps. # # TitleRegExpNeg: A negative title regular expression, i.e. a regexp # which the window title must NOT match. # # When TitleRegExpNeg is used, TorkilsTaskSwitcher will # switch to the first window for which the title does NOT # match TitleRegExpNeg and does match TitleRegExp. # # CommandDir: Directory from which Command is started. # # ComputerNameRegExp: A regular expression, which environment variable COMPUTERNAME # must match in order for the shortcut to be available. # This may be useful for sharing a shortcuts configuration file # between multiple PCs, but with slight differences in the # available shortcuts between the two PCs. # # # One shortcuts file can be included in another using a "include" statement: # "include my_file.cfg" # # # Regular Expressions # ------------------- # If you are unfamiliar with regular expressions (as used in TitleRegExp and # TitleRegExpNeg), then a few tips are: # To match a text anywhere in the window title, use # TitleRegExp=My Window Title # # To match a text only at the start of the window title, use # TitleRegExp=^My Window Title # # To match a text only at the end of the window title, use # TitleRegExp=My Window Title$ # # For the purpose of this configuration file, above regular expression # examples should cover the needs of most users. # # For more advanced regular expressions refer to: # http://perldoc.perl.org/perlrequick.html # http://perldoc.perl.org/perlretut.html # # Activating Shortcut Changes # --------------------------- # After changing and saving the shortcuts configuration file, TorkilstaskSwitcher # must be restarted by pressing Ctrl-r in order to activate the changes. # # ---------------------------------------------------------------------------- # Browsers # -------- Name=Microsoft Edge TitleRegExp=Microsoft. Edge$ Command=msedge Key=e Name=Google Chrome TitleRegExp=Google Chrome$ Command=%PROGRAMFILES%\Google\Chrome\Application\chrome.exe Key=c Name=Mozilla Firefox TitleRegExp=Mozilla Firefox$ Command=%PROGRAMFILES%\Mozilla Firefox\firefox.exe Key=f # Email clients # ------------- Name=Microsoft Outlook TitleRegExp=- Microsoft Outlook$ Command=%PROGRAMFILES%\Microsoft Office\Office12\OUTLOOK.EXE Key=o Name=Mozilla Thunderbird TitleRegExp=Mozilla Thunderbird$ Command=%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe Key=t # Alternative example: Shortcut 'm' for both Outlook and Thunderbird, depending on COMPUTERNAME # # Name=Microsoft Outlook # TitleRegExp= - Outlook$ # Command=%PROGRAMFILES%\Microsoft Office\root\Office16\OUTLOOK.EXE # Key=m # ComputerNameRegExp=MY-OFFICE-PC # Name=Mozilla Thunderbird # TitleRegExp=Mozilla Thunderbird$ # Command=%PROGRAMFILES%\Mozilla Thunderbird\thunderbird.exe # Key=m # ComputerNameRegExp=MY-HOME-PC # Various applications # -------------------- Name=Microsoft Word TitleRegExp=(- Word$|^Word$) Command=%PROGRAMFILES%\Microsoft Office\root\Office16\winword.exe Key=w Name=Microsoft Excel TitleRegExp=(- Excel$|^Excel$) Command=%PROGRAMFILES%\Microsoft Office\root\Office16\excel.exe Key=x Name=Microsoft PowerPoint TitleRegExp=(- PowerPoint$|^PowerPoint$) Command=%PROGRAMFILES%\Microsoft Office\root\Office16\powerpnt.exe Key=p Name=Adobe Reader TitleRegExp= - Adobe Acrobat Reader DC Command=%PROGRAMFILES%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe Key=a Name=VLC media player TitleRegExp=(- VLC media player$|^VLC media player$) Command=%PROGRAMFILES%\VideoLAN\VLC\vlc.exe Key=v # Folders # ------- Name=My Documents TitleRegExp=^My Documents$ Command=%SystemRoot%\explorer.exe /n,::{450D8FBA-AD25-11D0-98A8-0800361B1103} Key=+d # "This PC" Name=This PC TitleRegExp=^This PC$ Command=%SystemRoot%\explorer.exe /n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D} Key=+t Name=C: TitleRegExp=^C:\\$ Command=%WINDIR%\explorer.exe c:\ Key=+c # ---------------------------------------------------------------------------- # End of File # ============================================================================