Advertisement
Guest User

user_config.ahk

a guest
Jun 12th, 2019
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; ====================
  2. ; === INSTRUCTIONS ===
  3. ; ====================
  4. ; 1. Any lines starting with ; are ignored
  5. ; 2. After changing this config file run script file "desktop_switcher.ahk"
  6. ; 3. Every line is in the format HOTKEY::ACTION
  7.  
  8. ; === SYMBOLS ===
  9. ; !   <- Alt
  10. ; +   <- Shift
  11. ; ^   <- Ctrl
  12. ; #   <- Win
  13. ; For more, visit https://autohotkey.com/docs/Hotkeys.htm
  14.  
  15. ; === EXAMPLES ===
  16. ; !n::switchDesktopToRight()             <- <Alt> + <N> will switch to the next desktop (to the right of the current one)
  17. ; #!space::switchDesktopToRight()        <- <Win> + <Alt> + <Space> will switch to next desktop
  18. ; CapsLock & n::switchDesktopToRight()   <- <CapsLock> + <N> will switch to the next desktop (& is necessary when using non-modifier key such as CapsLock)
  19.  
  20. ; ===========================
  21. ; === END OF INSTRUCTIONS ===
  22. ; ===========================
  23.  
  24. #1::switchDesktopByNumber(1)
  25. #2::switchDesktopByNumber(2)
  26. #3::switchDesktopByNumber(3)
  27. #4::switchDesktopByNumber(4)
  28. #5::switchDesktopByNumber(5)
  29. #6::switchDesktopByNumber(6)
  30. #7::switchDesktopByNumber(7)
  31. #8::switchDesktopByNumber(8)
  32. #9::switchDesktopByNumber(9)
  33.  
  34. CapsLock & n::switchDesktopToRight()
  35. CapsLock & p::switchDesktopToLeft()
  36. CapsLock & s::switchDesktopToRight()
  37. CapsLock & a::switchDesktopToLeft()
  38. CapsLock & tab::switchDesktopToLastOpened()
  39.  
  40. CapsLock & c::createVirtualDesktop()
  41. CapsLock & d::deleteVirtualDesktop()
  42.  
  43. CapsLock & q::MoveCurrentWindowToDesktop(1)
  44. CapsLock & w::MoveCurrentWindowToDesktop(2)
  45. CapsLock & e::MoveCurrentWindowToDesktop(3)
  46. CapsLock & r::MoveCurrentWindowToDesktop(4)
  47. CapsLock & t::MoveCurrentWindowToDesktop(5)
  48. CapsLock & y::MoveCurrentWindowToDesktop(6)
  49. CapsLock & u::MoveCurrentWindowToDesktop(7)
  50. CapsLock & i::MoveCurrentWindowToDesktop(8)
  51. CapsLock & o::MoveCurrentWindowToDesktop(9)
  52.  
  53. ; === INSTRUCTIONS ===
  54. ; Below is the alternate key configuration. Delete symbol ; in the beginning of the line to enable.
  55. ; Note, that  ^!1  means "Ctrl + Alt + 1" and  ^#1  means "Ctrl + Win + 1"
  56. ; === END OF INSTRUCTIONS ===
  57.  
  58. ; ^!1::switchDesktopByNumber(1)
  59. ; ^!2::switchDesktopByNumber(2)
  60. ; ^!3::switchDesktopByNumber(3)
  61. ; ^!4::switchDesktopByNumber(4)
  62. ; ^!5::switchDesktopByNumber(5)
  63. ; ^!6::switchDesktopByNumber(6)
  64. ; ^!7::switchDesktopByNumber(7)
  65. ; ^!8::switchDesktopByNumber(8)
  66. ; ^!9::switchDesktopByNumber(9)
  67.  
  68. ; ^!n::switchDesktopToRight()
  69. ; ^!p::switchDesktopToLeft()
  70. ; ^!s::switchDesktopToRight()
  71. ; ^!a::switchDesktopToLeft()
  72. ; ^!tab::switchDesktopToLastOpened()
  73.  
  74. ; ^!c::createVirtualDesktop()
  75. ; ^!d::deleteVirtualDesktop()
  76.  
  77. ; ^#1::MoveCurrentWindowToDesktop(1)
  78. ; ^#2::MoveCurrentWindowToDesktop(2)
  79. ; ^#3::MoveCurrentWindowToDesktop(3)
  80. ; ^#4::MoveCurrentWindowToDesktop(4)
  81. ; ^#5::MoveCurrentWindowToDesktop(5)
  82. ; ^#6::MoveCurrentWindowToDesktop(6)
  83. ; ^#7::MoveCurrentWindowToDesktop(7)
  84. ; ^#8::MoveCurrentWindowToDesktop(8)
  85. ; ^#9::MoveCurrentWindowToDesktop(9)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement