this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Initial kinto commit + small nvim/windows fixes

+1219
+3
.config/yadm/alt/.gnupg/gpg-agent.conf##os.Msys
··· 1 + # Set TTL to 5 days for GPG passphrase prompt 2 + default-cache-ttl 432000 3 + max-cache-ttl 432000
+1
.config/yadm/alt/AppData/Local/nvim##os.Msys
··· 1 + ../../../../nvim
+1215
.kinto/kinto.ahk
··· 1 + #SingleInstance force 2 + #NoEnv 3 + #Persistent 4 + 5 + ; DetectHiddenWindows, On ; Autodetect 6 + ; Run, %A_ScriptDir%\detectUSB.ahk ; Autodetect 7 + 8 + ; Enable Left clicks on Kinto Icon 9 + ; https://www.autohotkey.com/boards/viewtopic.php?t=9501 10 + OnMessage(0x404, "AHK_NOTIFYICON") 11 + 12 + AHK_NOTIFYICON(wParam, lParam) 13 + { 14 + if (lParam = 0x202) { ; user left-clicked tray icon 15 + ;ADD ANY SUBROUTINE OR FUNCTION HERE 16 + Menu, Tray, Show 17 + return 18 + } 19 + else if (lParam = 0x203) { ; user double left-clicked tray icon 20 + ;ADD ANY SUBROUTINE OR FUNCTION HERE 21 + Menu, Tray, Show 22 + return 23 + } 24 + } 25 + ; End Enable Left clicks 26 + 27 + ; I_Icon = %A_ScriptDir%\assets\kinto-white-invert.ico ; MacModifiers 28 + ; IfExist, %I_Icon% ; MacModifiers 29 + ; Menu, Tray, Icon, %I_Icon%,, 1 ; MacModifiers 30 + ; Menu, Tray, Tip, Mac - Kinto ; MacModifiers 31 + 32 + I_Icon = %A_ScriptDir%\assets\kinto-white-invert.ico ; WinModifiers/CB/IBM 33 + IfExist, %I_Icon% ; WinModifiers/CB/IBM 34 + Menu, Tray, Icon, %I_Icon%,, 1 ; WinModifiers/CB/IBM 35 + Menu, Tray, Tip, Windows - Kinto ; WinModifiers 36 + ; Menu, Tray, Tip, Chromebook - Kinto ; Chromebook 37 + ; Menu, Tray, Tip, IBM - Kinto ; IBM 38 + 39 + Menu, Keyboards, Add, Windows, winkb 40 + Menu, Keyboards, Add, Apple, mackb 41 + Menu, Keyboards, Add, Chromebook, chromekb 42 + Menu, Keyboards, Add, IBM (No Super/Win key), ibmkb 43 + 44 + paramkb=%1% 45 + 46 + if paramkb = mac 47 + checkKB = Apple 48 + if paramkb = win 49 + checkKB = Windows 50 + if paramkb = chrome 51 + checkKB = Chromebook 52 + if paramkb = ibm 53 + checkKB = IBM (No Super/Win key) 54 + 55 + menu, Keyboards, check, %checkKB% 56 + 57 + ; Set Tray menu 58 + ; Menu, Tray, Standard 59 + Menu, Tray, NoStandard ; to remove default menu 60 + Menu, Tray, Add, Keyboard Types, :Keyboards 61 + Menu, Tray, Add, Autodetect Keyboards, autodetect 62 + ; Menu, Tray, check, Autodetect Keyboards ; Autodetect 63 + ; Menu, Tray, disable, Autodetect Keyboards ; CB/IBM 64 + Menu, Tray, Add, Suspend Kinto, tray_suspend 65 + ; Add tray menu item for toggling Option key special character entry scheme 66 + Menu, Tray, Add, OptSpecialChars Shift+Opt+Cmd+O, toggle_optspecialchars 67 + ; Menu, Tray, Add, Returns to Desktop, min 68 + Menu, Tray, Add 69 + Menu, Tray, Add, Close, Exit 70 + Menu, Tray, Click, 1 71 + 72 + winkb(){ 73 + Run, "%A_ScriptDir%\NoShell.vbs" "%A_ScriptDir%\toggle_kb.bat" win, "%A_ScriptDir%" 74 + } 75 + 76 + mackb(){ 77 + Run, "%A_ScriptDir%\NoShell.vbs" "%A_ScriptDir%\toggle_kb.bat" mac, "%A_ScriptDir%" 78 + } 79 + 80 + chromekb(){ 81 + Run, "%A_ScriptDir%\NoShell.vbs" "%A_ScriptDir%\toggle_kb.bat" chrome, "%A_ScriptDir%" 82 + } 83 + 84 + ibmkb(){ 85 + Run, "%A_ScriptDir%\NoShell.vbs" "%A_ScriptDir%\toggle_kb.bat" ibm, "%A_ScriptDir%" 86 + } 87 + 88 + autodetect(){ 89 + IfWinExist, detectUSB.ahk 90 + WinClose 91 + Run, "%A_ScriptDir%\NoShell.vbs" "%A_ScriptDir%\toggle_kb.bat" auto, "%A_ScriptDir%" 92 + } 93 + 94 + min(){ 95 + ; Refocus last active Window 96 + Send {LAlt down}{tab}{LAlt up} 97 + } 98 + 99 + tray_suspend(){ 100 + suspend toggle 101 + if (a_isSuspended = 1){ 102 + Gosub ReleaseModifiers 103 + menu, tray, check , Suspend Kinto 104 + I_Icon = %A_ScriptDir%\assets\kinto-white.ico 105 + Menu, Tray, Icon, %I_Icon%,, 1 106 + Menu, Tray, Tip, Suspended - Kinto 107 + IfWinExist, detectUSB.ahk 108 + WinClose 109 + } 110 + else{ 111 + menu, tray, unCheck, Suspend Kinto 112 + ; I_Icon = %A_ScriptDir%\assets\kinto-white-invert.ico ; MacModifiers 113 + I_Icon = %A_ScriptDir%\assets\kinto-white-invert.ico ; WinModifiers/CB/IBM 114 + ; Menu, Tray, Tip, Mac - Kinto ; MacModifiers 115 + Menu, Tray, Tip, Windows - Kinto ; WinModifiers 116 + ; Menu, Tray, Tip, Chromebook - Kinto ; Chromebook 117 + ; Menu, Tray, Tip, IBM - Kinto ; IBM 118 + Menu, Tray, Icon, %I_Icon%,,1 119 + Run, %A_ScriptDir%\detectUSB.ahk 120 + } 121 + ; Refocus last active Window 122 + Send {LAlt down}{tab}{LAlt up} 123 + } 124 + 125 + Exit() { 126 + Gosub ReleaseModifiers 127 + IfWinExist, detectUSB.ahk 128 + WinClose 129 + 130 + ExitApp 131 + } 132 + 133 + SetTitleMatchMode, 2 134 + 135 + GroupAdd, terminals, ahk_exe ubuntu.exe 136 + GroupAdd, terminals, ahk_exe ubuntu2004.exe 137 + GroupAdd, terminals, ahk_exe ConEmu.exe 138 + GroupAdd, terminals, ahk_exe ConEmu64.exe 139 + GroupAdd, terminals, ahk_exe powershell.exe 140 + GroupAdd, terminals, ahk_exe WindowsTerminal.exe 141 + GroupAdd, terminals, ahk_exe Hyper.exe 142 + GroupAdd, terminals, ahk_exe mintty.exe 143 + GroupAdd, terminals, ahk_exe Cmd.exe 144 + GroupAdd, terminals, ahk_exe box.exe 145 + GroupAdd, terminals, ahk_exe Terminus.exe 146 + GroupAdd, terminals, Fluent Terminal ahk_class ApplicationFrameWindow 147 + GroupAdd, terminals, ahk_class Console_2_Main 148 + 149 + GroupAdd, posix, ahk_exe ubuntu.exe 150 + GroupAdd, posix, ahk_exe ubuntu2004.exe 151 + GroupAdd, posix, ahk_exe ConEmu.exe 152 + GroupAdd, posix, ahk_exe ConEmu64.exe 153 + GroupAdd, posix, ahk_exe Hyper.exe 154 + GroupAdd, posix, ahk_exe mintty.exe 155 + GroupAdd, posix, ahk_exe Terminus.exe 156 + GroupAdd, posix, Fluent Terminal ahk_class ApplicationFrameWindow 157 + GroupAdd, posix, ahk_class Console_2_Main 158 + GroupAdd, posix, ahk_exe WindowsTerminal.exe 159 + 160 + GroupAdd, ConEmu, ahk_exe ConEmu.exe 161 + GroupAdd, ConEmu, ahk_exe ConEmu64.exe 162 + 163 + GroupAdd, ExcPaste, ahk_exe Cmd.exe 164 + GroupAdd, ExcPaste, ahk_exe mintty.exe 165 + 166 + GroupAdd, editors, ahk_exe sublime_text.exe 167 + GroupAdd, editors, ahk_exe VSCodium.exe 168 + GroupAdd, editors, ahk_exe Code.exe 169 + 170 + GroupAdd, browsers, ahk_exe chrome.exe 171 + GroupAdd, browsers, ahk_exe opera.exe 172 + GroupAdd, browsers, ahk_exe firefox.exe 173 + GroupAdd, browsers, ahk_exe msedge.exe 174 + 175 + ; Disable Key Remapping for Virtual Machines 176 + ; Disable for Remote desktop solutions too 177 + GroupAdd, remotes, ahk_exe VirtualBoxVM.exe 178 + GroupAdd, remotes, ahk_exe mstsc.exe 179 + GroupAdd, remotes, ahk_exe anydesk.exe 180 + GroupAdd, remotes, ahk_exe msrdc.exe 181 + GroupAdd, remotes, ahk_exe nxplayer.bin 182 + GroupAdd, remotes, ahk_exe vmconnect.exe 183 + GroupAdd, remotes, ahk_exe RemoteDesktopManagerFree.exe 184 + GroupAdd, remotes, ahk_exe vncviewer.exe 185 + GroupAdd, remotes, Remote Desktop ahk_class ApplicationFrameWindow 186 + 187 + ; Disabled Edge for now - no ability to close all instances 188 + ; GroupAdd, browsers, Microsoft Edge ahk_class ApplicationFrameWindow 189 + 190 + GroupAdd, vscode, ahk_exe VSCodium.exe 191 + GroupAdd, vscode, ahk_exe Code.exe 192 + 193 + GroupAdd, vstudio, ahk_exe devenv.exe 194 + 195 + GroupAdd, intellij, ahk_exe idea.exe 196 + GroupAdd, intellij, ahk_exe idea64.exe 197 + 198 + ; SetCapsLockState, AlwaysOff ; CB/IBM 199 + 200 + ; Keyboards w/o media keys can use this Remap 201 + ; This will replace unneeded dedicated keys 202 + ; with most commonly used media keys 203 + ; 204 + ; Insert::SoundSet, +1, , mute ; Toggles Speaker 205 + ; +Insert::Insert ; Shift Insert maps to Insert 206 + ; Home::SoundSetWaveVolume, -10 ; Decrease volume 207 + ; PgUp::SoundSetWaveVolume, +10 ; Increase volume 208 + ; Delete::Send {Media_Prev} ; Previous 209 + ; End::Send {Media_Play_Pause} ; Pause/Play 210 + ; PgDn::Send {Media_Next} ; Next 211 + 212 + ; Virtual Desktop Hack via TotalSpaces2 - macOS Remote Desktop 213 + ; Custom Bind Gestures in Windows 214 + ; Shift-F8 on Left Swipe 215 + ; Shift-F9 on Right Swipe 216 + #IfWinActive ahk_exe nxplayer.bin 217 + +F8::Send !+- ; macOS TotalSpaces2 - Space Left 218 + +F6::Send !+= ; macOS TotalSpaces2 - Space Right 219 + #If 220 + ; +F8::Send {LCtrl down}{LWin down}{left}{LCtrl up}{LWin up} ; Comment out on host machine 221 + ; +F6::Send {LCtrl down}{LWin down}{right}{LCtrl up}{LWin up} ; Comment out on host machine 222 + 223 + ; ######################################################################### 224 + ; ############# START OF FINDER MODS FOR FILE MANAGERS ################ 225 + ; ######################################################################### 226 + ; Finder Mods for Windows File Explorer (explore.exe) 227 + #IfWinActive ahk_class CabinetWClass ahk_exe explorer.exe 228 + ^i::Send !{Enter} ; Cmd+i: Get Info / Properties 229 + ^r::Send {F5} ; Cmd+R: Refresh view (Not actually a Finder shortcut? But works in Linux file browsers too.) 230 + ^1::Send ^+2 ; Cmd+1: View as Icons 231 + ^2::Send ^+6 ; Cmd+2: View as List (Detailed) 232 + ^3::Send ^+5 ; Cmd+3: View as List (Compact) 233 + ^4::Send ^+1 ; Cmd+4: View as Gallery 234 + ^Up::Send !{Up} ; Cmd+Up: Up to parent folder 235 + ^Left::Send !{Left} ; Cmd+Left: Go to prior location in history 236 + ^Right::Send !{Right} ; Cmd+Right: Go to next location in history 237 + ^Down:: ; Cmd-Down: Navigate into the selected directory 238 + For window in ComObjCreate("Shell.Application").Windows 239 + If WinActive() = window.hwnd 240 + For item in window.document.SelectedItems { 241 + window.Navigate(item.Path) 242 + Return 243 + } 244 + Return 245 + ^[::Send !{Left} ; Cmd+Left_Brace: Go to prior location in history 246 + ^]::Send !{Right} ; Cmd+Right_Brace: Go to next location in history 247 + ^+o::Send ^{Enter} ; Cmd+Shift+o: Open in new window (tabs not available) 248 + ^Delete::Send {Delete} ; Cmd+Delete: Delete / Send to Trash 249 + ^BackSpace::Send {Delete} ; Cmd+Delete: Delete / Send to Trash 250 + ^d::return, ; Block the unusual Explorer "delete" shortcut of Ctrl+D, used for "bookmark" in similar apps 251 + $Enter:: ; Use Enter key to rename (F2), unless focus is inside a text input field. 252 + ControlGetFocus, fc, A 253 + If fc contains Edit,Search,Notify,Windows.UI.Core.CoreWindow1,SysTreeView321 254 + Send {Enter} 255 + Else Send {F2} 256 + Return 257 + $BackSpace:: ; Backspace (without Cmd): Block Backspace key with error beep, unless inside text input field 258 + ControlGetFocus, fc, A 259 + If fc contains Edit,Search,Notify,Windows.UI.Core.CoreWindow1 260 + Send {BackSpace} 261 + Else SoundBeep, 600, 300 262 + Return 263 + $Delete:: ; Delete (without Cmd): Block Delete key with error beep, unless inside text input field 264 + ControlGetFocus, fc, A 265 + If fc contains Edit,Search,Notify,Windows.UI.Core.CoreWindow1 266 + Send {Delete} 267 + Else SoundBeep, 600, 300 268 + Return 269 + #IfWinActive 270 + ; ######################################################################### 271 + ; ############## END OF FINDER MODS FOR FILE MANAGERS ################# 272 + ; ######################################################################### 273 + 274 + #IfWinNotActive ahk_group remotes 275 + ; wordwise support 276 + ^Up::Send ^{Home} 277 + ^+Up::Send ^+{Home} 278 + ^Down::Send ^{End} 279 + ^+Down::Send ^+{End} 280 + $^Backspace::Send +{Home}{Delete} 281 + !Backspace::Send ^{Backspace} 282 + !Left::Send ^{Left} 283 + !+Left::Send ^+{Left} 284 + !Right::Send ^{Right} 285 + !+Right::Send ^+{Right} 286 + $^Left::Send {Home} 287 + $^+Left::Send +{Home} 288 + $^Right::Send {End} 289 + $^+Right::Send +{End} 290 + #If 291 + 292 + #IfWinNotActive ahk_group remotes 293 + 294 + ; New AltTab and CtrlTab fix 295 + *tab:: 296 + { 297 + ; Tertiary 298 + if (GetKeyState("LCtrl", "P") AND GetKeyState("LShift", "P") = false) { 299 + ; Secondary 300 + ; Send {LCtrl down}{Secondary up}{tab} 301 + Send {LCtrl down}{LWin up}{tab} ; WinModifiers 302 + ; ; Send {LCtrl down}{LAlt up}{tab} ; MacModifiers 303 + ; ; Send {LCtrl down}{CapsLock up}{tab} ; CB/IBM 304 + KeyWait, tab 305 + ; Tertiary 306 + } else if (GetKeyState("LCtrl", "P") AND GetKeyState("LShift", "P")) { 307 + ; Secondary 308 + ; Send {LCtrl down}{Secondary up}{LShift down}{tab} 309 + Send {LCtrl down}{LWin up}{LShift down}{tab} ; WinModifiers/CB 310 + ; ; Send {LCtrl down}{LAlt up}{LShift down}{tab} ; MacModifiers 311 + ; ; Send {LCtrl down}{CapsLock up}{LShift down}{tab} ; IBM 312 + KeyWait, tab 313 + ; Primary 314 + } else if (GetKeyState("LAlt", "P") AND GetKeyState("LShift", "P") = false) { ; WinModifiers/CB/IBM 315 + ; ; } else if (GetKeyState("LWin", "P") AND GetKeyState("LShift", "P") = false) { ; MacModifiers 316 + Send {LAlt down}{tab} 317 + KeyWait, tab 318 + ; Primary 319 + } else if (GetKeyState("LAlt", "P") AND GetKeyState("LShift", "P")) { ; WinModifiers/CB/IBM 320 + ; ; } else if (GetKeyState("LWin", "P") AND GetKeyState("LShift", "P")) { ; MacModifiers 321 + Send {LAlt down}{LShift down}{tab} 322 + KeyWait, tab 323 + ; Secondary 324 + } else if (GetKeyState("LWin", "P") AND GetKeyState("LShift", "P")) = false { ; WinModifiers/CB 325 + ; ; } else if (GetKeyState("LAlt", "P") AND GetKeyState("LShift", "P") = false) { ; MacModifiers 326 + ; ; } else if (GetKeyState("CapsLock", "P") AND GetKeyState("LShift", "P")) = false { ; IBM 327 + return 328 + ; Secondary 329 + } else if (GetKeyState("LWin", "P") AND GetKeyState("LShift", "P")) { ; WinModifiers/CB 330 + ; ; } else if (GetKeyState("LAlt", "P") AND GetKeyState("LShift", "P")) { ; MacModifiers 331 + ; ; } else if (GetKeyState("CapsLock", "P") AND GetKeyState("LShift", "P")) { ; IBM 332 + return 333 + } else { 334 + send {Blind}{tab} 335 + } 336 + return 337 + } 338 + 339 + tab::Send {tab} 340 + 341 + +tab::Send {Shift down}{tab}{Shift up} 342 + 343 + ; Basic Remap 344 + ; 345 + ; Primary::LCtrl 346 + ; Secondary::LAlt 347 + ; Tertiary::LWin 348 + 349 + ; ; $LAlt::LCtrl ; CB/IBM 350 + ; ; $RAlt::RCtrl ; IBM 351 + ; ; $RCtrl::RAlt ; CB/IBM 352 + ; ; $CapsLock::LWin ; IBM 353 + ; ; $LCtrl::LAlt ; CB/IBM 354 + 355 + $LAlt::LCtrl ; WinModifiers 356 + $RAlt::RCtrl ; WinModifiers 357 + $RCtrl::RAlt ; WinModifiers 358 + $LWin::LAlt ; WinModifiers 359 + $LCtrl::LWin ; WinModifiers 360 + 361 + ; ; $LWin::LCtrl ; MacModifiers 362 + ; ; $RWin::RCtrl ; MacModifiers 363 + ; ; $LCtrl::LWin ; MacModifiers 364 + 365 + ; Hack to disable start menu on winkey 366 + ; Static - Does not apply to IBM or Chromebooks 367 + $LCtrl up::Send {Ctrl down}{LWin up}{Ctrl up} ; Default 368 + ; ; LWin::return ; Chromebook 369 + ; ; RWin::return ; Chromebook 370 + ; ; RAlt::return ; Chromebook 371 + 372 + ; Disable Win-Up/Down - interferes with Sublime text 3 multi-cursors 373 + #Down::return 374 + #Up::return 375 + 376 + ; temporary hack to ensure keys don't get stuck 377 + ; impacts Alt-Tab fix 378 + ; Primary 379 + $LAlt up::Send {LWin up}{LAlt up}{LCtrl up} ; WinModifiers 380 + ; ; $LWin up::Send {LWin up}{LAlt up}{LCtrl up} ; MacModifiers 381 + ; ; $LAlt up::Send {LWin up}{CapsLock up}{LAlt up}{LCtrl up} ; CB/IBM 382 + 383 + !Enter:: 384 + { 385 + if (GetKeyState("RAlt", "P")) { 386 + Send {Insert} 387 + } 388 + else{ 389 + Send {Alt down}{Enter}{Alt up} 390 + } 391 + Return 392 + } 393 + 394 + ; Remap Alt+Esc to Break/Pause 395 + !Esc::SendInput, {Pause} 396 + 397 + ; Go up or down a page 398 + #IfWinNotActive ahk_group editors 399 + $!Down::Send {PgDn} 400 + $!Up::Send {PgUp} 401 + #If 402 + 403 + ; Close Apps 404 + ^q::Send !{F4} 405 + 406 + ; Minimize specific Window 407 + ^m::WinMinimize, A 408 + 409 + ; Minimize all but Active Window 410 + !^m:: 411 + WinGet, winid ,, A 412 + WinMinimizeAll 413 + WinActivate ahk_id %winid% 414 + return 415 + 416 + ; hide all instances of active Program 417 + ^h:: 418 + WinGetClass, class, A 419 + WinGet, AllWindows, List 420 + loop %AllWindows% { 421 + WinGetClass, WinClass, % "ahk_id " AllWindows%A_Index% 422 + if(InStr(WinClass,class)){ 423 + WinMinimize, % "ahk_id " AllWindows%A_Index% 424 + } 425 + } 426 + return 427 + 428 + ; hide all but active program 429 + !^h:: 430 + WinGetClass, class, A 431 + WinMinimizeAll 432 + WinGet, AllWindows, List 433 + loop %AllWindows% { 434 + WinGetClass, WinClass, % "ahk_id " AllWindows%A_Index% 435 + if(InStr(WinClass,class)){ 436 + WinRestore, % "ahk_id " AllWindows%A_Index% 437 + } 438 + } 439 + return 440 + 441 + ; Show Desktop 442 + ^F3::Send #d 443 + 444 + ; Emoji Panel 445 + #^Space::Send {LWin down};{LWin up} ; Default 446 + ; ; !^Space::Send {LWin down};{LWin up} ; CB/IBM 447 + 448 + ; Full Screenshot 449 + ^+3::Send {PrintScreen} 450 + 451 + ; Region Screenshot 452 + ^+4::Send #+{S} 453 + 454 + ; Open File Browser 455 + !^space::Send #e ; Default 456 + ; ; #^space::Send #e ; CB/IBM 457 + 458 + ; ; #if GetKeyState("LWin", "P") || GetKeyState("RAlt", "P") ; Chromebook 459 + ; ; Space::Send ^{Esc} ; Chromebook 460 + ; ; 0::Send #0 ; Chromebook 461 + ; ; 1::Send #1 ; Chromebook 462 + ; ; 2::Send #2 ; Chromebook 463 + ; ; 3::Send #3 ; Chromebook 464 + ; ; 4::Send #4 ; Chromebook 465 + ; ; 5::Send #5 ; Chromebook 466 + ; ; 6::Send #6 ; Chromebook 467 + ; ; 7::Send #7 ; Chromebook 468 + ; ; 8::Send #8 ; Chromebook 469 + ; ; 9::Send #9 ; Chromebook 470 + ; ; -::Send #- ; Chromebook 471 + ; ; =::Send #= ; Chromebook 472 + ; ; `::Send #` ; Chromebook 473 + ; ; `;::Send #; ; Chromebook 474 + ; ; a::Send #a ; Chromebook 475 + ; ; b::Send #b ; Chromebook 476 + ; ; c::Send #c ; Chromebook 477 + ; ; d::Send #d ; Chromebook 478 + ; ; e::Send #e ; Chromebook 479 + ; ; f::Send #f ; Chromebook 480 + ; ; g::Send #g ; Chromebook 481 + ; ; h::Send #h ; Chromebook 482 + ; ; i::Send #i ; Chromebook 483 + ; ; j::Send #j ; Chromebook 484 + ; ; k::Send #k ; Chromebook 485 + ; ; l::Send #l ; Chromebook 486 + ; ; m::Send #m ; Chromebook 487 + ; ; n::Send #n ; Chromebook 488 + ; ; o::Send #o ; Chromebook 489 + ; ; p::Send #p ; Chromebook 490 + ; ; q::Send #q ; Chromebook 491 + ; ; r::Send #r ; Chromebook 492 + ; ; s::Send #s ; Chromebook 493 + ; ; t::Send #t ; Chromebook 494 + ; ; u::Send #u ; Chromebook 495 + ; ; v::Send #v ; Chromebook 496 + ; ; w::Send #w ; Chromebook 497 + ; ; x::Send #x ; Chromebook 498 + ; ; y::Send #y ; Chromebook 499 + ; ; z::Send #z ; Chromebook 500 + ; ; #If ; Chromebook 501 + 502 + #If Not WinActive("ahk_group terminals") and Not WinActive("ahk_group remotes") 503 + ^.::Send {Esc} 504 + ; emacs style 505 + #n::Send {Down} 506 + #p::Send {Up} 507 + #f::Send {Right} 508 + #b::Send {Left} 509 + #a::Send {Home} 510 + #e::Send {End} 511 + #d::Send {Delete} 512 + #k::Send +{End}{Backspace} 513 + #If 514 + 515 + ; Cmd+Space Alternative 516 + $^Space::Send ^{Esc} 517 + 518 + #IfWinActive ahk_group intellij 519 + $#c::Send ^{c} ; Default - Sigints interrupt 520 + ; ; $!c::Send ^{c} ; CB/IBM 521 + ; General 522 + ^0::Send !{0} ;Open corresponding tool window 523 + ^1::Send !{1} ;Open corresponding tool window 524 + ^2::Send !{2} ;Open corresponding tool window 525 + ^3::Send !{3} ;Open corresponding tool window 526 + ^4::Send !{4} ;Open corresponding tool window 527 + ^5::Send !{5} ;Open corresponding tool window 528 + ^6::Send !{6} ;Open corresponding tool window 529 + ^7::Send !{7} ;Open corresponding tool window 530 + ^8::Send !{8} ;Open corresponding tool window 531 + ^9::Send !{9} ;Open corresponding tool window 532 + #`::Send ^` ;Quick switch current scheme 533 + ^,::Send ^!s ;Open Settings dialog 534 + ^;::Send ^!+s ;Open Project Structure dialog 535 + ; Debugging 536 + ^!r::Send {F9} ;Resume program 537 + ; Search/Replace 538 + ^g::Send {F3} ;Find next 539 + ^+F3::Send +{F3} ;Find previous 540 + #g::Send !j ;Select next occurrence 541 + ^#g::Send ^!+j ;Select all occurrences 542 + #+g::Send !+j ;Unselect occurrence 543 + ; Editing 544 + #Space::Send ^{Space} ; Default - Basic code completion 545 + ; ; !Space::Send ^{Space} ; CB/IBM - Basic code completion 546 + #+Space::Send ^+{Space} ;Smart code completion 547 + #j::Send ^q ;Quick documentation lookup 548 + ^n::Send !{Insert} ;Generate code... 549 + #o::Send ^o ;Override methods 550 + #i::Send ^i ;Implement methods 551 + !Up::Send ^w ;Extend selection 552 + !Down::Send ^+w ;Shrink selection 553 + #+q::Send !q ;Context info 554 + #!o::Send ^!o ;Optimize imports 555 + #!i::Send ^!i ;Auto-indent line(s) 556 + $^Backspace::Send ^y ;Delete line at caret 557 + #+j::Send ^+j ;Smart line join 558 + !Delete::Send ^{Delete} ;Delete to word end 559 + !Backspace::Send ^{Backspace} ;Delete to word start 560 + ^+::Send ^{NumpadAdd} ;Expand code block 561 + ^-::Send ^{NumpadSub} ;Collapse code block 562 + ^++::Send ^+{NumpadAdd} ;Expand all 563 + ^+-::Send ^+{NumpadSub} ;Collapse all 564 + ^w::Send ^{F4} ;Close active editor tab 565 + ; Refactoring 566 + ^Delete::Send !{Delete} ;Safe Delete 567 + ^T::Send ^!+T ;Refactor this 568 + ; Navigation 569 + ^o::Send ^n ;Go to class 570 + ^+o::Send ^+n ;Go to file 571 + ^!o::Send ^!+n ;Go to symbol 572 + #Right::Send !{Right} ;Go to next editor tab 573 + #Left::Send !{Left} ;Go to previous editor tab 574 + #l::Send ^g ;Go to line 575 + #e::Send ^e ;Recent files popup 576 + !Space::Send ^+i ; Default - Open quick definition lookup 577 + ; ; #Space::Send ^+i ; CB/IBM - Open quick definition lookup 578 + ^Y::Send ^+i ;Open quick definition lookup 579 + #+b::Send ^+b ;Go to type declaration 580 + #Up::Send !{Up} ;Go to previous 581 + #Down::Send !{Down} ;Go to next method 582 + #h::Send ^h ;Type hierarchy 583 + #!h::Send ^!h ;Call hierarchy 584 + ^Down::Send ^{Enter} ;Edit source/View source 585 + !Home::Send !{Home} ;Show navigation bar 586 + F2::Send {F11} ;Toggle bookmark 587 + #F3::Send ^{F11} ;Toggle bookmark with mnemonic 588 + #0::Send ^{0} ;Go to numbered bookmark 589 + #1::Send ^{1} ;Go to numbered bookmark 590 + #2::Send ^{2} ;Go to numbered bookmark 591 + #3::Send ^{3} ;Go to numbered bookmark 592 + #4::Send ^{4} ;Go to numbered bookmark 593 + #5::Send ^{5} ;Go to numbered bookmark 594 + #6::Send ^{6} ;Go to numbered bookmark 595 + #7::Send ^{7} ;Go to numbered bookmark 596 + #8::Send ^{8} ;Go to numbered bookmark 597 + #9::Send ^{9} ;Go to numbered bookmark 598 + ^F3::Send +{F11} ;Show bookmarks 599 + ; Compile and Run 600 + #!r::Send !+{F10} ;Select configuration and run 601 + #!d::Send !+{F9} ;Select configuration and debug 602 + #r::Send +{F10} ;Run 603 + #d::Send +{F9} ;Debug 604 + #+r::Send ^+{F10} ;Run context configuration from editor 605 + #+d::Send ^+{F9} ;Debug context configuration from editor 606 + ; VCS/Local History 607 + #v::Send !` ;VCS quick popup 608 + #If 609 + 610 + ; Close all browsers 611 + #IfWinActive ahk_group browsers 612 + ; Page Navigation 613 + ^[::send !{Left} ; Go to prior page 614 + ^]::send !{Right} ; Go to next page 615 + ;Tab Navigation 616 + ^+[::send ^{PgUp} ; Go to prior tab (left) 617 + ^+]::send ^{PgDn} ; Go to next tab (right) 618 + ^!Left::send ^{PgUp} ; Go to prior tab (left) 619 + ^!Right::send ^{PgDn} ; Go to next tab (right) 620 + #Left::send ^{PgUp} ; Go to prior tab (left) 621 + #Right::send ^{PgDn} ; Go to next tab (right) 622 + ^q::send {Alt Down}f{Alt Up}x ; exit all windows 623 + ; Dev Tools 624 + !^i::send {Ctrl Down}{Shift Down}i{Shift Up}{Ctrl Up} 625 + !^j::send {Ctrl Down}{Shift Down}j{Shift Up}{Ctrl Up} 626 + ; Open preferences 627 + #IfWinActive ahk_exe firefox.exe 628 + ^,::send, {Ctrl Down}t{Ctrl Up}about:preferences{Enter} 629 + ^+n::send ^+p 630 + #If 631 + #IfWinActive ahk_exe chrome.exe 632 + ^,::send {Alt Down}e{Alt Up}s{Enter} 633 + #If 634 + #IfWinActive ahk_exe msedge.exe 635 + ^,::send {Alt Down}e{Alt Up}s{Enter} 636 + #If 637 + #IfWinActive ahk_exe opera.exe 638 + ^,::send {Ctrl Down}{F12}{Ctrl Up} 639 + #If 640 + #If 641 + 642 + ; Sublime Text Remaps for VS Code 643 + #IfWinActive ahk_group vscode 644 + #p::send {Up} ; Allow for traversing quick list 645 + #n::send {Down} ; Allow for traversing quick list 646 + ; Remap Ctrl+Shift to behave like macOS Sublimetext 647 + ; Will extend cursor to multiple lines 648 + #+Up::send ^!{Up} ; Default - ST2CODE 649 + ; ; !+Up::send ^!{Up} ; CB/IBM - ST2CODE 650 + #+Down::send ^!{Down} ; Default - ST2CODE 651 + ; ; !+Down::send ^!{Down} ; CB/IBM - ST2CODE 652 + ; Remap Ctrl+Cmd+G to select all matches 653 + #^g::send ^+{L} ; Default - ST2CODE 654 + ; ; !^g::send ^+{L} ; CB/IBM - ST2CODE 655 + !+g::send ^+{G} ; View source control 656 + $#c::Send {Ctrl down}c{Ctrl up} ; Default - Sigints interrupt 657 + ; ; $!c::Send {Ctrl down}c{Ctrl up} ; CB/IBM 658 + $#x::Send {Ctrl down}x{Ctrl up} ; Default - Sigints interrupt 659 + ; ; $!x::Send {Ctrl down}x{Ctrl up} ; CB/IBM 660 + 661 + #Space::Send ^{Space} ; Default - Basic code completion 662 + ; ; !Space::Send ^{Space} ; CB/IBM - Basic code completion 663 + #If 664 + 665 + #IfWinActive ahk_exe sublime_text.exe 666 + #x::Send ^{x} ; Default - Terminal - Ctrl-x 667 + #c::Send ^{c} ; Default - Terminal - Ctrl-c sigint 668 + ; ; !x::Send ^{x} ; CB/IBM 669 + ; ; !c::Send ^{c} ; CB/IBM - Sigint 670 + ; #c::send ^{Pause} ; cancel_build 671 + #Space::Send ^{Space} ; Default - Basic code completion 672 + ; ; !Space::Send ^{Space} ; CB/IBM - Basic code completion 673 + #^Up::send !{O} ; Switch file 674 + #^f::send {F11} ; toggle_full_screen 675 + ^!v::send {Ctrl Down}k{Ctrl Up}{Ctrl Down}v{Ctrl Up} ; paste_from_history 676 + ^Up::Return ; cancel scroll_lines up 677 + ^!Up::send ^{Up} ; scroll_lines up 678 + ^Down::Return ; cancel scroll_lines down 679 + ^!Down::send ^{Down} ; scroll_lines down 680 + #+Up::send {shift up}^!{Up} ; Default - multi-cursor up 681 + #+Down::send {shift up}^!{Down} ; Default - multi-cursor down 682 + ; ; !+Up::send {shift up}^!{Up} ; CB/IBM - multi-cursor up 683 + ; ; !+Down::send {shift up}^!{Down} ; CB/IBM - multi-cursor down 684 + ^PgDn::Return ; cancel next_view 685 + ^PgUp::Return ; cancel prev_view 686 + ^+{::send ^{PgDn} ; next_view 687 + ^+}::send ^{PgUp} ; prev_view 688 + ^!Right::send ^{PgDn} ; next_view 689 + ^!Left::send ^{PgUp} ; prev_view 690 + Insert::Return ; cancel toggle_overwrite 691 + ^!O::send {Insert} ; toggle_overwrite 692 + !c::Return ; Default - cancel toggle_case_sensitive 693 + ^!c::send !{c} ; toggle_case_sensitive 694 + ; ^h::Return ; cancel replace 695 + ^!f::send ^{h} ; replace 696 + ^+h::Return ; cancel replace_next 697 + ^!e::send ^+{h} ; replace_next 698 + F3::Return ; cancel find_next 699 + ^g::send {F3} ; find_next 700 + #g::send ^{g} ; goto line - disable game bar - Start menu -> Game bar shortcuts -> toggle Off 701 + *F3::Return ; cancel find_prev, find_under, find_all_under 702 + ^+g::send +{F3} ; find_prev 703 + #!g::send ^{F3} ; find_under 704 + #!+g::send ^+{F3} ; find_under_prev 705 + #^g::send !{F3} ; Default - find_all_under 706 + ; ; !^g::send !{F3} ; CB/IBM - find_all_under 707 + ^+Up::Return ; cancel swap_line_up 708 + #!Up::send ^+{Up} ; swap_line_up 709 + ^+Down::Return ; cancel swap_line_down 710 + #!Down::send ^+{Down} ; swap_line_down 711 + ^Pause::Return ; cancel cancel_build 712 + ; #c::send ^{Pause} ; cancel_build 713 + F9::Return ; cancel sort_lines case_s false 714 + F5::send {F9} ; sort_lines case_s false 715 + #F9::Return ; cancel sort_lines case_s true 716 + #F5::send #{F9} ; sort_lines case_s true 717 + !+1::Return ; cancel set_layout 718 + ^!1::send !+1 ; set_layout 719 + !+2::Return ; cancel set_layout 720 + ^!2::send !+2 ; set_layout 721 + !+3::Return ; cancel set_layout 722 + ^!3::send !+3 ; set_layout 723 + !+4::Return ; cancel set_layout 724 + ^!4::send !+4 ; set_layout 725 + !+5::Return ; cancel set_layout 726 + ^!5::send !+5 ; set_layout 727 + !+8::Return ; cancel set_layout 728 + ^!8::send !+8 ; set_layout 729 + !+9::Return ; cancel set_layout 730 + ^!9::send !+9 ; set_layout 731 + #If 732 + 733 + #IfWinActive ahk_group terminals 734 + 735 + ; End of Line 736 + #e:: ; Default 737 + ; ; !e:: ; CB/IBM 738 + Send {End} 739 + return 740 + 741 + ; Beginning of Line 742 + #a:: ; Default 743 + ; ; !a:: ; CB/IBM 744 + Send {Home} 745 + return 746 + 747 + ; Copy 748 + ^c:: 749 + If WinActive("ahk_exe cmd.exe") OR WinActive("ahk_exe box.exe"){ 750 + Send {Enter} 751 + } 752 + else if WinActive("ahk_exe mintty.exe"){ 753 + SetKeyDelay -1 754 + Send {Blind}{Insert} 755 + } 756 + ; else if WinActive("ahk_exe WindowsTerminal.exe"){ ; WinTerm 757 + ; SetKeyDelay -1 ; WinTerm 758 + ; Send {Blind}{F13} ; WinTerm 759 + ; } ; WinTerm 760 + else{ 761 + SetKeyDelay -1 762 + Send {Blind}{LShift down}{c DownTemp} 763 + } 764 + return 765 + 766 + ^c up:: 767 + If not WinActive("ahk_group cmd.exe") OR WinActive("ahk_exe box.exe"){ 768 + SetKeyDelay -1 769 + Send {Blind}{c Up}{LShift Up} 770 + } 771 + return 772 + 773 + ; Sigints - interrupt 774 + $#c::Send {Ctrl down}c{Ctrl up} ; Default 775 + ; ; $!c::Send {Ctrl down}c{Ctrl up} ; CB/IBM 776 + $^.::Send {Ctrl down}c{Ctrl up} 777 + 778 + ; Windows Terminal 779 + ; Ctrl+Shift+C should do nothing 780 + If WinActive("ahk_exe WindowsTerminal.exe"){ 781 + $#+c::return 782 + } 783 + 784 + ; Paste 785 + $^v:: 786 + If WinActive("ahk_exe mintty.exe"){ 787 + Send {Shift down}{Insert}{Shift up} 788 + } 789 + else if WinActive("ahk_group posix"){ 790 + Send {Blind}{Shift down}v{Shift up} 791 + } 792 + else if WinActive("ahk_exe box.exe"){ 793 + SendEvent {RButton} 794 + } 795 + else{ 796 + Send {Blind}v 797 + } 798 + return 799 + #If 800 + 801 + #IfWinActive ahk_group posix 802 + ; Open/Close Tab for those that support it 803 + $^t:: 804 + If not WinActive("ahk_group ConEmu") AND not WinActive("ahk_class Console_2_Main"){ 805 + Send {Blind}{LShift down}t{LShift Up} 806 + } 807 + else if WinActive("ahk_class Console_2_Main"){ 808 + Send {Blind}{F1}{LShift Up} 809 + } 810 + else{ 811 + Send {Blind}t 812 + } 813 + return 814 + 815 + 816 + $^w:: 817 + If not WinActive("ahk_group ConEmu"){ 818 + Send {Blind}{LShift down}w{LShift Up} 819 + } 820 + else{ 821 + Send ^w 822 + } 823 + return 824 + 825 + ^l::Send clear{Enter} 826 + ; #l::return 827 + ; Clear Terminal and Scroll Buffer 828 + ^k::Send clear && printf '\e[3J'{Enter} 829 + ; Remap Physical Ctrl back to Ctrl 830 + #0::Send {LCtrl down}0{Ctrl up} ; Default 831 + #1::Send {LCtrl down}1{Ctrl up} ; Default 832 + #2::Send {LCtrl down}2{Ctrl up} ; Default 833 + #3::Send {LCtrl down}3{Ctrl up} ; Default 834 + #4::Send {LCtrl down}4{Ctrl up} ; Default 835 + #5::Send {LCtrl down}5{Ctrl up} ; Default 836 + #6::Send {LCtrl down}6{Ctrl up} ; Default 837 + #7::Send {LCtrl down}7{Ctrl up} ; Default 838 + #8::Send {LCtrl down}8{Ctrl up} ; Default 839 + #9::Send {LCtrl down}9{Ctrl up} ; Default 840 + #-::Send {LCtrl down}-{Ctrl up} ; Default 841 + #=::Send {LCtrl down}={Ctrl up} ; Default 842 + #`::Send {LCtrl down}`{Ctrl up} ; Default 843 + #a::Send {LCtrl down}a{Ctrl up} ; Default 844 + #b::Send {LCtrl down}b{Ctrl up} ; Default 845 + #c::Send {LCtrl down}c{Ctrl up} ; Default 846 + #d::Send {LCtrl down}d{Ctrl up} ; Default 847 + #e::Send {LCtrl down}e{Ctrl up} ; Default 848 + #f::Send {LCtrl down}f{Ctrl up} ; Default 849 + #g::Send {LCtrl down}g{Ctrl up} ; Default 850 + #h::Send {LCtrl down}h{Ctrl up} ; Default 851 + #i::Send {LCtrl down}i{Ctrl up} ; Default 852 + #j::Send {LCtrl down}j{Ctrl up} ; Default 853 + #k::Send {LCtrl down}k{Ctrl up} ; Default 854 + #l::Send {LCtrl down}l{Ctrl up} ; Default 855 + #m::Send {LCtrl down}m{Ctrl up} ; Default 856 + #n::Send {LCtrl down}n{Ctrl up} ; Default 857 + #o::Send {LCtrl down}o{Ctrl up} ; Default 858 + #p::Send {LCtrl down}p{Ctrl up} ; Default 859 + #q::Send {LCtrl down}q{Ctrl up} ; Default 860 + #r::Send {LCtrl down}r{Ctrl up} ; Default 861 + #s::Send {LCtrl down}s{Ctrl up} ; Default 862 + #t::Send {LCtrl down}t{Ctrl up} ; Default 863 + #u::Send {LCtrl down}u{Ctrl up} ; Default 864 + #v::Send {LCtrl down}v{Ctrl up} ; Default 865 + #w::Send {LCtrl down}w{Ctrl up} ; Default 866 + #x::Send {LCtrl down}x{Ctrl up} ; Default 867 + #y::Send {LCtrl down}y{Ctrl up} ; Default 868 + #z::Send {LCtrl down}z{Ctrl up} ; Default 869 + ; ; !0::Send {LCtrl down}0{Ctrl up} ; CB/IBM 870 + ; ; !1::Send {LCtrl down}1{Ctrl up} ; CB/IBM 871 + ; ; !2::Send {LCtrl down}2{Ctrl up} ; CB/IBM 872 + ; ; !3::Send {LCtrl down}3{Ctrl up} ; CB/IBM 873 + ; ; !4::Send {LCtrl down}4{Ctrl up} ; CB/IBM 874 + ; ; !5::Send {LCtrl down}5{Ctrl up} ; CB/IBM 875 + ; ; !6::Send {LCtrl down}6{Ctrl up} ; CB/IBM 876 + ; ; !7::Send {LCtrl down}7{Ctrl up} ; CB/IBM 877 + ; ; !8::Send {LCtrl down}8{Ctrl up} ; CB/IBM 878 + ; ; !9::Send {LCtrl down}9{Ctrl up} ; CB/IBM 879 + ; ; !-::Send {LCtrl down}-{Ctrl up} ; CB/IBM 880 + ; ; !=::Send {LCtrl down}={Ctrl up} ; CB/IBM 881 + ; ; !`::Send {LCtrl down}`{Ctrl up} ; CB/IBM 882 + ; ; !a::Send {LCtrl down}a{Ctrl up} ; CB/IBM 883 + ; ; !b::Send {LCtrl down}b{Ctrl up} ; CB/IBM 884 + ; ; !c::Send {LCtrl down}c{Ctrl up} ; CB/IBM 885 + ; ; !d::Send {LCtrl down}d{Ctrl up} ; CB/IBM 886 + ; ; !e::Send {LCtrl down}e{Ctrl up} ; CB/IBM 887 + ; ; !f::Send {LCtrl down}f{Ctrl up} ; CB/IBM 888 + ; ; !g::Send {LCtrl down}g{Ctrl up} ; CB/IBM 889 + ; ; !h::Send {LCtrl down}h{Ctrl up} ; CB/IBM 890 + ; ; !i::Send {LCtrl down}i{Ctrl up} ; CB/IBM 891 + ; ; !j::Send {LCtrl down}j{Ctrl up} ; CB/IBM 892 + ; ; !k::Send {LCtrl down}k{Ctrl up} ; CB/IBM 893 + ; ; !l::Send {LCtrl down}l{Ctrl up} ; CB/IBM 894 + ; ; !m::Send {LCtrl down}m{Ctrl up} ; CB/IBM 895 + ; ; !n::Send {LCtrl down}n{Ctrl up} ; CB/IBM 896 + ; ; !o::Send {LCtrl down}o{Ctrl up} ; CB/IBM 897 + ; ; !p::Send {LCtrl down}p{Ctrl up} ; CB/IBM 898 + ; ; !q::Send {LCtrl down}q{Ctrl up} ; CB/IBM 899 + ; ; !r::Send {LCtrl down}r{Ctrl up} ; CB/IBM 900 + ; ; !s::Send {LCtrl down}s{Ctrl up} ; CB/IBM 901 + ; ; !t::Send {LCtrl down}t{Ctrl up} ; CB/IBM 902 + ; ; !u::Send {LCtrl down}u{Ctrl up} ; CB/IBM 903 + ; ; !v::Send {LCtrl down}v{Ctrl up} ; CB/IBM 904 + ; ; !w::Send {LCtrl down}w{Ctrl up} ; CB/IBM 905 + ; ; !x::Send {LCtrl down}x{Ctrl up} ; CB/IBM 906 + ; ; !y::Send {LCtrl down}y{Ctrl up} ; CB/IBM 907 + ; ; !z::Send {LCtrl down}z{Ctrl up} ; CB/IBM 908 + #If 909 + #If 910 + 911 + ReleaseModifiers: 912 + Send {RCtrl up} 913 + Send {LCtrl up} 914 + Send {RAlt up} 915 + Send {LAlt up} 916 + Send {RWin up} 917 + Send {LWin up} 918 + Send {RShift up} 919 + Send {LShift up} 920 + return 921 + 922 + ; ############################################################################################################### 923 + ; ### Special character insertion like Apple/macOS Option key methods, mapping to Unicode input method 924 + ; ### Common symbols available with Option+key or Shift+Option+key, accented keys with Option+Key1, then Key2 925 + ; ############################################################################################################### 926 + 927 + ; Shortcut to activate Option key special character scheme 928 + ^+!o::Gosub, toggle_optspecialchars 929 + 930 + ; Function (subroutine?) for activation by tray menu item or keyboard shortcut 931 + toggle_optspecialchars: 932 + optspecialchars:=!optspecialchars ; Toggle value of optspecialchars variable on/off 933 + if (optspecialchars = 1) { 934 + Menu, Tray, Check, OptSpecialChars Shift+Opt+Cmd+O 935 + MsgBox, 0, ALERT, % "Option key special character entry scheme is now ENABLED.`n`n" 936 + . "WARNING: This will interfere with many Alt and Alt-Shift shortcuts.`n`n" 937 + . "Disable from tray menu or with Shift+Opt+Cmd+O." 938 + return 939 + } 940 + if (optspecialchars = 0) { 941 + Menu, Tray, Uncheck, OptSpecialChars Shift+Opt+Cmd+O 942 + MsgBox, 0, ALERT, Option key special character entry scheme is now DISABLED. 943 + return 944 + } 945 + return 946 + 947 + ; #IfWinNotActive ahk_group remotes 948 + #If !WinActive("ahk_group remotes") && optspecialchars = 1 949 + 950 + ; ###### NUMBER KEYS ROW ###### 951 + 952 + ; Dead_Keys_Accent_Grave 953 + ; ### SC029 is ` (Grave key above Tab) 954 + ; Grave accent: Option+`, then key to accent 955 + $!SC029:: 956 + ; Use Apple "dead keys" Option key method to attach accents to next character typed 957 + ; Grave accent activated by Option+` (Alt plus scan code SC029, or !SC029) 958 + StringCaseSense, On 959 + ; watch next input string 960 + Input, UserInput, L1 961 + Switch UserInput { 962 + Case Esc: Return ; Watch for Escape key, cancel dead keys sequence 963 + Case "a": Send, {U+00E0} ; à {U+00E0} (Alt+0224) 964 + Case "e": Send, {U+00E8} ; è {U+00E8} (Alt+0232) 965 + Case "i": Send, {U+00EC} ; ì {U+00EC} (Alt+0236) 966 + Case "o": Send, {U+00F2} ; ò {U+00F2} (Alt+0242) 967 + Case "u": Send, {U+00F9} ; ù {U+00F9} (Alt+0249) 968 + Case "A": Send, {U+00C0} ; À {U+00C0} (Alt+0192) 969 + Case "E": Send, {U+00C8} ; È {U+00C8} (Alt+0200) 970 + Case "I": Send, {U+00CC} ; Ì {U+00CC} (Alt+0204) 971 + Case "O": Send, {U+00D2} ; Ò {U+00D2} (Alt+0210) 972 + Case "U": Send, {U+00D9} ; Ù {U+00D9} (Alt+0217) 973 + Default: Send, %UserInput% ; No match? Send input through. 974 + } 975 + Return 976 + 977 + ; ### SC029 is ` (Grave key above Tab) 978 + $!+SC029::Send, {U+0060} ; Grave Accent diacritic (non-combining) {U+0060}: ` (Alt+96) 979 + $!1::Send, {U+00A1} ; Inverted Exclamation Mark {U+00A1}: ¡ (Alt+0161) 980 + $!+1::Send, {U+2044} ; Fraction Slash, solidus (U+2044): ⁄ (Alt+8260) [Needs Unicode] 981 + $!2::Send, {U+2122} ; Trade Mark Sign Emoji {U+2122}: ™ (Alt+0153) 982 + $!+2::Send, {U+20AC} ; Euro currency symbol {U+20AC}: € (Alt+0128) 983 + $!3::Send, {U+00A3} ; British Pound currency symbol {U+00A3}: £ (Alt+0163) 984 + $!+3::Send, {U+2039} ; Single Left-Pointing Angle Quotation mark {U+2039}: (Alt+0139) 985 + $!4::Send, {U+00A2} ; Cent currency symbol {U+00A2}: ¢ (Alt+0162) 986 + $!+4::Send, {U+203A} ; Single Right-Pointing Angle Quotation mark (U+203A): (Alt+0155) 987 + $!5::Send, {U+221E} ; Infinity mathematical symbol {U+221E}: ∞ (Alt+236) 988 + $!+5::Send, {U+FB01} ; fi latin small ligature: fi (U+FB01) (Alt+64257) [Needs Unicode] 989 + $!6::Send, {U+00A7} ; Section symbol {U+00A7}: § (Alt+0167) 990 + $!+6::Send, {U+FB02} ; fl small ligature: (U+FB02) (Alt+64258) [Needs Unicode.] 991 + $!7::Send, {U+00B6} ; Paragraph mark (Pilcrow) symbol {U+00B6}: ¶ (Alt+0182) 992 + $!+7::Send, {U+2021} ; Double dagger (cross) symbol {U+2021}: ‡ (Alt+0135) 993 + $!8::Send, {U+2022} ; Bullet point symbol {U+2022}: • (Alt+0149) 994 + $!+8::Send, {U+00B0} ; Degree symbol {U+00B0}: ° (Alt+0176) 995 + $!9::Send, {U+00AA} ; Feminine Ordinal Indicator symbol {U+00AA}: ª (Alt+0170) 996 + $!+9::Send, {U+00B7} ; Middle Dot (interpunct/middot) symbol {U+00B7}: · (Alt+0183) 997 + $!0::Send, {U+00BA} ; Masculine Ordinal Indicator symbol {U+00BA}: º (Alt+0186) 998 + $!+0::Send, {U+201A} ; Single low-9 quotation mark {U+201A}: ‚ (Alt+0130) 999 + $!-::Send, {U+2013} ; En Dash symbol {U+2013}: – (Alt+0150) 1000 + $!+-::Send, {U+2014} ; Em Dash symbol {U+2014}: — (Alt+0151) 1001 + $!=::Send, {U+2260} ; Not Equal To symbol (U+2260): ≠ (Alt+8800) [Needs Unicode] 1002 + $!+=::Send, {U+00B1} ; Plus Minus symbol {U+00B1}: ± (Alt+0177) 1003 + 1004 + 1005 + ; ###### LETTER AND PUNCTUATION KEYS ###### [ in QWERTY order ] 1006 + 1007 + ; ############## 1008 + ; ### 1st row: Tab-key row [ qwertyuiop[]\ ] [ QWERTYUIOP{}| ] 1009 + 1010 + $!q::Send, {U+0153} ; Small oe (oethel) ligature {U+0153}: œ (Alt+0156) 1011 + $!+q::Send, {U+0152} ; Capital OE (Oethel) ligature {U+0152}: Œ (Alt+0140) 1012 + $!w::Send, {U+2211} ; N-Ary Summation (sigma) notation (U+2211}: ∑ [Needs Unicode] 1013 + $!+w::Send, {U+201E} ; Double Low-9 Quotation mark {U+201E}: „ (Alt+0132) 1014 + 1015 + ; Dead_Keys_Accent_Acute 1016 + ; Acute accent: Option+e, then key to accent 1017 + $!e:: 1018 + ; Use Apple "dead keys" Option key method to attach accents to next character typed 1019 + ; Acute accent activated by Option+e (logical Alt+e) 1020 + StringCaseSense, On 1021 + ; watch next input string 1022 + Input, UserInput, L1 1023 + Switch UserInput { 1024 + Case Esc: Return ; Watch for Escape key, cancel dead keys sequence 1025 + Case "a": Send, {U+00E1} ; á {U+00E1} (Alt+0225) 1026 + Case "e": Send, {U+00E9} ; é {U+00E9} (Alt+0233) 1027 + Case "i": Send, {U+00ED} ; í {U+00ED} (Alt+0237) 1028 + Case "o": Send, {U+00F3} ; ó {U+00F3} (Alt+0243) 1029 + Case "u": Send, {U+00FA} ; ú {U+00FA} (Alt+0250) 1030 + Case "A": Send, {U+00C1} ; Á {U+00C1} (Alt+0193) 1031 + Case "E": Send, {U+00C9} ; É {U+00C9} (Alt+0201) 1032 + Case "I": Send, {U+00CD} ; Í {U+00CD} (Alt+0205) 1033 + Case "O": Send, {U+00D3} ; Ó {U+00D3} (Alt+0211) 1034 + Case "U": Send, {U+00DA} ; Ú {U+00DA} (Alt+0218) 1035 + Default: Send, %UserInput% ; No match? Send input through. 1036 + } 1037 + Return 1038 + 1039 + $!+e::Send, {U+00B4} ; Acute accent diacritic (non-combining) {U+00B4}: ´ (Alt+0180) 1040 + $!r::Send, {U+00AE} ; Registered Trade Mark Sign {U+00AE}: ® (Alt+0174) 1041 + $!+r::Send, {U+2030} ; Per mille symbol {U+2030}: ‰ (Alt+0137) 1042 + $!t::Send, {U+2020} ; Simple dagger (cross) symbol {U+2020}: † (Alt+0134) 1043 + $!+t::Send, {U+02C7} ; Caron/hacek diacritic (non-combining) (U+02C7): ˇ (Alt+0134) 1044 + $!y::Send, {U+00A5} ; Yen currency symbol {U+00A5}: ¥ (Alt+0165) 1045 + $!+y::Send, {U+00C1} ; Latin Capital Letter a with Acute (U+00C1): Á (Alt+0193) 1046 + 1047 + ; Dead_Keys_Accent_Umlaut 1048 + ; Umlaut/Diaeresis accent: Option+u, then key to accent 1049 + $!u:: 1050 + ; Use Apple "dead keys" Option key method to attach accents to next character typed 1051 + ; Umlaut/Diaeresis accent activated by Option+u (logical Alt+u) 1052 + StringCaseSense, On 1053 + ; watch next input string 1054 + Input, UserInput, L1 1055 + Switch UserInput { 1056 + Case Esc: Return ; Watch for Escape key, cancel dead keys sequence 1057 + Case "a": Send, {U+00E4} ; ä {U+00E4} (Alt+0228) 1058 + Case "e": Send, {U+00EB} ; ë {U+00EB} (Alt+0235) 1059 + Case "i": Send, {U+00EF} ; ï {U+00EF} (Alt+0239) 1060 + Case "o": Send, {U+00F6} ; ö {U+00F6} (Alt+0246) 1061 + Case "u": Send, {U+00FC} ; ü {U+00FC} (Alt+0252) 1062 + Case "y": Send, {U+00FF} ; ÿ {U+00FF} (Alt+0255) 1063 + Case "A": Send, {U+00C4} ; Ä {U+00C4} (Alt+0196) 1064 + Case "E": Send, {U+00CB} ; Ë {U+00CB} (Alt+0203) 1065 + Case "I": Send, {U+00CF} ; Ï {U+00CF} (Alt+0207) 1066 + Case "O": Send, {U+00D6} ; Ö {U+00D6} (Alt+0214) 1067 + Case "U": Send, {U+00DC} ; Ü {U+00DC} (Alt+0220) 1068 + Case "Y": Send, {U+0178} ; Ÿ {U+0178} (Alt+0159) 1069 + Default: Send, %UserInput% ; No match? Send input through. 1070 + } 1071 + Return 1072 + 1073 + $!+u::Send, {U+00A8} ; Umlaut/Diaeresis diacritic (non-combining) {U+00A8}: (Alt+0168) 1074 + 1075 + ; Dead_Keys_Accent_Circumflex 1076 + ; Circumflex accent: Option+i, then key to accent 1077 + $!i:: 1078 + ; Use Apple "dead keys" Option key method to attach accents to next character typed 1079 + ; Circumflex accent activated by Option+i (logical Alt+i) 1080 + StringCaseSense, On 1081 + ; watch next input string 1082 + Input, UserInput, L1 1083 + Switch UserInput { 1084 + Case Esc: Return ; Watch for Escape key, cancel dead keys sequence 1085 + Case "a": Send, {U+00E2} ; â {U+00E2} (Alt+0226) 1086 + Case "e": Send, {U+00EA} ; ê {U+00EA} (Alt+0234) 1087 + Case "i": Send, {U+00EE} ; î {U+00EE} (Alt+0238) 1088 + Case "o": Send, {U+00F4} ; ô {U+00F4} (Alt+0244) 1089 + Case "u": Send, {U+00FB} ; û {U+00FB} (Alt+0251) 1090 + Case "A": Send, {U+00C2} ;  {U+00C2} (Alt+0194) 1091 + Case "E": Send, {U+00CA} ; Ê {U+00CA} (Alt+0202) 1092 + Case "I": Send, {U+00CE} ; Î {U+00CE} (Alt+0206) 1093 + Case "O": Send, {U+00D4} ; Ô {U+00D4} (Alt+0212) 1094 + Case "U": Send, {U+00DB} ; Û {U+00DB} (Alt+0219) 1095 + Default: Send, %UserInput% ; No match? Send input through. 1096 + } 1097 + Return 1098 + 1099 + $!+i::Send, {U+02C6} ; Modifier Letter Circumflex Accent (U+02C6): ˆ (Alt+0137) 1100 + $!o::Send, {U+00F8} ; Latin Small Letter o with Stroke {U+00F8}: ø (Alt+0248) 1101 + $!+o::Send, {U+00D8} ; Latin Capital Letter O with Stroke {U+00D8}: Ø (Alt+0216) 1102 + $!p::Send, {U+03C0} ; Greek Small Letter Pi {U+03C0}: π (Alt+227) 1103 + $!+p::Send, {U+220F} ; N-Ary Product mathematical symbol (U+220F): ∏ [Needs Unicode] 1104 + $![::Send, {U+201C} ; Left Double Quotation Mark {U+201C}: “ (Alt+0147) 1105 + $!+[::Send, {U+201D} ; Right Double Quotation Mark {U+201D}: ” (Alt+8) 1106 + $!]::Send, {U+2018} ; Left Single Quotation Mark {U+2018}: ‘ (Alt+0145) 1107 + $+!]::Send, {U+2019} ; Right Single Quotation Mark {U+2019}: ’ (Alt+0146) 1108 + $!\::Send, {U+00AB} ; LEFT-POINTING DOUBLE ANGLE QUOTATION MARK {U+00AB}: « (Alt+0171) 1109 + $!+\::Send, {U+00BB} ; RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK {U+00BB}: » (Alt+0187) 1110 + 1111 + 1112 + ; ############## 1113 + ; ### 2nd row: Caps Lock row [ asdfghjkl;' ] [ ASDFGHJKL:" ] 1114 + 1115 + $!a::Send, {U+00E5} ; Small Letter a with Ring Above {U+00E5}: å (Alt+0229) 1116 + $!+a::Send, {U+00C5} ; Capital Letter A with Ring Above {U+00C5}: Å (Alt+0197) 1117 + $!s::Send, {U+00DF} ; German Eszett/beta (Sharfes/Sharp S) {U+00DF}: ß (Alt+0223) 1118 + $!+s::Send, {U+00CD} ; Latin Capital Letter I with Acute {U+00CD}: Í (Alt+0205) 1119 + $!d::Send, {U+2202} ; Partial Differential mathematical symbol {U+2202}: ∂ (Alt+2202) [Needs Unicode] 1120 + $!+d::Send, {U+00CE} ; Latin Capital Letter I with Circumflex {U+00CE}: Î (Alt+0206) 1121 + $!f::Send, {U+0192} ; Function/florin currency symbol {U+0192}: ƒ (Alt+159) 1122 + $!+f::Send, {U+00CF} ; Latin Capital Letter I with Diaeresis {U+00CF}: Ï (Alt+0207) 1123 + 1124 + ; ####################################################################### 1125 + ; ## Problem: Option+g (Win+g) brings up Windows XBox Game Bar! 1126 + ; ## To remove/disable paste this text in PowerShell (without quotes): 1127 + ; ## "Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage" 1128 + ; ####################################################################### 1129 + $!g::Send, {U+00A9} ; Copyright Sign {U+00A9}: © (Alt+0169) 1130 + $!+g::Send, {U+02DD} ; Double Acute Accent diacritic (non-combining) {U+02DD}: ˝ [Needs Unicode] 1131 + $!h::Send, {U+02D9} ; Dot Above diacritic (non-combining) {U+02D9}: ˙ [Needs Unicode] 1132 + $!+h::Send, {U+00D3} ; Latin Capital Letter O with Acute {U+00D3}: Ó (Alt+0211) 1133 + $!j::Send, {U+2206} ; Increment, laplace operator symbol {U+2206}: ∆ [Needs Unicode] 1134 + $!+j::Send, {U+00D4} ; Latin Capital Letter O with Circumflex {U+00D4}: Ô (Alt+0212) 1135 + $!k::Send, {U+02DA} ; Ring Above diacritic (non-combining) {U+02DA}: ˚ [Needs Unicode] (NOT degree sign/symbol) 1136 + 1137 + ; Apple logo {U+F8FF}:  [Unicode Private Use Area, req's Baskerville Old Face font] 1138 + ; $!+k::Send, {U+F8FF} ; This Unicode address only works with Mac fonts 1139 + $!+k:: 1140 + Send, {U+F000} ; Change font of inserted character (may be invisible) to Baskerville Old Face 1141 + apple_logo_alert:=1 ; Set to zero to disable, one to enable (default is enabled) 1142 + if (apple_logo_alert=1) { 1143 + MsgBox, 0, ALERT, % "ALERT: Change the font of the inserted character!`n`n" 1144 + . "Apple logo character requires the Baskerville Old Face font.`n`n`n" 1145 + . "Note 1: The character has been inserted but may be INVISIBLE`n" 1146 + . " (i.e., non-printing) in its current font.`n`n`n" 1147 + . "Note 2: The inserted character will probably NOT be portable`n" 1148 + . " to a Mac document/font. Use only for print/PDF `n" 1149 + . " purposes on PC.`n`n`n" 1150 + . "Note 3: Search for apple_logo_alert in kinto.ahk config and `n" 1151 + . " set it to zero to disable this MsgBox.`n`n`n" 1152 + } 1153 + return 1154 + 1155 + ; ####################################################################### 1156 + ; ## Option+L works, but will also trigger the Win+L screen locking. 1157 + ; ## The screen locking shortcut can only be disabled in the registry. 1158 + ; ####################################################################### 1159 + $!l::Send, {U+00AC} ; Not Sign angled dash symbol {U+00AC}: ¬ (Alt+170) 1160 + $!+l::Send, {U+00D2} ; Latin Capital Letter O with Grave {U+00D2}: Ò (Alt+0210) 1161 + $!;::Send, {U+2026} ; Horizontal elipsis {U+2026}: … (Alt+0133) 1162 + $!+;::Send, {U+00DA} ; Latin Capital Letter U with Acute {U+00DA}: Ú (Alt+0218) 1163 + 1164 + ; ####################################################################### 1165 + ; ## SC028 is single-quote key scan code 1166 + ; ####################################################################### 1167 + $!SC028::Send, {U+00E6} ; Small ae ligature {U+00E6}: æ (Alt+0230) 1168 + $!+SC028::Send, {U+00C6} ; Capital AE ligature {U+00C6}: Æ (Alt+0198) 1169 + 1170 + 1171 + ; ############## 1172 + ; ### 3rd row: Shift-Keys row [ zxcvbnm,./ ] [ ZXCVBNM<>? ] 1173 + 1174 + $!z::Send, {U+03A9} ; Greek Capital Letter Omega symbol {U+03A9} Ω (Alt+234) 1175 + $!+z::Send, {U+00B8} ; Spacing Cedilla diacritic symbol (non-combining) {U+00B8}: ¸ (Alt+0184) 1176 + $!x::Send, {U+2248} ; Almost Equal To symbol (U+2248): ≈ (Alt+247) 1177 + $!+x::Send, {U+02DB} ; Ogonek diacritic (non-combining) (U+02DB): ˛ [Needs Unicode] 1178 + $!c::Send, {U+00E7} ; Small Letter c with Cedilla {U+00E7}: ç (Alt+0231) 1179 + $!+c::Send, {U+00C7} ; Capital Letter C with Cedilla {U+00C7}: Ç (Alt+0199) 1180 + $!v::Send, {U+221A} ; Square Root radical sign (U+221A): √ (Alt+251) 1181 + $!+v::Send, {U+25CA} ; Lozenge (diamond) shape symbol (U+25CA): ◊ [Needs Unicode] 1182 + $!b::Send, {U+222B} ; Integral mathematical symbol (U+222B): ∫ [Needs Unicode] 1183 + $!+b::Send, {U+0131} ; Latin Small Letter Dotless i (U+0131): ı [Needs Unicode] 1184 + 1185 + ; Dead_Keys_Accent_Tilde 1186 + ; Tilde accent: Option+n, then key to accent 1187 + $!n:: 1188 + ; Use Apple "dead keys" Option key method to attach accents to next character typed 1189 + ; Tilde accent activated by Option+n (logical Alt+n) 1190 + StringCaseSense, On 1191 + ; watch next input string 1192 + Input, UserInput, L1 1193 + Switch UserInput { 1194 + Case Esc: Return ; Watch for Escape key, cancel dead keys sequence 1195 + Case "a": Send, {U+00E3} ; ã {U+00E3} (Alt+0227) 1196 + Case "n": Send, {U+00F1} ; ñ {U+00F1} (Alt+0241) 1197 + Case "o": Send, {U+00F5} ; õ {U+00F5} (Alt+0245) 1198 + Case "A": Send, {U+00C3} ; à {U+00C3} (Alt+0195) 1199 + Case "N": Send, {U+00D1} ; Ñ {U+00D1} (Alt+0209) 1200 + Case "O": Send, {U+00D5} ; Õ {U+00D5} (Alt+0213) 1201 + Default: Send, %UserInput% ; No match? Send input through. 1202 + } 1203 + Return 1204 + 1205 + $!+n::Send, {U+02DC} ; Small Tilde character (U+02DC): ˜ (Alt+0152) 1206 + $!m::Send, {U+00B5} ; Micro (mu) symbol {U+00B5}: µ (Alt+0181) 1207 + $!+m::Send, {U+00C2} ; Latin Capital Letter a with Circumflex (U+00C2):  (Alt+0194) 1208 + $!,::Send, {U+2264} ; Less than or equal to symbol {U+2264}: ≤ (Alt+243) 1209 + $!+,::Send, {U+00AF} ; Macron/overline/apl overbar (non-combining) (U+00AF): ¯ (Alt+0175) 1210 + $!.::Send, {U+2265} ; Greater than or equal to symbol {U+2265}: ≥ (Alt+242) 1211 + $!+.::Send, {U+02D8} ; Breve diacritic (non-combining) {U+02D8}: ˘ [Needs Unicode] 1212 + $!/::Send, {U+00F7} ; Obelus/Division symbol {U+00F7}: ÷ (Alt+0247) 1213 + $!+/::Send, {U+00BF} ; Inverted Question Mark {U+00BF}: ¿ (Alt+0191) 1214 + 1215 + #If ; ### END of special character insertion with Option(Alt) key