Skip to content

Instantly share code, notes, and snippets.

@nocke
Last active December 20, 2019 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nocke/9a62cec8da8785de58e97313d4045cbc to your computer and use it in GitHub Desktop.
Save nocke/9a62cec8da8785de58e97313d4045cbc to your computer and use it in GitHub Desktop.
Ubuntu-ish hotkeys under Windows 10 (using AutoHotKey)
; toggle next, previous (virtual) desktop
^!Up::
Send ^#{Left}
return
^!Down::
Send ^#{Right}
return
; open “Terminal”
#T::
Run, cmd.exe, C:\depot
return
; ! keycode 192 = XF86Launch5 NoSymbol XF86Launch5
; ! keycode 193 = XF86Launch6 NoSymbol XF86Launch6
; ! keycode 194 = XF86Launch7 NoSymbol XF86Launch7
; ! keycode 195 = XF86Launch8 NoSymbol XF86Launch8
;https://helpdeskgeek.com/windows-10/5-simple-autohotkey-scripts-to-make-your-life-easier/
; https://www.autohotkey.com/docs/Hotkeys.htm#AltGr
; common special chars under Ubuntu
<^>!-::Send {—}
<^>!.::Send {…}
<^>!,::Send {·}
<^>!+,::Send {×}
<^>!z::Send {←}
<^>!u::Send {↓}
<^>!+u::Send {↑}
<^>!i::Send {→}
<^>!v::Send {„}
<^>!b::Send {“}
<^>!n::Send {”}
<^>!+v::Send {‚}
<^>!+b::Send {‘}
<^>!+n::Send {’}
<^>!+8::Send {™}
; forward screenshot from ubuntu shortcut to PickWick Shortcut for Region (defined by me)
; REFhttps://www.autohotkey.com/docs/KeyList.htm
; REF https://autohotkey.com/board/topic/114173-caret-taste-als-hotkey/
; REF <^<!m::MsgBox You pressed LeftControl+LeftAlt+m.
<!^::Send !^+{PrintScreen}
; geht auch <!SC029::MsgBox You pressed LeftAlt+Caret 456
; alt-ctrl to send only one backtick (i.e. markdown code quotes)
; (the weiredness of the keyboard modifier combination was obtained through ahk KeyHistory)
<^>!SC00D::Send, {Asc 96}
; Next: context-sensistive hotkeys
; https://www.autohotkey.com/docs/Hotkeys.htm#Context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment