Skip to content

Instantly share code, notes, and snippets.

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@conr
conr / TerminalWindowsToCtrl.ahk
Last active August 7, 2023 13:56
Remap LWin to LCtrl when Windows Terminal is focused (Auto Hot Key)
; Remap LWin to LCtrl when Windows Terminal is focused (Auto Hot Key)
#IfWinActive ahk_class CASCADIA_HOSTING_WINDOW_CLASS ; Check if Windows Terminal is active
LWin::LCtrl ; Remap left Windows key to left Ctrl key
#IfWinActive
; Script to assign alt+` and alt+escape the functionality to cycle through windows of the same application.
!`::
WinGetClass, OldClass, A
WinGet, ActiveProcessName, ProcessName, A
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName%