diff options
author | breadcat | 2013-08-17 15:26:55 +0100 |
---|---|---|
committer | breadcat | 2013-08-17 15:26:55 +0100 |
commit | f0301194a401d85a861aa80a4889ec3de063e324 (patch) | |
tree | 0f7127ecc1c40c574967d34ffb968d0f001425fe /index.ahk | |
parent | 69016b062479d12529a325d4108bc9f704848925 (diff) | |
download | ahka-f0301194a401d85a861aa80a4889ec3de063e324.tar.gz ahka-f0301194a401d85a861aa80a4889ec3de063e324.tar.bz2 ahka-f0301194a401d85a861aa80a4889ec3de063e324.zip |
Cleanup, comments, restore Win7 specific code
Removed some legacy or broken code
Added comments to some environment setup
Added back Win7 specific code due to OS detection not being passed to
hotkeys
Diffstat (limited to 'index.ahk')
-rw-r--r-- | index.ahk | 29 |
1 files changed, 15 insertions, 14 deletions
@@ -1,14 +1,11 @@ -; ^ctrl #Win !Alt +Shift +; ^ctrl #win !alt +shift ;environment #NoEnv #SingleInstance,Force -ws_MinHeight = 25 -SetWinDelay, -1 -SetBatchLines, -1 -if A_OSVersion in WIN_NT4,WIN_95,WIN_98,WIN_ME,WIN_XP { -SetWorkingDir, %A_MyDocuments% } Else { -SetWorkingDir, C:\Users\%A_UserName% } +SetWinDelay, -1 ;don't delay window opening +SetBatchLines, -1 ;run script as fast as possible +SetWorkingDir, C:\Users\%A_UserName% ;keystates SetCapsLockState, AlwaysOff @@ -18,12 +15,16 @@ SetNumLockState, AlwaysOn ;hotkeys #q::Run notepad ^q::Send {ALTDOWN}{F4}{ALTUP} ;quit most programs +^!q::Run "AppData\Local\Chromium\User Data\Default\User StyleSheets\Custom.css" ;chrome global css #w::Run "C:\Program Files (x86)\Chromium\chrome.exe" #+w::Run "C:\Program Files (x86)\Chromium\chrome.exe" -incognito +#e::Run explorer C:\Users\%A_UserName%\Downloads ;won't work with relative paths, has to be absolute +#+e::Run explorer C:\Users\%A_UserName%\Dropbox ;won't work with relative paths, has to be absolute +^!e::Run ::{20d04fe0-3aea-1069-a2d8-08002b30309d} ;my computer ^!r::Run mstsc ;remote desktop connection #t::Run C:\cygwin\bin\mintty.exe - #+t::Run cmd -#u::return +#p::Run "Dropbox\conf\putty.exe" #c::Run calc #\::SendMessage 0x112, 0xF170, 2, , Program Manager ;win+\ - screen standby RAlt & j::ShiftAltTab @@ -45,8 +46,8 @@ XButton2::Send {MButton} ;wheel click ::(tm)::™ ;change screen res (resswitch.exe - http://www.naughter.com/qres.html) -^!+UP::run "%A_ScriptDir%\resswitch.exe" /WIDTH:1920 /HEIGHT:1080 -^!+DOWN::run "%A_ScriptDir%\resswitch.exe" /WIDTH:1280 /HEIGHT:720 +^!+UP::run %A_ScriptDir%\resswitch.exe /WIDTH:1920 /HEIGHT:1080 +^!+DOWN::run %A_ScriptDir%\resswitch.exe /WIDTH:1280 /HEIGHT:720 ;date/time insertion #space:: @@ -66,7 +67,7 @@ Insert:: return ;includes -#Include, %A_ScriptDir%\appspecific.ahk -#Include, %A_ScriptDir%\tiling.ahk -#Include, %A_ScriptDir%\mousewin.ahk -#Include, %A_ScriptDir%\secret.ahk ;os specific, contains personally identifiable data. +#Include, %A_ScriptDir%\appspecific.ahk ;application specific hotkeys +#Include, %A_ScriptDir%\tiling.ahk ;win+numpad tiling +#Include, %A_ScriptDir%\mousewin.ahk ;control windows like kde does +#Include, %A_ScriptDir%\secret.ahk ;personally identifiable data |