diff --git a/build.cake b/build.cake index 5dca753..fe078e6 100644 --- a/build.cake +++ b/build.cake @@ -3,7 +3,7 @@ var configuration = Argument("configuration", "Release"); var output = Argument("output", "artifacts"); -var version = Argument("version", "v0.6"); +var version = Argument("version", "v0.7"); var sln = "windows-terminal-quake.sln"; var bin = "./windows-terminal-quake/bin"; diff --git a/windows-terminal-quake/Settings.cs b/windows-terminal-quake/Settings.cs index 28e400a..c436b0c 100644 --- a/windows-terminal-quake/Settings.cs +++ b/windows-terminal-quake/Settings.cs @@ -111,11 +111,7 @@ public static void Reload(bool notify) public class SettingsDto { - public List Hotkeys { get; set; } = new List() - { - new Hotkey() { Modifiers = KeyModifiers.Control, Key = Keys.Oemtilde }, - new Hotkey() { Modifiers = KeyModifiers.Control, Key = Keys.Q } - }; + public List Hotkeys { get; set; } public bool Notifications { get; set; } = true; diff --git a/windows-terminal-quake/windows-terminal-quake.json b/windows-terminal-quake/windows-terminal-quake.json index 52a851f..ad0c3dc 100644 --- a/windows-terminal-quake/windows-terminal-quake.json +++ b/windows-terminal-quake/windows-terminal-quake.json @@ -1,5 +1,6 @@ { - // The keys that can be used to toggle the terminal + // The keys that can be used to toggle the terminal. + // See "HotKeys" bellow for possible values. "HotKeys": [ { "Modifiers": "Control", @@ -11,88 +12,53 @@ } ], - // Whether to show notifications when the app starts and when the settings are reloaded + // Whether to show notifications when the app starts and when the settings are reloaded. "Notifications": true, - // Make the window see-through (applies to the entire window, including the title bar) + // Make the window see-through (applies to the entire window, including the title bar). // 0 (invisible) - 100 (opaque) "Opacity": 80, - // How long the toggle up/down takes in milliseconds + // How long the toggle up/down takes in milliseconds. "ToggleDurationMs": 250, - // How far the terminal should come down, in percentage (eg. 50 = half way, 100 = full screen) + // How far the terminal should come down, in percentage (eg. 50 = half way, 100 = full screen). "VerticalScreenCoverage": 100, // How much horizontal space the terminal should use. When this is below 100, the terminal is centered. // This can also be above 100, which can be useful to compensate for the window not always taking a 100% of the screen width, // due to the terminal being bound to column widths (eg. try 100.5 or 101). - "HorizontalScreenCoverage": 100 + "HorizontalScreenCoverage": 100, - // HotKeys.Modifiers: - // Alt, Control, Shift, Windows - // HotKeys.Key: + // When clicking or alt-tabbing away to another app, the terminal will automatically (and instantly) hide. + "HideOnFocusLost": true - // // Special keys - // Alt - // Back - // CapsLock - // Control - // Escape - // LControlKey - // LShiftKey - // LWin - // RControlKey - // RShiftKey - // RWin - // Shift - // Space - // Tab + // # HotKeys + // ## Modifiers + // Alt, Control, Shift, Windows // - // // Middle part of the keyboard - // Delete - // End - // Home - // Insert - // PageDown - // PageUp - // PrintScreen + // ## Key + // ### Special keys + // Alt, Back, CapsLock, Control, Escape, LControlKey, LShiftKey, LWin, RControlKey, RShiftKey, RWin, Shift, Space, Tab // - // Down - // Left - // Right - // Up + // ### Middle part of the keyboard + // Delete, End, Home, Insert, PageDown, PageUp, PrintScreen + // Down, Left, Right, Up // - // // Number keys + // ### Number keys // D0 - D9 // - // // Letters + // ### Letters // A-Z // - // // Numpad + // ### Numpad // NumPad0 - NumPad9 - // Add - // Decimal - // Divide - // Multiply - // NumLock - // Separator - // Subtract + // Add, Decimal, Divide, Multiply, NumLock, Separator, Subtract // - // // Function keys + // ### Function keys // F1 - F24 // - // // Special characters - // OemBackslash - // OemCloseBrackets - // Oemcomma - // OemMinus - // OemOpenBrackets - // OemPeriod - // OemPipe - // Oemplus - // OemQuestion - // OemQuotes - // OemSemicolon - // Oemtilde + // ### Special characters + // OemBackslash, OemCloseBrackets, Oemcomma, OemMinus, OemOpenBrackets, + // OemPeriod, OemPipe, Oemplus, OemQuestion, OemQuotes, OemSemicolon, Oemtilde } \ No newline at end of file