keys 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. INCLUDE = "vars"
  2. Global {
  3. # - - ----------------------------------------------- - -
  4. # Simple bindings to most frequently used actions.
  5. #
  6. # Adding your own frequently used actions is easy -
  7. # just copy it over from CHAINS and edit the keypress!
  8. # Moving in frames
  9. KeyPress = "Mod1 Tab" { Actions = "NextFrame EndRaise" }
  10. KeyPress = "Mod1 Shift Tab" { Actions = "PrevFrame EndRaise" }
  11. KeyPress = "Mod1 Ctrl Tab" { Actions = "NextFrameMRU EndRaise" }
  12. KeyPress = "Mod1 Ctrl Shift Tab" { Actions = "PrevFrameMRU EndRaise" }
  13. KeyPress = "Mod4 Tab" { Actions = "ActivateClientRel 1" }
  14. KeyPress = "Mod4 Shift Tab" { Actions = "ActivateClientRel -1" }
  15. KeyPress = "Mod4 Ctrl Right" { Actions = "MoveClientRel 1" }
  16. KeyPress = "Mod4 Ctrl Left" { Actions = "MoveClientRel -1" }
  17. KeyPress = "Mod4 Left" { Actions = "FocusDirectional Left" }
  18. KeyPress = "Mod4 Right" { Actions = "FocusDirectional Right" }
  19. KeyPress = "Mod4 Up" { Actions = "FocusDirectional Up" }
  20. KeyPress = "Mod4 Down" { Actions = "FocusDirectional Down" }
  21. # Moving in workspaces
  22. KeyPress = "Ctrl Mod1 Left" { Actions = "GotoWorkspace Left" }
  23. KeyPress = "Ctrl Mod1 Right" { Actions = "GotoWorkspace Right" }
  24. KeyPress = "Ctrl Mod1 Up" { Actions = "GotoWorkspace Up" }
  25. KeyPress = "Ctrl Mod1 Down" { Actions = "GotoWorkspace Down" }
  26. KeyPress = "Ctrl Mod4 Shift Left" { Actions = "GotoWorkspace LeftN" }
  27. KeyPress = "Ctrl Mod4 Shift Right" { Actions = "GotoWorkspace RightN" }
  28. KeyPress = "Mod4 1" { Actions = "GotoWorkspace 1" }
  29. KeyPress = "Mod4 2" { Actions = "GotoWorkspace 2" }
  30. KeyPress = "Mod4 3" { Actions = "GotoWorkspace 3" }
  31. KeyPress = "Mod4 4" { Actions = "GotoWorkspace 4" }
  32. KeyPress = "Mod4 5" { Actions = "GotoWorkspace 5" }
  33. KeyPress = "Mod4 6" { Actions = "GotoWorkspace 6" }
  34. KeyPress = "Mod4 7" { Actions = "GotoWorkspace 7" }
  35. KeyPress = "Mod4 8" { Actions = "GotoWorkspace 8" }
  36. KeyPress = "Mod4 9" { Actions = "GotoWorkspace 9" }
  37. KeyPress = "Ctrl Mod1 Shift Right" { Actions = "SendToWorkspace Next; GoToWorkspace Next" }
  38. KeyPress = "Ctrl Mod1 Shift Left" { Actions = "SendToWorkspace Prev; GoToWorkspace Prev" }
  39. KeyPress = "Ctrl Mod1 Shift Down" { Actions = "SendToWorkspace NextV; GoToWorkspace NextV" }
  40. KeyPress = "Ctrl Mod1 Shift Up" { Actions = "SendToWorkspace PrevV; GoToWorkspace PrevV" }
  41. KeyPress = "Shift Mod4 1" { Actions = "SendToWorkspace 1" }
  42. KeyPress = "Shift Mod4 2" { Actions = "SendToWorkspace 2" }
  43. KeyPress = "Shift Mod4 3" { Actions = "SendToWorkspace 3" }
  44. KeyPress = "Shift Mod4 4" { Actions = "SendToWorkspace 4" }
  45. KeyPress = "Shift Mod4 5" { Actions = "SendToWorkspace 5" }
  46. KeyPress = "Shift Mod4 6" { Actions = "SendToWorkspace 6" }
  47. KeyPress = "Shift Mod4 7" { Actions = "SendToWorkspace 7" }
  48. KeyPress = "Shift Mod4 8" { Actions = "SendToWorkspace 8" }
  49. KeyPress = "Shift Mod4 9" { Actions = "SendToWorkspace 9" }
  50. # Simple window management
  51. KeyPress = "Mod4 M" { Actions = "Toggle Maximized True True" }
  52. KeyPress = "Mod4 G" { Actions = "Maxfill True True" }
  53. KeyPress = "Mod4 Shift H" { Actions = "Maxfill False True" }
  54. KeyPress = "Mod4 Shift V" { Actions = "Maxfill True False" }
  55. KeyPress = "Mod4 F" { Actions = "Toggle FullScreen" }
  56. KeyPress = "Mod4 Return" { Actions = "MoveResize" }
  57. KeyPress = "Mod4 Q" { Actions = "Close" }
  58. KeyPress = "Mod4 S" { Actions = "Toggle Shaded" }
  59. KeyPress = "Mod4 I" { Actions = "Toggle Iconified" }
  60. # Marking
  61. KeyPress = "Mod4 Z" { Actions = "Toggle Marked" }
  62. KeyPress = "Mod4 A" { Actions = "AttachMarked" }
  63. # Tagging
  64. KeyPress = "Mod4 T" { Actions = "Toggle Tagged False" }
  65. # Menus
  66. KeyPress = "Mod4 R" { Actions = "ShowMenu Root" }
  67. KeyPress = "Mod4 W" { Actions = "ShowMenu Window" }
  68. KeyPress = "Mod4 L" { Actions = "ShowMenu Goto" }
  69. KeyPress = "Mod4 C" { Actions = "ShowMenu GotoClient" }
  70. KeyPress = "Mod4 Shift I" { Actions = "ShowMenu Icon" }
  71. KeyPress = "Mod4 X" { Actions = "HideAllMenus" }
  72. # External Commands
  73. KeyPress = "Mod1 Print" { Actions = "Exec $_PEKWM_SCRIPT_PATH/pekwm_screenshot.sh" }
  74. KeyPress = "Mod4 E" { Actions = "Exec kitty" }
  75. # Pekwm control
  76. KeyPress = "Ctrl Mod1 Delete" { Actions = "Reload" }
  77. KeyPress = "Mod4 D" { Actions = "ShowCmdDialog" }
  78. KeyPress = "Mod4 V" { Actions = "ShowSearchDialog" }
  79. KeyPress = "Mod4 H" { Actions = "Toggle HarbourHidden" }
  80. # - - ----------------------------------------------- - -
  81. # CHAINS. These give you access to just about everything.
  82. # Move to Corner
  83. Chain = "Ctrl Mod1 C" {
  84. KeyPress = "Q" { Actions = "MoveToEdge TopLeft" }
  85. KeyPress = "Y" { Actions = "MoveToEdge TopCenterEdge" }
  86. KeyPress = "W" { Actions = "MoveToEdge TopCenterEdge" }
  87. KeyPress = "Shift Y" { Actions = "MoveToEdge TopEdge" }
  88. KeyPress = "Shift W" { Actions = "MoveToEdge TopEdge" }
  89. KeyPress = "P" { Actions = "MoveToEdge TopRight" }
  90. KeyPress = "E" { Actions = "MoveToEdge TopRight" }
  91. KeyPress = "A" { Actions = "MoveToEdge LeftCenterEdge" }
  92. KeyPress = "Shift A" { Actions = "MoveToEdge LeftEdge" }
  93. KeyPress = "L" { Actions = "MoveToEdge RightCenterEdge" }
  94. KeyPress = "D" { Actions = "MoveToEdge RightCenterEdge" }
  95. KeyPress = "Shift L" { Actions = "MoveToEdge RightEdge" }
  96. KeyPress = "Shift D" { Actions = "MoveToEdge RightEdge" }
  97. KeyPress = "Z" { Actions = "MoveToEdge BottomLeft" }
  98. KeyPress = "B" { Actions = "MoveToEdge BottomCenterEdge" }
  99. KeyPress = "X" { Actions = "MoveToEdge BottomCenterEdge" }
  100. KeyPress = "Shift B" { Actions = "MoveToEdge BottomEdge" }
  101. KeyPress = "Shift X" { Actions = "MoveToEdge BottomEdge" }
  102. KeyPress = "M" { Actions = "MoveToEdge BottomRight" }
  103. KeyPress = "C" { Actions = "MoveToEdge BottomRight" }
  104. KeyPress = "H" { Actions = "MoveToEdge Center" }
  105. KeyPress = "S" { Actions = "MoveToEdge Center" }
  106. }
  107. # Menus
  108. Chain = "Ctrl Mod1 M" {
  109. KeyPress = "R" { Actions = "ShowMenu Root" }
  110. KeyPress = "W" { Actions = "ShowMenu Window" }
  111. KeyPress = "I" { Actions = "ShowMenu Icon" }
  112. KeyPress = "G" { Actions = "ShowMenu Goto" }
  113. KeyPress = "C" { Actions = "ShowMenu GotoClient" }
  114. KeyPress = "D" { Actions = "ShowMenu Decor" }
  115. KeyPress = "A" { Actions = "ShowMenu AttachClientInFrame" }
  116. KeyPress = "F" { Actions = "ShowMenu AttachFrameInFrame" }
  117. Keypress = "Shift A" { Actions = "ShowMenu AttachClient" }
  118. Keypress = "Shift F" { Actions = "ShowMenu AttachFrame" }
  119. KeyPress = "X" { Actions = "HideAllMenus" }
  120. }
  121. # Grouping
  122. Chain = "Ctrl Mod1 T" {
  123. KeyPress = "T" { Actions = "Toggle Tagged False" }
  124. KeyPress = "B" { Actions = "Toggle Tagged True" }
  125. KeyPress = "C" { Actions = "Unset Tagged" }
  126. KeyPress = "G" { Actions = "Toggle GlobalGrouping" }
  127. KeyPress = "M" { Actions = "Toggle Marked" }
  128. KeyPress = "A" { Actions = "AttachMarked" }
  129. KeyPress = "D" { Actions = "Detach" }
  130. Keypress = "P" { Actions = "AttachClientInNextFrame" }
  131. KeyPress = "O" { Actions = "AttachClientInPrevFrame" }
  132. Keypress = "I" { Actions = "AttachFrameInNextFrame" }
  133. KeyPress = "U" { Actions = "AttachFrameInPrevFrame" }
  134. }
  135. # Decor Toggles
  136. Chain = "Ctrl Mod1 D" {
  137. KeyPress = "B" { Actions = "Toggle DecorBorder" }
  138. KeyPress = "T" { Actions = "Toggle DecorTitlebar" }
  139. KeyPress = "D" { Actions = "Toggle DecorBorder; Toggle DecorTitlebar" }
  140. }
  141. # Window Actions
  142. Chain = "Ctrl Mod1 A" {
  143. Chain = "G" {
  144. KeyPress = "G" { Actions = "MaxFill True True" }
  145. KeyPress = "V" { Actions = "MaxFill False True" }
  146. KeyPress = "H" { Actions = "MaxFill True False" }
  147. }
  148. Chain = "M" {
  149. KeyPress = "M" { Actions = "Toggle Maximized True True" }
  150. KeyPress = "V" { Actions = "Toggle Maximized False True" }
  151. KeyPress = "H" { Actions = "Toggle Maximized True False" }
  152. }
  153. Chain = "Q" {
  154. KeyPress = "Q" { Actions = "Close" }
  155. KeyPress = "F" { Actions = "CloseFrame" }
  156. KeyPress = "K" { Actions = "Kill" }
  157. }
  158. KeyPress = "S" { Actions = "Toggle Shaded" }
  159. KeyPress = "A" { Actions = "Toggle Sticky" }
  160. KeyPress = "O" { Actions = "Toggle AlwaysOnTop" }
  161. KeyPress = "B" { Actions = "Toggle AlwaysBelow" }
  162. KeyPress = "I" { Actions = "Set Iconified" }
  163. KeyPress = "R" { Actions = "Raise" }
  164. KeyPress = "Shift R" { Actions = "Raise True" }
  165. KeyPress = "L" { Actions = "Lower" }
  166. KeyPress = "Shift L" { Actions = "Lower True" }
  167. KeyPress = "X" { Actions = "ActivateOrRaise" }
  168. KeyPress = "Return" { Actions = "MoveResize" }
  169. KeyPress = "F" { Actions = "Toggle Fullscreen" }
  170. KeyPress = "Left" { Actions = "GrowDirection Left" }
  171. KeyPress = "Right" { Actions = "GrowDirection Right" }
  172. KeyPress = "Up" { Actions = "GrowDirection Up" }
  173. KeyPress = "Down" { Actions = "GrowDirection Down" }
  174. }
  175. # Moving in Frames
  176. Chain = "Ctrl Mod1 F" {
  177. KeyPress = "P" { Actions = "NextFrame AlwaysRaise" }
  178. KeyPress = "O" { Actions = "PrevFrame AlwaysRaise" }
  179. KeyPress = "Shift P" { Actions = "NextFrameMRU EndRaise" }
  180. KeyPress = "Shift O" { Actions = "PrevFrameMRU EndRaise" }
  181. KeyPress = "I" { Actions = "ActivateClientRel 1" }
  182. KeyPress = "U" { Actions = "ActivateClientRel -1" }
  183. KeyPress = "Shift I" { Actions = "MoveClientRel 1" }
  184. KeyPress = "Shift U" { Actions = "MoveClientRel -1" }
  185. KeyPress = "Up" { Actions = "FocusDirectional Up" }
  186. KeyPress = "Down" { Actions = "FocusDirectional Down" }
  187. KeyPress = "Left" { Actions = "FocusDirectional Left" }
  188. Keypress = "Right" { Actions = "FocusDirectional Right" }
  189. KeyPress = "1" { Actions = "ActivateClientNum 1" }
  190. KeyPress = "2" { Actions = "ActivateClientNum 2" }
  191. KeyPress = "3" { Actions = "ActivateClientNum 3" }
  192. KeyPress = "4" { Actions = "ActivateClientNum 4" }
  193. KeyPress = "5" { Actions = "ActivateClientNum 5" }
  194. KeyPress = "6" { Actions = "ActivateClientNum 6" }
  195. KeyPress = "7" { Actions = "ActivateClientNum 7" }
  196. KeyPress = "8" { Actions = "ActivateClientNum 8" }
  197. KeyPress = "9" { Actions = "ActivateClientNum 9" }
  198. KeyPress = "0" { Actions = "ActivateClientNum 10" }
  199. KeyPress = "C" { Actions = "ShowCmdDialog GotoClientID " }
  200. }
  201. # Workspaces
  202. Chain = "Ctrl Mod1 W" {
  203. KeyPress = "Right" { Actions = "GoToWorkspace Right" }
  204. KeyPress = "Left" { Actions = "GoToWorkspace Left" }
  205. KeyPress = "N" { Actions = "GoToWorkspace Next" }
  206. KeyPress = "P" { Actions = "GoToWorkspace Prev" }
  207. KeyPress = "1" { Actions = "GoToWorkspace 1" }
  208. KeyPress = "2" { Actions = "GoToWorkspace 2" }
  209. KeyPress = "3" { Actions = "GoToWorkspace 3" }
  210. KeyPress = "4" { Actions = "GoToWorkspace 4" }
  211. KeyPress = "5" { Actions = "GoToWorkspace 5" }
  212. KeyPress = "6" { Actions = "GoToWorkspace 6" }
  213. KeyPress = "7" { Actions = "GoToWorkspace 7" }
  214. KeyPress = "8" { Actions = "GoToWorkspace 8" }
  215. KeyPress = "9" { Actions = "GoToWorkspace 9" }
  216. KeyPress = "Up" { Actions = "SendToWorkspace Next; GoToWorkspace Next" }
  217. KeyPress = "Down" { Actions = "SendToWorkspace Prev; GoToWorkspace Prev" }
  218. KeyPress = "F1" { Actions = "SendToWorkspace 1" }
  219. KeyPress = "F2" { Actions = "SendToWorkspace 2" }
  220. KeyPress = "F3" { Actions = "SendToWorkspace 3" }
  221. KeyPress = "F4" { Actions = "SendToWorkspace 4" }
  222. KeyPress = "F5" { Actions = "SendToWorkspace 5" }
  223. KeyPress = "F6" { Actions = "SendToWorkspace 6" }
  224. KeyPress = "F7" { Actions = "SendToWorkspace 7" }
  225. KeyPress = "F8" { Actions = "SendToWorkspace 8" }
  226. KeyPress = "F9" { Actions = "SendToWorkspace 9" }
  227. }
  228. # External commands
  229. Chain = "Ctrl Mod1 E" {
  230. KeyPress = "E" { Actions = "Exec kitty" }
  231. KeyPress = "L" { Actions = "Exec xlock -mode blank &" }
  232. KeyPress = "S" { Actions = "Exec scrot &" }
  233. KeyPress = "C" { Actions = "ShowCmdDialog" }
  234. }
  235. # Wm actions
  236. Chain = "Ctrl Mod1 P" {
  237. KeyPress = "Delete" { Actions = "Reload" }
  238. KeyPress = "Next" { Actions = "Restart" }
  239. KeyPress = "End" { Actions = "Exit" }
  240. KeyPress = "Prior" { Actions = "RestartOther twm" }
  241. KeyPress = "D" { Actions = "ShowCmdDialog" }
  242. KeyPress = "H" { Actions = "Toggle HarbourHidden" }
  243. }
  244. # Skipping
  245. Chain = "Ctrl Mod1 S" {
  246. Keypress = "M" { Actions = "Toggle Skip Menus" }
  247. Keypress = "F" { Actions = "Toggle Skip FocusToggle" }
  248. Keypress = "S" { Actions = "Toggle Skip Snap" }
  249. }
  250. KeyPress = "Mod4 Space" { Actions = "SetPlacementOption SwitchGeometry 1" }
  251. ### MY KEYBINDINGS ###
  252. KeyPress = "Mod4 P" { Actions = "Exec dmenu_run"}
  253. KeyPress = "Mod1 P" { Actions = "Exec rofi -show drun -show-icons "}
  254. Chain = "Print" {
  255. KeyPress = "Print" { Actions = "Exec flameshot gui "}
  256. KeyPress = "A" { Actions = "Exec screenshot.sh full"}
  257. KeyPress = "F" { Actions = "Exec screenshot.sh focused "}
  258. KeyPress = "S" { Actions = "Exec screenshot.sh select"}
  259. KeyPress = "C" { Actions = "Exec screenshot.sh clipboard "}
  260. KeyPress = "1" { Actions = "Exec screenshot.sh 16x9"}
  261. KeyPress = "4" { Actions = "Exec screenshot.sh 4x3 "}
  262. }
  263. Chain = "Mod1 F" {
  264. KeyPress = "F2" { Actions = "Exec pamixer --decrease 10"}
  265. KeyPress = "F3" { Actions = "Exec pamixer --increase 10"}
  266. KeyPress = "F4" { Actions = "Exec pamixer --toggle-mute"}
  267. KeyPress = "F1 " { Actions = "Exec kitty -e dtach -A /tmp/cmux cmus"}
  268. KeyPress = "F2 " { Actions = "Exec cmus-remote -v -2% }
  269. KeyPress = "F2 " { Actions = "Exec pamixer --decrease 10"}
  270. KeyPress = "F3 " { Actions = "Exec pamixer --increase 10"}
  271. KeyPress = "F4 " { Actions = "Exec pamixer --toggle-mute "}
  272. KeyPress = "F3 " { Actions = "Exec cmus-remote -v +2% }
  273. KeyPress = "F5 " { Actions = "Exec cmus-remote -s }
  274. KeyPress = "F6 " { Actions = "Exec cmus-remote -r }
  275. KeyPress = "F7 " { Actions = "Exec cmus-remote -u }
  276. KeyPress = "F8 " { Actions = "Exec cmus-remote -n }
  277. KeyPress = "F9" { Actions = "Exec kitty -e dtach -A /tmp/aerx aerc"}
  278. KeyPress = "F11" { Actions = "Exec kitty -e bpytop "}
  279. KeyPress = "F12" { Actions = "Exec qalculate-gtk "}
  280. KeyPress = "F12" { Actions = "Exec kitty -e qalc"}
  281. }
  282. Chain = "Ctrl Mod1 X" {
  283. KeyPress = "X" { Actions = "Exec xkill" }
  284. KeyPress = "L" { Actions = "Exec i3lock-wrapper"}
  285. KeyPress = "P " { Actions = "Exec rofi -show drun -show-icons "}
  286. KeyPress = "Tab " { Actions = "Exec rofi -show window -show-icons "}
  287. KeyPress = "I" { Actions = "Exec cmus-notify.sh }
  288. KeyPress = "G" { Actions = "Exec steam "}
  289. KeyPress = "T" { Actions = "Exec teamspeak3"}
  290. KeyPress = "V" { Actions = "Exec qutebrowser 'qute://settings' "}
  291. KeyPress = "A" { Actions = "Exec kitty -e pulsemixer"}
  292. KeyPress = "B" { Actions = "Exec palemoon"}
  293. KeyPress = "N" { Actions = "Exec nitrogen --set-zoom-fill --random"}
  294. KeyPress = "D" { Actions = "Exec kitty -e stig "}
  295. KeyPress = "R" { Actions = "Exec redshift -b 0.95 -O 4500K"}
  296. KeyPress = "Shift R" { Actions = "Exec redshift -x"}
  297. KeyPress = "E" { Actions = "Exec emacsclient -a '' -c"}
  298. KeyPress = "F" { Actions = "Exec rox"}
  299. # KeyPress = "B" { Actions = "Exec polybar-msg cmd toggle"}
  300. }
  301. }
  302. # Keys when MoveResize is active
  303. MoveResize {
  304. KeyPress = "Left" { Actions = "MoveHorizontal -10" }
  305. KeyPress = "Right" { Actions = "MoveHorizontal 10" }
  306. KeyPress = "Up" { Actions = "MoveVertical -10" }
  307. KeyPress = "Down" { Actions = "MoveVertical 10" }
  308. Keypress = "Shift Left" { Actions = "MoveHorizontal -1" }
  309. Keypress = "Shift Right" { Actions = "MoveHorizontal 1" }
  310. Keypress = "Shift Up" { Actions = "MoveVertical -1" }
  311. Keypress = "Shift Down" { Actions = "MoveVertical 1" }
  312. Keypress = "Mod4 Left" { Actions = "ResizeHorizontal -10" }
  313. Keypress = "Mod4 Right" { Actions = "ResizeHorizontal 10" }
  314. Keypress = "Mod4 Up" { Actions = "ResizeVertical -10" }
  315. Keypress = "Mod4 Down" { Actions = "ResizeVertical 10" }
  316. Keypress = "Mod1 Left" { Actions = "ResizeHorizontal -10" }
  317. Keypress = "Mod1 Right" { Actions = "ResizeHorizontal 10" }
  318. Keypress = "Mod1 Up" { Actions = "ResizeVertical -10" }
  319. Keypress = "Mod1 Down" { Actions = "ResizeVertical 10" }
  320. Keypress = "Shift Mod4 Left" { Actions = "ResizeHorizontal -1" }
  321. Keypress = "Shift Mod4 Right" { Actions = "ResizeHorizontal 1" }
  322. Keypress = "Shift Mod4 Up" { Actions = "ResizeVertical -1" }
  323. Keypress = "Shift Mod4 Down" { Actions = "ResizeVertical 1" }
  324. Keypress = "Shift Mod1 Left" { Actions = "ResizeHorizontal -1" }
  325. Keypress = "Shift Mod1 Right" { Actions = "ResizeHorizontal 1" }
  326. Keypress = "Shift Mod1 Up" { Actions = "ResizeVertical -1" }
  327. Keypress = "Shift Mod1 Down" { Actions = "ResizeVertical 1" }
  328. Keypress = "s" { Actions = "MoveSnap" }
  329. Keypress = "Escape" { Actions = "Cancel" }
  330. Keypress = "q" { Actions = "Cancel" }
  331. Keypress = "Return" { Actions = "End" }
  332. }
  333. # Keys for CmdDialog editing
  334. InputDialog {
  335. KeyPress = "Left" { Actions = "CursPrev" }
  336. KeyPress = "Right" { Actions = "CursNext" }
  337. KeyPress = "Ctrl A" { Actions = "CursBegin" }
  338. KeyPress = "Ctrl E" { Actions = "CursEnd" }
  339. KeyPress = "BackSpace" { Actions = "Erase;CompleteAbort" }
  340. KeyPress = "Ctrl K" { Actions = "ClearFromCursor" }
  341. KeyPress = "Ctrl C" { Actions = "Clear" }
  342. KeyPress = "Return" { Actions = "Exec" }
  343. KeyPress = "Escape" { Actions = "Close" }
  344. KeyPress = "Up" { Actions = "HistPrev" }
  345. KeyPress = "Down" { Actions = "HistNext" }
  346. KeyPress = "Ctrl P" { Actions = "HistPrev" }
  347. KeyPress = "Ctrl N" { Actions = "HistNext" }
  348. KeyPress = "Ctrl B" { Actions = "CursPrev" }
  349. KeyPress = "Ctrl F" { Actions = "CursNext" }
  350. KeyPress = "Tab" { Actions = "Complete" }
  351. KeyPress = "Any Any" { Actions = "Insert" }
  352. }
  353. # Keys working in menus
  354. Menu {
  355. KeyPress = "Down" { Actions = "NextItem" }
  356. KeyPress = "Up" { Actions = "PrevItem" }
  357. KeyPress = "Ctrl N" { Actions = "NextItem" }
  358. KeyPress = "Ctrl P" { Actions = "PrevItem" }
  359. KeyPress = "1" { Actions = "GotoItem 1" }
  360. KeyPress = "2" { Actions = "GotoItem 2" }
  361. KeyPress = "3" { Actions = "GotoItem 3" }
  362. KeyPress = "4" { Actions = "GotoItem 4" }
  363. KeyPress = "5" { Actions = "GotoItem 5" }
  364. KeyPress = "6" { Actions = "GotoItem 6" }
  365. KeyPress = "7" { Actions = "GotoItem 7" }
  366. KeyPress = "8" { Actions = "GotoItem 8" }
  367. KeyPress = "9" { Actions = "GotoItem 9" }
  368. KeyPress = "Left" { Actions = "LeaveSubmenu" }
  369. KeyPress = "Right" { Actions = "EnterSubmenu" }
  370. KeyPress = "Return" { Actions = "Select" }
  371. KeyPress = "space" { Actions = "Select" }
  372. KeyPress = "Escape" { Actions = "Close" }
  373. KeyPress = "Q" { Actions = "Close" }
  374. }