From c93dd2edc93d3dd8272c1c596decb477f0f8a0d1 Mon Sep 17 00:00:00 2001 From: Marco van den Oever Date: Sat, 27 Apr 2024 20:46:19 +0200 Subject: [PATCH] Workspace --- docs/pages/v2/settings/hot-keys.md | 1346 ++++++++++++++-------------- {src => schema}/wtq.schema.2.json | 24 +- src/build.sh | 2 +- src/wtq.jsonc | 87 +- 4 files changed, 739 insertions(+), 720 deletions(-) rename {src => schema}/wtq.schema.2.json (90%) mode change 100644 => 100755 src/build.sh diff --git a/docs/pages/v2/settings/hot-keys.md b/docs/pages/v2/settings/hot-keys.md index e03551e..960b641 100644 --- a/docs/pages/v2/settings/hot-keys.md +++ b/docs/pages/v2/settings/hot-keys.md @@ -1,674 +1,674 @@ -# Hotkeys - -Configures the keys used to open and close an app. - -Hot keys are supported on a global basis, and per app. -Multiple hot keys are supported, with an optional modifier. - -## Global -```json -{ - "HotKeys": [ - // Tilde, without modifiers - { "Key": "OemTilde" }, - - // Ctrl + Q - { "Modifiers": "Control", "Key": "Q" }, - - // Multiple modifiers - { "Modifiers": "Control,Shift", "Key": "W" } - ] -} -``` - -## Per App -```json -{ - "Apps": [ - { - "Name": "Terminal", - - "HotKeys": [ - // Ctrl + 1 - { "Modifiers": "Control", "Key": "1" } - ] - }, - { - "Name": "File Browser", - - "HotKeys": [ - // Ctrl + 2 - { "Modifiers": "Control", "Key": "2" } - ] - } - ] -} -``` - -## Windows Key + Tilde as a Hot Key - -When using the Windows key + tilde as a hot key, while toggling Windows Terminal, the default shortcut for Windows Terminal's own Quake mode may interfere. - -You can turn off the built-in Quake mode, by unmapping the key: - -![WT Hot Key](../../assets/img/wt-hotkey.png) - -## F12 as a Hot Key - -When using "F12" as a hotkey, it may be necessary to disable the key as a shortcut for the system-wide debugger first. - -Since F12 is the default for the debugger, it won't respond when used in another app, such as Windows Terminal Quake, or ConEmu. - -This can be done by changing the registry key at: - -``` -Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\UserDebuggerHotKey -``` - -This key defaults to ```0```, which means ```F12```. - -As pointed out by the ConEmu docs, it can for example be changed to the "Pause"-key (value ```13```). - -A reboot may also be required, after which F12 can be used as a hotkey for toggling. - -Thanks to [Luca](https://github.com/lpuglia) for pointing this out on GitHub. - -See also: - -- [MSDN docs](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey?redirectedfrom=MSDN). - -- [ConEmu explanation](https://conemu.github.io/en/GlobalHotKeys.html#Using_F12_as_global_hotkey) - -## Key Modifiers -- Alt -- Control -- Shift -- Super - -## Keys - -```json -// The bitmask to extract a key code from a key value. -KeyCode - -// The bitmask to extract modifiers from a key value. -Modifiers - -// No key pressed. -None - -// The left mouse button. -LButton - -// The right mouse button. -RButton - -// The CANCEL key. -Cancel - -// The middle mouse button (three-button mouse). -MButton - -// The first x mouse button (five-button mouse). -XButton1 - -// The second x mouse button (five-button mouse). -XButton2 - -// The BACKSPACE key. -Back - -// The TAB key. -Tab - -// The LINEFEED key. -LineFeed - -// The CLEAR key. -Clear - -// The RETURN key. -Return - -// The ENTER key. -Enter - -// The SHIFT key. -ShiftKey - -// The CTRL key. -ControlKey - -// The ALT key. -Menu - -// The PAUSE key. -Pause - -// The CAPS LOCK key. -Capital - -// The CAPS LOCK key. -CapsLock - -// The IME Kana mode key. -KanaMode - -// The IME Hanguel mode key. (maintained for compatibility; use HangulMode). -HanguelMode - -// The IME Hangul mode key. -HangulMode - -// The IME Junja mode key. -JunjaMode - -// The IME final mode key. -FinalMode - -// The IME Hanja mode key. -HanjaMode - -// The IME Kanji mode key. -KanjiMode - -// The ESC key. -Escape - -// The IME convert key. -IMEConvert - -// The IME nonconvert key. -IMENonconvert - -// The IME accept key, replaces System.Windows.Forms.Keys.IMEAceept. -IMEAccept - -// The IME accept key. Obsolete, use System.Windows.Forms.Keys.IMEAccept instead. -IMEAceept - -// The IME mode change key. -IMEModeChange - -// The SPACEBAR key. -Space - -// The PAGE UP key. -Prior - -// The PAGE UP key. -PageUp - -// The PAGE DOWN key. -Next - -// The PAGE DOWN key. -PageDown - -// The END key. -End - -// The HOME key. -Home - -// The LEFT ARROW key. -Left - -// The UP ARROW key. -Up - -// The RIGHT ARROW key. -Right - -// The DOWN ARROW key. -Down - -// The SELECT key. -Select - -// The PRINT key. -Print - -// The EXECUTE key. -Execute - -// The PRINT SCREEN key. -Snapshot - -// The PRINT SCREEN key. -PrintScreen - -// The INS key. -Insert - -// The DEL key. -Delete - -// The HELP key. -Help - -// The 0 key. -D0 - -// The 1 key. -D1 - -// The 2 key. -D2 - -// The 3 key. -D3 - -// The 4 key. -D4 - -// The 5 key. -D5 - -// The 6 key. -D6 - -// The 7 key. -D7 - -// The 8 key. -D8 - -// The 9 key. -D9 - -// The A key. -A - -// The B key. -B - -// The C key. -C - -// The D key. -D - -// The E key. -E - -// The F key. -F - -// The G key. -G - -// The H key. -H - -// The I key. -I - -// The J key. -J - -// The K key. -K - -// The L key. -L - -// The M key. -M - -// The N key. -N - -// The O key. -O - -// The P key. -P - -// The Q key. -Q - -// The R key. -R - -// The S key. -S - -// The T key. -T - -// The U key. -U - -// The V key. -V - -// The W key. -W - -// The X key. -X - -// The Y key. -Y - -// The Z key. -Z - -// The left Windows logo key (Microsoft Natural Keyboard). -LWin - -// The right Windows logo key (Microsoft Natural Keyboard). -RWin - -// The application key (Microsoft Natural Keyboard). -Apps - -// The computer sleep key. -Sleep - -// The 0 key on the numeric keypad. -NumPad0 - -// The 1 key on the numeric keypad. -NumPad1 - -// The 2 key on the numeric keypad. -NumPad2 - -// The 3 key on the numeric keypad. -NumPad3 - -// The 4 key on the numeric keypad. -NumPad4 - -// The 5 key on the numeric keypad. -NumPad5 - -// The 6 key on the numeric keypad. -NumPad6 - -// The 7 key on the numeric keypad. -NumPad7 - -// The 8 key on the numeric keypad. -NumPad8 - -// The 9 key on the numeric keypad. -NumPad9 - -// The multiply key. -Multiply - -// The add key. -Add - -// The separator key. -Separator - -// The subtract key. -Subtract - -// The decimal key. -Decimal - -// The divide key. -Divide - -// The F1 key. -F1 - -// The F2 key. -F2 - -// The F3 key. -F3 - -// The F4 key. -F4 - -// The F5 key. -F5 - -// The F6 key. -F6 - -// The F7 key. -F7 - -// The F8 key. -F8 - -// The F9 key. -F9 - -// The F10 key. -F10 - -// The F11 key. -F11 - -// The F12 key. -F12 - -// The F13 key. -F13 - -// The F14 key. -F14 - -// The F15 key. -F15 - -// The F16 key. -F16 - -// The F17 key. -F17 - -// The F18 key. -F18 - -// The F19 key. -F19 - -// The F20 key. -F20 - -// The F21 key. -F21 - -// The F22 key. -F22 - -// The F23 key. -F23 - -// The F24 key. -F24 - -// The NUM LOCK key. -NumLock - -// The SCROLL LOCK key. -Scroll - -// The left SHIFT key. -LShiftKey - -// The right SHIFT key. -RShiftKey - -// The left CTRL key. -LControlKey - -// The right CTRL key. -RControlKey - -// The left ALT key. -LMenu - -// The right ALT key. -RMenu - -// The browser back key (Windows 2000 or later). -BrowserBack - -// The browser forward key (Windows 2000 or later). -BrowserForward - -// The browser refresh key (Windows 2000 or later). -BrowserRefresh - -// The browser stop key (Windows 2000 or later). -BrowserStop - -// The browser search key (Windows 2000 or later). -BrowserSearch - -// The browser favorites key (Windows 2000 or later). -BrowserFavorites - -// The browser home key (Windows 2000 or later). -BrowserHome - -// The volume mute key (Windows 2000 or later). -VolumeMute - -// The volume down key (Windows 2000 or later). -VolumeDown - -// The volume up key (Windows 2000 or later). -VolumeUp - -// The media next track key (Windows 2000 or later). -MediaNextTrack - -// The media previous track key (Windows 2000 or later). -MediaPreviousTrack - -// The media Stop key (Windows 2000 or later). -MediaStop - -// The media play pause key (Windows 2000 or later). -MediaPlayPause - -// The launch mail key (Windows 2000 or later). -LaunchMail - -// The select media key (Windows 2000 or later). -SelectMedia - -// The start application one key (Windows 2000 or later). -LaunchApplication1 - -// The start application two key (Windows 2000 or later). -LaunchApplication2 - -// The OEM Semicolon key on a US standard keyboard (Windows 2000 or later). -OemSemicolon - -// The OEM 1 key. -Oem1 - -// The OEM plus key on any country/region keyboard (Windows 2000 or later). -Oemplus - -// The OEM comma key on any country/region keyboard (Windows 2000 or later). -Oemcomma - -// The OEM minus key on any country/region keyboard (Windows 2000 or later). -OemMinus - -// The OEM period key on any country/region keyboard (Windows 2000 or later). -OemPeriod - -// The OEM question mark key on a US standard keyboard (Windows 2000 or later). -OemQuestion - -// The OEM 2 key. -Oem2 - -// The OEM tilde key on a US standard keyboard (Windows 2000 or later). -Oemtilde - -// The OEM 3 key. -Oem3 - -// The OEM open bracket key on a US standard keyboard (Windows 2000 or later). -OemOpenBrackets - -// The OEM 4 key. -Oem4 - -// The OEM pipe key on a US standard keyboard (Windows 2000 or later). -OemPipe - -// The OEM 5 key. -Oem5 - -// The OEM close bracket key on a US standard keyboard (Windows 2000 or later). -OemCloseBrackets - -// The OEM 6 key. -Oem6 - -// The OEM singled/double quote key on a US standard keyboard (Windows 2000 or later). -OemQuotes - -// The OEM 7 key. -Oem7 - -// The OEM 8 key. -Oem8 - -// The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows 2000. -// or later). -OemBackslash - -// The OEM 102 key. -Oem102 - -// The PROCESS KEY key. -ProcessKey - -// Used to pass Unicode characters as if they were keystrokes. The Packet key value. -// is the low word of a 32-bit virtual-key value used for non-keyboard input methods. -Packet - -// The ATTN key. -Attn - -// The CRSEL key. -Crsel - -// The EXSEL key. -Exsel - -// The ERASE EOF key. -EraseEof - -// The PLAY key. -Play - -// The ZOOM key. -Zoom - -// A constant reserved for future use. -NoName - -// The PA1 key. -Pa1 - -// The CLEAR key. -OemClear - -// The SHIFT modifier key. -Shift - -// The CTRL modifier key. -Control - -// The ALT modifier key. -Alt +# Hot Keys + +Configures the keys used to open and close an app. + +Hot keys are supported on a global basis, and per app. +Multiple hot keys are supported, with an optional modifier. + +## Global +```json +{ + "HotKeys": [ + // Tilde, without modifiers + { "Key": "OemTilde" }, + + // Ctrl + Q + { "Modifiers": "Control", "Key": "Q" }, + + // Multiple modifiers + { "Modifiers": "Control,Shift", "Key": "W" } + ] +} +``` + +## Per App +```json +{ + "Apps": [ + { + "Name": "Terminal", + + "HotKeys": [ + // Ctrl + 1 + { "Modifiers": "Control", "Key": "1" } + ] + }, + { + "Name": "File Browser", + + "HotKeys": [ + // Ctrl + 2 + { "Modifiers": "Control", "Key": "2" } + ] + } + ] +} +``` + +## Windows Key + Tilde as a Hot Key + +When using the Windows key + tilde as a hot key, while toggling Windows Terminal, the default shortcut for Windows Terminal's own Quake mode may interfere. + +You can turn off the built-in Quake mode, by unmapping the key: + +![WT Hot Key](../../assets/img/wt-hotkey.png) + +## F12 as a Hot Key + +When using "F12" as a hotkey, it may be necessary to disable the key as a shortcut for the system-wide debugger first. + +Since F12 is the default for the debugger, it won't respond when used in another app, such as Windows Terminal Quake, or ConEmu. + +This can be done by changing the registry key at: + +``` +Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\UserDebuggerHotKey +``` + +This key defaults to ```0```, which means ```F12```. + +As pointed out by the ConEmu docs, it can for example be changed to the "Pause"-key (value ```13```). + +A reboot may also be required, after which F12 can be used as a hotkey for toggling. + +Thanks to [Luca](https://github.com/lpuglia) for pointing this out on GitHub. + +See also: + +- [MSDN docs](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey?redirectedfrom=MSDN). + +- [ConEmu explanation](https://conemu.github.io/en/GlobalHotKeys.html#Using_F12_as_global_hotkey) + +## Key Modifiers +- Alt +- Control +- Shift +- Super + +## Keys + +```json +// The bitmask to extract a key code from a key value. +KeyCode + +// The bitmask to extract modifiers from a key value. +Modifiers + +// No key pressed. +None + +// The left mouse button. +LButton + +// The right mouse button. +RButton + +// The CANCEL key. +Cancel + +// The middle mouse button (three-button mouse). +MButton + +// The first x mouse button (five-button mouse). +XButton1 + +// The second x mouse button (five-button mouse). +XButton2 + +// The BACKSPACE key. +Back + +// The TAB key. +Tab + +// The LINEFEED key. +LineFeed + +// The CLEAR key. +Clear + +// The RETURN key. +Return + +// The ENTER key. +Enter + +// The SHIFT key. +ShiftKey + +// The CTRL key. +ControlKey + +// The ALT key. +Menu + +// The PAUSE key. +Pause + +// The CAPS LOCK key. +Capital + +// The CAPS LOCK key. +CapsLock + +// The IME Kana mode key. +KanaMode + +// The IME Hanguel mode key. (maintained for compatibility; use HangulMode). +HanguelMode + +// The IME Hangul mode key. +HangulMode + +// The IME Junja mode key. +JunjaMode + +// The IME final mode key. +FinalMode + +// The IME Hanja mode key. +HanjaMode + +// The IME Kanji mode key. +KanjiMode + +// The ESC key. +Escape + +// The IME convert key. +IMEConvert + +// The IME nonconvert key. +IMENonconvert + +// The IME accept key, replaces System.Windows.Forms.Keys.IMEAceept. +IMEAccept + +// The IME accept key. Obsolete, use System.Windows.Forms.Keys.IMEAccept instead. +IMEAceept + +// The IME mode change key. +IMEModeChange + +// The SPACEBAR key. +Space + +// The PAGE UP key. +Prior + +// The PAGE UP key. +PageUp + +// The PAGE DOWN key. +Next + +// The PAGE DOWN key. +PageDown + +// The END key. +End + +// The HOME key. +Home + +// The LEFT ARROW key. +Left + +// The UP ARROW key. +Up + +// The RIGHT ARROW key. +Right + +// The DOWN ARROW key. +Down + +// The SELECT key. +Select + +// The PRINT key. +Print + +// The EXECUTE key. +Execute + +// The PRINT SCREEN key. +Snapshot + +// The PRINT SCREEN key. +PrintScreen + +// The INS key. +Insert + +// The DEL key. +Delete + +// The HELP key. +Help + +// The 0 key. +D0 + +// The 1 key. +D1 + +// The 2 key. +D2 + +// The 3 key. +D3 + +// The 4 key. +D4 + +// The 5 key. +D5 + +// The 6 key. +D6 + +// The 7 key. +D7 + +// The 8 key. +D8 + +// The 9 key. +D9 + +// The A key. +A + +// The B key. +B + +// The C key. +C + +// The D key. +D + +// The E key. +E + +// The F key. +F + +// The G key. +G + +// The H key. +H + +// The I key. +I + +// The J key. +J + +// The K key. +K + +// The L key. +L + +// The M key. +M + +// The N key. +N + +// The O key. +O + +// The P key. +P + +// The Q key. +Q + +// The R key. +R + +// The S key. +S + +// The T key. +T + +// The U key. +U + +// The V key. +V + +// The W key. +W + +// The X key. +X + +// The Y key. +Y + +// The Z key. +Z + +// The left Windows logo key (Microsoft Natural Keyboard). +LWin + +// The right Windows logo key (Microsoft Natural Keyboard). +RWin + +// The application key (Microsoft Natural Keyboard). +Apps + +// The computer sleep key. +Sleep + +// The 0 key on the numeric keypad. +NumPad0 + +// The 1 key on the numeric keypad. +NumPad1 + +// The 2 key on the numeric keypad. +NumPad2 + +// The 3 key on the numeric keypad. +NumPad3 + +// The 4 key on the numeric keypad. +NumPad4 + +// The 5 key on the numeric keypad. +NumPad5 + +// The 6 key on the numeric keypad. +NumPad6 + +// The 7 key on the numeric keypad. +NumPad7 + +// The 8 key on the numeric keypad. +NumPad8 + +// The 9 key on the numeric keypad. +NumPad9 + +// The multiply key. +Multiply + +// The add key. +Add + +// The separator key. +Separator + +// The subtract key. +Subtract + +// The decimal key. +Decimal + +// The divide key. +Divide + +// The F1 key. +F1 + +// The F2 key. +F2 + +// The F3 key. +F3 + +// The F4 key. +F4 + +// The F5 key. +F5 + +// The F6 key. +F6 + +// The F7 key. +F7 + +// The F8 key. +F8 + +// The F9 key. +F9 + +// The F10 key. +F10 + +// The F11 key. +F11 + +// The F12 key. +F12 + +// The F13 key. +F13 + +// The F14 key. +F14 + +// The F15 key. +F15 + +// The F16 key. +F16 + +// The F17 key. +F17 + +// The F18 key. +F18 + +// The F19 key. +F19 + +// The F20 key. +F20 + +// The F21 key. +F21 + +// The F22 key. +F22 + +// The F23 key. +F23 + +// The F24 key. +F24 + +// The NUM LOCK key. +NumLock + +// The SCROLL LOCK key. +Scroll + +// The left SHIFT key. +LShiftKey + +// The right SHIFT key. +RShiftKey + +// The left CTRL key. +LControlKey + +// The right CTRL key. +RControlKey + +// The left ALT key. +LMenu + +// The right ALT key. +RMenu + +// The browser back key (Windows 2000 or later). +BrowserBack + +// The browser forward key (Windows 2000 or later). +BrowserForward + +// The browser refresh key (Windows 2000 or later). +BrowserRefresh + +// The browser stop key (Windows 2000 or later). +BrowserStop + +// The browser search key (Windows 2000 or later). +BrowserSearch + +// The browser favorites key (Windows 2000 or later). +BrowserFavorites + +// The browser home key (Windows 2000 or later). +BrowserHome + +// The volume mute key (Windows 2000 or later). +VolumeMute + +// The volume down key (Windows 2000 or later). +VolumeDown + +// The volume up key (Windows 2000 or later). +VolumeUp + +// The media next track key (Windows 2000 or later). +MediaNextTrack + +// The media previous track key (Windows 2000 or later). +MediaPreviousTrack + +// The media Stop key (Windows 2000 or later). +MediaStop + +// The media play pause key (Windows 2000 or later). +MediaPlayPause + +// The launch mail key (Windows 2000 or later). +LaunchMail + +// The select media key (Windows 2000 or later). +SelectMedia + +// The start application one key (Windows 2000 or later). +LaunchApplication1 + +// The start application two key (Windows 2000 or later). +LaunchApplication2 + +// The OEM Semicolon key on a US standard keyboard (Windows 2000 or later). +OemSemicolon + +// The OEM 1 key. +Oem1 + +// The OEM plus key on any country/region keyboard (Windows 2000 or later). +Oemplus + +// The OEM comma key on any country/region keyboard (Windows 2000 or later). +Oemcomma + +// The OEM minus key on any country/region keyboard (Windows 2000 or later). +OemMinus + +// The OEM period key on any country/region keyboard (Windows 2000 or later). +OemPeriod + +// The OEM question mark key on a US standard keyboard (Windows 2000 or later). +OemQuestion + +// The OEM 2 key. +Oem2 + +// The OEM tilde key on a US standard keyboard (Windows 2000 or later). +Oemtilde + +// The OEM 3 key. +Oem3 + +// The OEM open bracket key on a US standard keyboard (Windows 2000 or later). +OemOpenBrackets + +// The OEM 4 key. +Oem4 + +// The OEM pipe key on a US standard keyboard (Windows 2000 or later). +OemPipe + +// The OEM 5 key. +Oem5 + +// The OEM close bracket key on a US standard keyboard (Windows 2000 or later). +OemCloseBrackets + +// The OEM 6 key. +Oem6 + +// The OEM singled/double quote key on a US standard keyboard (Windows 2000 or later). +OemQuotes + +// The OEM 7 key. +Oem7 + +// The OEM 8 key. +Oem8 + +// The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows 2000. +// or later). +OemBackslash + +// The OEM 102 key. +Oem102 + +// The PROCESS KEY key. +ProcessKey + +// Used to pass Unicode characters as if they were keystrokes. The Packet key value. +// is the low word of a 32-bit virtual-key value used for non-keyboard input methods. +Packet + +// The ATTN key. +Attn + +// The CRSEL key. +Crsel + +// The EXSEL key. +Exsel + +// The ERASE EOF key. +EraseEof + +// The PLAY key. +Play + +// The ZOOM key. +Zoom + +// A constant reserved for future use. +NoName + +// The PA1 key. +Pa1 + +// The CLEAR key. +OemClear + +// The SHIFT modifier key. +Shift + +// The CTRL modifier key. +Control + +// The ALT modifier key. +Alt ``` \ No newline at end of file diff --git a/src/wtq.schema.2.json b/schema/wtq.schema.2.json similarity index 90% rename from src/wtq.schema.2.json rename to schema/wtq.schema.2.json index d5c4897..9075c7b 100644 --- a/src/wtq.schema.2.json +++ b/schema/wtq.schema.2.json @@ -8,12 +8,12 @@ "AttachMode": { "title": "Attach mode", "description": "How WTQ attempts to attach to a process to toggle.", - // "enum": [ "FindOrCreate", "Find", "Create" ], + "default": "FindOrStart", "oneOf": [ { "const": "Find", "description": "Only look for an existing process, don't create a new one." }, { "const": "FindOrStart", "description": "Looks for an existing process first, and creates one if none was found." }, - { "const": "Manual", "description": "" }, + { "const": "Manual", "description": "TODO" }, { "const": "Start", "description": "Always create a new process." } ] }, @@ -75,7 +75,25 @@ }, "HotKeys": { - "items": { "$ref": "#/$defs/HotKey" } + "title": "HotKeys", + "description": "Keys or key combinations which toggle this app only.", + "type": "array", + "default": [], + "examples": [ + [ + { "Key": "D1" } + ], + [ + { "Modifiers": "Control", "Key": "D1" } + ], + [ + { "Modifiers": "Control,Shift", "Key": "D1" }, + { "Modifiers": "Alt,Shift", "Key": "D1" } + ] + ], + "items": { + "$ref": "#/$defs/HotKey" + } }, "MonitorIndex": { "title": "", diff --git a/src/build.sh b/src/build.sh old mode 100644 new mode 100755 index 2d168ee..da7ec36 --- a/src/build.sh +++ b/src/build.sh @@ -9,7 +9,7 @@ SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) # CONFIGURATION ########################################################################### -BUILD_PROJECT_FILE="$SCRIPT_DIR/01-Build/NukeBuild.csproj" +BUILD_PROJECT_FILE="$SCRIPT_DIR/01-Build/NukeBuild/NukeBuild.csproj" TEMP_DIRECTORY="$SCRIPT_DIR/.nuke/temp" DOTNET_GLOBAL_FILE="$SCRIPT_DIR/global.json" diff --git a/src/wtq.jsonc b/src/wtq.jsonc index 97cafba..f785319 100644 --- a/src/wtq.jsonc +++ b/src/wtq.jsonc @@ -1,44 +1,45 @@ -{ - // V2 WIP Discussion: https://github.com/flyingpie/windows-terminal-quake/discussions/119 - // Docs: https://flyingpie.github.io/windows-terminal-quake/ - // TODO: V2 Docs - // TODO: Schema - "$schema": "./wtq.schema.2.json", - - "Apps": [ - // Example with PowerShell - { - "Name": "PowerShell", - "HotKeys": [{ "Modifiers": "Control", "Key": "D1" }], - "FileName": "powershell" - } - - // Example with Windows Terminal - //{ - // "Name": "Terminal", - // "HotKeys": [{ "Modifiers": "Control", "Key": "D1" }], - // "FileName": "wt", - // "ProcessName": "WindowsTerminal" - //} - ], - - // Hot keys that toggle the most recent app (or the first one if none has been active yet). - "HotKeys": [ { "Modifiers": "Control", "Key": "Q" } ], - - // What monitor to preferably drop the terminal. - // "WithCursor" (default), "Primary" or "AtIndex". - // Can be overridden per app. - "PreferMonitor": "WithCursor", - - // If "PreferMonitor" is set to "AtIndex", this setting determines what monitor to choose. - // Zero based, eg. 0, 1, etc. - // Defaults to "0". - // Can be overridden per app. - "MonitorIndex": 0, - - // Horizontal screen coverage, as a percentage (defaults to 95). - "HorizontalScreenCoverage": 95, - - // Vertical screen coverage, as a percentage (defaults to 95). - "VerticalScreenCoverage": 95 +{ + // V2 WIP Discussion: https://github.com/flyingpie/windows-terminal-quake/discussions/119 + // Docs: https://wtq.flyingpie.nl + "$schema": "../schema/wtq.schema.2.json", + + "Apps": [ + // Example with PowerShell + { + "Name": "PowerShell", + "HotKeys": [{ "Modifiers": "Control", "Key": "D1" }], + "FileName": "powershell" + }, + { + "AttachMode": "Find" + } + + // Example with Windows Terminal + //{ + // "Name": "Terminal", + // "HotKeys": [{ "Modifiers": "Control", "Key": "D1" }], + // "FileName": "wt", + // "ProcessName": "WindowsTerminal" + //} + ], + + // Hot keys that toggle the most recent app (or the first one if none has been active yet). + "HotKeys": [ { "Modifiers": "Control", "Key": "Q" } ], + + // What monitor to preferably drop the terminal. + // "WithCursor" (default), "Primary" or "AtIndex". + // Can be overridden per app. + "PreferMonitor": "WithCursor", + + // If "PreferMonitor" is set to "AtIndex", this setting determines what monitor to choose. + // Zero based, eg. 0, 1, etc. + // Defaults to "0". + // Can be overridden per app. + "MonitorIndex": 0, + + // Horizontal screen coverage, as a percentage (defaults to 95). + "HorizontalScreenCoverage": 95, + + // Vertical screen coverage, as a percentage (defaults to 95). + "VerticalScreenCoverage": 95 } \ No newline at end of file