common.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. export class Shortcut {
  2. static _shortcutList = [
  3. 'keybinding-rotation',
  4. 'keybinding-resize',
  5. 'keybinding-move',
  6. 'keybinding-close',
  7. 'keybinding-search',
  8. 'keybinding-open-settings',
  9. 'keybinding-maximize',
  10. 'keybinding-move-left',
  11. 'keybinding-move-right',
  12. 'keybinding-move-top',
  13. 'keybinding-move-bottom',
  14. 'keybinding-resize-left',
  15. 'keybinding-resize-right',
  16. 'keybinding-resize-top',
  17. 'keybinding-resize-bottom',
  18. 'keybinding-next-monitor',
  19. 'keybinding-next-workspace',
  20. 'keybinding-previous-workspace',
  21. 'keybinding-focus',
  22. 'keybinding-focus-left',
  23. 'keybinding-focus-right',
  24. 'keybinding-focus-top',
  25. 'keybinding-focus-bottom',
  26. ];
  27. static getShortcuts() {
  28. return Shortcut._shortcutList;
  29. }
  30. }
  31. export class Switches {
  32. static _switchList = [];
  33. static getSwitches() {
  34. return Switches._switchList;
  35. }
  36. }
  37. export class Spin {
  38. static _spinList = [
  39. 'tile-padding',
  40. ];
  41. static getSpins() {
  42. return Spin._spinList;
  43. }
  44. }
  45. export class Combo {
  46. static _comboList = [
  47. {
  48. key: 'keybinding-config',
  49. rowNames: [
  50. 'None',
  51. 'i3',
  52. 'Grimble',
  53. 'Custom',
  54. ],
  55. },
  56. ];
  57. static getCombo() {
  58. return Combo._comboList;
  59. }
  60. }
  61. export class Radio {
  62. static _radioButtons = [
  63. // {
  64. // key: 'tile-insertion-behavior',
  65. // rowNames: [
  66. // 'insertion_best_fit_row',
  67. // 'insertion_focus_row'
  68. // ]
  69. // },
  70. {
  71. key: 'monitor-tile-insertion-behavior',
  72. rowNames: [
  73. 'monitors_best_fit_row',
  74. 'monitors_focus_row',
  75. ],
  76. },
  77. {
  78. key: 'search-entry-position',
  79. rowNames: [
  80. 'search_entry_left',
  81. 'search_entry_center',
  82. 'search_entry_right',
  83. ],
  84. },
  85. {
  86. key: 'fullscreen-switch',
  87. rowNames: [
  88. 'keep_fullscreen',
  89. 'quit_fullscreen',
  90. ],
  91. },
  92. ];
  93. static getRadios() {
  94. return Radio._radioButtons;
  95. }
  96. }