Skip to content

Instantly share code, notes, and snippets.

@hyeomans
Forked from program247365/QuakeConsole.ahk
Last active August 29, 2015 13:59
Show Gist options
  • Save hyeomans/10552428 to your computer and use it in GitHub Desktop.
Save hyeomans/10552428 to your computer and use it in GitHub Desktop.

#My Settings File for Console 2, and the AutHotKey Script

##Instructions

  1. Place the console.xml file in C:\Users<USERNAME>\AppData\Roaming\Console once you've checked "Save Settings to user directory" in Console's Settings screen. Restart Console 2. Boom.

  2. Set QuakeConsole.ahk (must install AutoHotKey for this script to work) and Console2 to launch at startup

<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="22" columns="174" buffer_rows="500" buffer_columns="0" shell="" init_dir="C:\Code\GIT-TFS" start_hidden="0" save_size="1">
<colors>
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>
<color id="6" r="128" g="128" b="0"/>
<color id="7" r="192" g="192" b="192"/>
<color id="8" r="128" g="128" b="128"/>
<color id="9" r="0" g="100" b="255"/>
<color id="10" r="0" g="255" b="0"/>
<color id="11" r="0" g="255" b="255"/>
<color id="12" r="255" g="50" b="50"/>
<color id="13" r="255" g="0" b="255"/>
<color id="14" r="255" g="255" b="0"/>
<color id="15" r="255" g="255" b="255"/>
</colors>
</console>
<appearance>
<font name="Consolas" size="11" bold="0" italic="0" smoothing="0">
<color use="1" r="0" g="255" b="0"/>
</font>
<window title="Console" icon="" use_tab_icon="1" use_console_title="1" show_cmd="1" show_cmd_tabs="1" use_tab_title="1" trim_tab_titles="20" trim_tab_titles_right="0"/>
<controls show_menu="0" show_toolbar="0" show_statusbar="0" show_tabs="0" hide_single_tab="1" show_scrollbars="0" flat_scrollbars="0" tabs_on_bottom="0"/>
<styles caption="0" resizable="1" taskbar_button="0" border="0" inside_border="0" tray_icon="0">
<selection_color r="255" g="255" b="255"/>
</styles>
<position x="-8" y="0" dock="0" snap="0" z_order="1" save_position="1"/>
<transparency type="1" active_alpha="242" inactive_alpha="255" r="0" g="0" b="0"/>
</appearance>
<behavior>
<copy_paste copy_on_select="0" clear_on_copy="1" no_wrap="1" trim_spaces="1" copy_newline_char="0" sensitive_copy="1"/>
<scroll page_scroll_rows="0"/>
<tab_highlight flashes="3" stay_highligted="1"/>
</behavior>
<hotkeys use_scroll_lock="1">
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="83" command="settings"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="112" command="help"/>
<hotkey ctrl="0" shift="0" alt="1" extended="0" code="115" command="exit"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="112" command="newtab1"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="113" command="newtab2"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="114" command="newtab3"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="115" command="newtab4"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="116" command="newtab5"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="117" command="newtab6"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="118" command="newtab7"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="119" command="newtab8"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="120" command="newtab9"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="121" command="newtab10"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="49" command="switchtab1"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="50" command="switchtab2"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="51" command="switchtab3"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="52" command="switchtab4"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="53" command="switchtab5"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="54" command="switchtab6"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="55" command="switchtab7"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="56" command="switchtab8"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="57" command="switchtab9"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="48" command="switchtab10"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="9" command="nexttab"/>
<hotkey ctrl="1" shift="1" alt="0" extended="0" code="9" command="prevtab"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="87" command="closetab"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="82" command="renametab"/>
<hotkey ctrl="1" shift="0" alt="0" extended="1" code="45" command="copy"/>
<hotkey ctrl="1" shift="0" alt="0" extended="1" code="46" command="clear_selection"/>
<hotkey ctrl="0" shift="1" alt="0" extended="1" code="45" command="paste"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="stopscroll"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollrowup"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollrowdown"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageup"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpagedown"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollcolleft"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollcolright"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageleft"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageright"/>
<hotkey ctrl="1" shift="1" alt="0" extended="0" code="112" command="dumpbuffer"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="activate"/>
</hotkeys>
<mouse>
<actions>
<action ctrl="0" shift="0" alt="0" button="1" name="copy"/>
<action ctrl="0" shift="1" alt="0" button="1" name="select"/>
<action ctrl="0" shift="0" alt="0" button="3" name="paste"/>
<action ctrl="1" shift="0" alt="0" button="1" name="drag"/>
<action ctrl="0" shift="0" alt="0" button="2" name="menu"/>
</actions>
</mouse>
<tabs>
<tab title="Console2" use_default_icon="0">
<console shell="C:\Windows\SysWOW64\cmd.exe /c &quot;&quot;C:\Program Files (x86)\Git\bin\sh.exe&quot; --login -i&quot;" init_dir="C:\Code\GIT-TFS" run_as_user="0" user=""/>
<cursor style="0" r="255" g="255" b="255"/>
<background type="0" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="0" r="0" g="0" b="0"/>
</image>
</background>
</tab>
<tab title="VS" use_default_icon="0">
<console shell="%comspec% /k &quot;&quot;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat&quot;&quot; x86" init_dir="C:\Code\GIT-TFS" run_as_user="0" user=""/>
<cursor style="0" r="255" g="255" b="255"/>
<background type="0" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="0" r="0" g="0" b="0"/>
</image>
</background>
</tab>
</tabs>
</settings>
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="25" columns="100" buffer_rows="500" buffer_columns="0" shell="" init_dir="C:\development" save_size="0" start_hidden="0" background_text_opacity="255">
<colors>
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>
<color id="6" r="128" g="128" b="0"/>
<color id="7" r="192" g="192" b="192"/>
<color id="8" r="128" g="128" b="128"/>
<color id="9" r="0" g="100" b="255"/>
<color id="10" r="0" g="255" b="0"/>
<color id="11" r="0" g="255" b="255"/>
<color id="12" r="255" g="50" b="50"/>
<color id="13" r="255" g="0" b="255"/>
<color id="14" r="255" g="255" b="0"/>
<color id="15" r="255" g="255" b="255"/>
</colors>
</console>
<appearance>
<font name="Hermit" size="13" bold="0" italic="0" smoothing="0" extra_width="0" bold_intensified="0" italic_intensified="0">
<color use="0" r="0" g="0" b="0"/>
</font>
<window title="Console" icon="" use_tab_icon="0" use_console_title="0" show_cmd="1" show_cmd_tabs="1" use_tab_title="0" trim_tab_titles="20" trim_tab_titles_right="0"/>
<controls show_menu="0" show_toolbar="0" show_statusbar="0" show_tabs="1" hide_single_tab="0" show_scrollbars="1" tabs_on_bottom="0" flat_scrollbars="0"/>
<styles caption="1" resizable="1" taskbar_button="1" border="1" inside_border="2" tray_icon="1" quake_like="0" jumplist="0">
<selection_color r="255" g="255" b="255"/>
</styles>
<position x="-1" y="-1" dock="-1" snap="0" z_order="0" save_position="0"/>
<transparency type="1" active_alpha="214" inactive_alpha="214" r="0" g="0" b="0"/>
<fullscreen start_in_fullscreen="0" fullscreen_monitor="0"/></appearance>
<behavior>
<copy_paste copy_on_select="1" clear_on_copy="0" no_wrap="1" trim_spaces="1" copy_newline_char="0" sensitive_copy="1" include_left_delimiter="0" include_right_delimiter="0" left_delimiters=" ([" right_delimiters=" )]"/>
<scroll page_scroll_rows="0"/>
<tab_highlight flashes="3" stay_highligted="1"/>
<close allow_closing_last_view="0" confirm_closing_multiple_views="1"/></behavior>
<hotkeys use_scroll_lock="1">
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="83" command="settings"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="112" command="help"/>
<hotkey ctrl="0" shift="0" alt="1" extended="0" code="115" command="exit"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="84" command="newtab1"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="113" command="newtab2"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="114" command="newtab3"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="115" command="newtab4"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="116" command="newtab5"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="117" command="newtab6"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="118" command="newtab7"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="119" command="newtab8"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="120" command="newtab9"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="121" command="newtab10"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="newtab11"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="newtab12"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="49" command="switchtab1"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="50" command="switchtab2"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="51" command="switchtab3"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="52" command="switchtab4"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="53" command="switchtab5"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="54" command="switchtab6"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="55" command="switchtab7"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="56" command="switchtab8"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="57" command="switchtab9"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="48" command="switchtab10"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="9" command="nexttab"/>
<hotkey ctrl="1" shift="1" alt="0" extended="0" code="9" command="prevtab"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="87" command="closetab"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="82" command="renametab"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="nextview"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="prevview"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="leftview"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="rightview"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="topview"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="bottomview"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="closeview"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="splithoriz"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="splitvert"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="fullscreen"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="zoom100"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="zoominc"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="zoomdec"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="groupall"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="ungroupall"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="grouptab"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="ungrouptab"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="67" command="copy"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="selectall"/>
<hotkey ctrl="1" shift="0" alt="0" extended="1" code="46" command="clear_selection"/>
<hotkey ctrl="1" shift="0" alt="0" extended="0" code="86" command="paste"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="stopscroll"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollrowup"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollrowdown"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageup"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpagedown"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollcolleft"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollcolright"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageleft"/>
<hotkey ctrl="0" shift="0" alt="0" extended="0" code="0" command="scrollpageright"/>
<hotkey ctrl="1" shift="1" alt="0" extended="0" code="112" command="dumpbuffer"/>
<hotkey ctrl="1" shift="1" alt="1" extended="0" code="32" command="activate" win="0"/>
</hotkeys>
<mouse>
<actions>
<action ctrl="0" shift="0" alt="0" button="1" name="copy"/>
<action ctrl="0" shift="1" alt="0" button="1" name="select"/>
<action ctrl="0" shift="0" alt="0" button="3" name="paste"/>
<action ctrl="1" shift="0" alt="0" button="1" name="drag"/>
<action ctrl="0" shift="0" alt="0" button="2" name="menu"/>
<action ctrl="0" shift="0" alt="0" button="0" name="menu2"/>
<action ctrl="0" shift="0" alt="0" button="0" name="menu3"/>
</actions>
</mouse>
<tabs>
<tab title="Powershell" use_default_icon="0">
<console shell="%SystemRoot%\sysWOW64\WindowsPowerShell\v1.0\powershell.exe" init_dir="" run_as_user="0" user="" net_only="0" run_as_admin="1"/>
<cursor style="0" r="255" g="255" b="255"/>
<background type="0" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="0" r="0" g="0" b="0"/>
</image>
</background>
</tab>
<tab title="Bash" icon="C:\Program Files (x86)\Git\etc\git.ico" use_default_icon="0">
<console shell="C:\windows\SysWOW64\cmd.exe /c &quot;&quot;C:\Program Files (x86)\Git\bin\sh.exe&quot; --login -i&quot;" init_dir="C:\development" run_as_user="0" user="" net_only="0" run_as_admin="0"/>
<cursor style="0" r="255" g="255" b="255"/>
<background type="0" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="0" r="0" g="0" b="0"/>
</image>
</background>
</tab>
<tab title="VS2012" icon="C:\Program Files (x86)\Microsoft Visual Studio 11.0\Setup\setup.ico" use_default_icon="0">
<console shell="%comspec% /k &quot;&quot;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat&quot;&quot; x86" init_dir="c:\development" run_as_user="0" user="" net_only="0" run_as_admin="1"/>
<cursor style="0" r="255" g="255" b="255"/>
<background type="0" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="0" r="0" g="0" b="0"/>
</image>
</background>
</tab>
<tab title="Vagrant" use_default_icon="0">
<console shell="%SystemRoot%\sysWOW64\WindowsPowerShell\v1.0\powershell.exe" init_dir="E:\VirtualBoxes\Vagrant\dev" run_as_user="0" user="" net_only="0" run_as_admin="0"/>
<cursor style="0" r="255" g="255" b="255"/>
<background type="0" r="0" g="0" b="0">
<image file="" relative="0" extend="0" position="0">
<tint opacity="0" r="0" g="0" b="0"/>
</image>
</background>
</tab>
</tabs>
</settings>
; Change your hotkey here
^1::
DetectHiddenWindows, on
IfWinExist ahk_class Console_2_Main
{
IfWinActive ahk_class Console_2_Main
{
WinHide ahk_clasas Console_2_Main
WinActivate ahk_class Shell_TrayWnd
}
else
{
WinShow ahk_class Console_2_Main
WinActivate ahk_class Console_2_Main
}
}
else
Run Console.exe
DetectHiddenWindows, off
return
; hide Console on "esc".
#IfWinActive ahk_class Console_2_Main
esc::
{
WinHide ahk_class Console_2_Main
WinActivate ahk_class Shell_TrayWnd
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment