2022-03-28 23:45:30 +02:00
|
|
|
(
|
|
|
|
|
key_bindings: {
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [Super, Shift], key: "Escape"): Terminate,
|
2023-12-31 04:52:04 +11:00
|
|
|
(modifiers: [Super, Ctrl], key: "Escape"): Debug,
|
2024-04-05 14:09:52 -06:00
|
|
|
(modifiers: [Super], key: "Escape"): Spawn("loginctl lock-session"),
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [Super], key: "q"): Close,
|
2022-11-10 18:42:11 +01:00
|
|
|
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [Super], key: "1"): Workspace(1),
|
|
|
|
|
(modifiers: [Super], key: "2"): Workspace(2),
|
|
|
|
|
(modifiers: [Super], key: "3"): Workspace(3),
|
|
|
|
|
(modifiers: [Super], key: "4"): Workspace(4),
|
|
|
|
|
(modifiers: [Super], key: "5"): Workspace(5),
|
|
|
|
|
(modifiers: [Super], key: "6"): Workspace(6),
|
|
|
|
|
(modifiers: [Super], key: "7"): Workspace(7),
|
|
|
|
|
(modifiers: [Super], key: "8"): Workspace(8),
|
|
|
|
|
(modifiers: [Super], key: "9"): Workspace(9),
|
|
|
|
|
(modifiers: [Super], key: "0"): LastWorkspace,
|
|
|
|
|
(modifiers: [Super, Shift], key: "1"): MoveToWorkspace(1),
|
|
|
|
|
(modifiers: [Super, Shift], key: "2"): MoveToWorkspace(2),
|
|
|
|
|
(modifiers: [Super, Shift], key: "3"): MoveToWorkspace(3),
|
|
|
|
|
(modifiers: [Super, Shift], key: "4"): MoveToWorkspace(4),
|
|
|
|
|
(modifiers: [Super, Shift], key: "5"): MoveToWorkspace(5),
|
|
|
|
|
(modifiers: [Super, Shift], key: "6"): MoveToWorkspace(6),
|
|
|
|
|
(modifiers: [Super, Shift], key: "7"): MoveToWorkspace(7),
|
|
|
|
|
(modifiers: [Super, Shift], key: "8"): MoveToWorkspace(8),
|
|
|
|
|
(modifiers: [Super, Shift], key: "9"): MoveToWorkspace(9),
|
|
|
|
|
(modifiers: [Super, Shift], key: "0"): MoveToLastWorkspace,
|
2022-11-10 18:42:11 +01:00
|
|
|
|
2023-11-16 19:28:00 +01:00
|
|
|
(modifiers: [Super, Ctrl, Alt], key: "Left"): MoveToOutput(Left),
|
|
|
|
|
(modifiers: [Super, Ctrl, Alt], key: "Down"): MoveToOutput(Down),
|
|
|
|
|
(modifiers: [Super, Ctrl, Alt], key: "Up"): MoveToOutput(Up),
|
|
|
|
|
(modifiers: [Super, Ctrl, Alt], key: "Right"): MoveToOutput(Right),
|
|
|
|
|
(modifiers: [Super, Ctrl, Alt], key: "h"): MoveToOutput(Left),
|
|
|
|
|
(modifiers: [Super, Ctrl, Alt], key: "k"): MoveToOutput(Down),
|
|
|
|
|
(modifiers: [Super, Ctrl, Alt], key: "j"): MoveToOutput(Up),
|
|
|
|
|
(modifiers: [Super, Ctrl, Alt], key: "l"): MoveToOutput(Right),
|
2022-11-10 18:42:11 +01:00
|
|
|
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [Super], key: "Period"): NextOutput,
|
|
|
|
|
(modifiers: [Super], key: "Comma"): PreviousOutput,
|
|
|
|
|
(modifiers: [Super, Shift], key: "Period"): MoveToNextOutput,
|
|
|
|
|
(modifiers: [Super, Shift], key: "Comma"): MoveToPreviousOutput,
|
2022-11-10 18:42:11 +01:00
|
|
|
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [Super], key: "Left"): Focus(Left),
|
|
|
|
|
(modifiers: [Super], key: "Right"): Focus(Right),
|
|
|
|
|
(modifiers: [Super], key: "Up"): Focus(Up),
|
|
|
|
|
(modifiers: [Super], key: "Down"): Focus(Down),
|
|
|
|
|
(modifiers: [Super], key: "h"): Focus(Left),
|
|
|
|
|
(modifiers: [Super], key: "j"): Focus(Down),
|
|
|
|
|
(modifiers: [Super], key: "k"): Focus(Up),
|
|
|
|
|
(modifiers: [Super], key: "l"): Focus(Right),
|
|
|
|
|
(modifiers: [Super], key: "u"): Focus(Out),
|
|
|
|
|
(modifiers: [Super], key: "i"): Focus(In),
|
2022-11-10 18:42:11 +01:00
|
|
|
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [Super, Shift], key: "Left"): Move(Left),
|
|
|
|
|
(modifiers: [Super, Shift], key: "Right"): Move(Right),
|
|
|
|
|
(modifiers: [Super, Shift], key: "Up"): Move(Up),
|
|
|
|
|
(modifiers: [Super, Shift], key: "Down"): Move(Down),
|
|
|
|
|
(modifiers: [Super, Shift], key: "h"): Move(Left),
|
|
|
|
|
(modifiers: [Super, Shift], key: "j"): Move(Down),
|
|
|
|
|
(modifiers: [Super, Shift], key: "k"): Move(Up),
|
|
|
|
|
(modifiers: [Super, Shift], key: "l"): Move(Right),
|
2022-11-10 18:42:11 +01:00
|
|
|
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [Super], key: "o"): ToggleOrientation,
|
|
|
|
|
(modifiers: [Super], key: "s"): ToggleStacking,
|
|
|
|
|
(modifiers: [Super], key: "y"): ToggleTiling,
|
|
|
|
|
(modifiers: [Super], key: "g"): ToggleWindowFloating,
|
|
|
|
|
(modifiers: [Super], key: "x"): SwapWindow,
|
2023-09-28 10:30:48 -06:00
|
|
|
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [Super], key: "m"): Maximize,
|
|
|
|
|
(modifiers: [Super], key: "r"): Resizing(Outwards),
|
|
|
|
|
(modifiers: [Super, Shift], key: "r"): Resizing(Inwards),
|
2022-11-10 18:42:11 +01:00
|
|
|
|
2023-10-04 11:59:12 -04:00
|
|
|
(modifiers: [Super], key: "b"): Spawn("xdg-open http://"),
|
|
|
|
|
(modifiers: [Super], key: "f"): Spawn("xdg-open ~"),
|
2022-04-11 12:50:00 -06:00
|
|
|
//TODO: ability to select default terminal
|
2023-12-31 05:00:53 +11:00
|
|
|
(modifiers: [Super], key: "t"): Spawn("cosmic-term"),
|
2023-10-04 11:59:12 -04:00
|
|
|
|
2023-11-20 14:24:27 -05:00
|
|
|
(modifiers: [Super], key: "a"): Spawn("cosmic-app-library"),
|
|
|
|
|
(modifiers: [Super], key: "w"): Spawn("cosmic-workspaces"),
|
|
|
|
|
(modifiers: [Super], key: "slash"): Spawn("cosmic-launcher"),
|
|
|
|
|
(modifiers: [Super]): Spawn("cosmic-launcher"),
|
2024-05-20 22:10:47 -04:00
|
|
|
(modifiers: [Alt], key: "Tab"): Spawn("cosmic-launcher alt-tab"),
|
2024-05-24 12:18:13 -04:00
|
|
|
(modifiers: [Super], key: "Tab"): Spawn("cosmic-launcher alt-tab"),
|
2022-11-28 10:44:54 -05:00
|
|
|
|
2023-12-31 05:00:53 +11:00
|
|
|
(modifiers: [], key: "Print"): Spawn("cosmic-screenshot"),
|
|
|
|
|
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [], key: "XF86AudioRaiseVolume"): Spawn("amixer sset Master 5%+"),
|
|
|
|
|
(modifiers: [], key: "XF86AudioLowerVolume"): Spawn("amixer sset Master 5%-"),
|
|
|
|
|
(modifiers: [], key: "XF86AudioMute"): Spawn("amixer sset Master toggle"),
|
2024-03-22 20:13:30 -07:00
|
|
|
(modifiers: [], key: "XF86AudioMicMute"): Spawn("amixer sset Capture toggle"),
|
2023-10-02 13:03:40 -05:00
|
|
|
(modifiers: [], key: "XF86MonBrightnessUp"): Spawn("busctl --user call com.system76.CosmicSettingsDaemon /com/system76/CosmicSettingsDaemon com.system76.CosmicSettingsDaemon IncreaseDisplayBrightness"),
|
|
|
|
|
(modifiers: [], key: "XF86MonBrightnessDown"): Spawn("busctl --user call com.system76.CosmicSettingsDaemon /com/system76/CosmicSettingsDaemon com.system76.CosmicSettingsDaemon DecreaseDisplayBrightness"),
|
2022-03-29 14:41:09 +02:00
|
|
|
},
|
2023-11-14 12:24:16 +01:00
|
|
|
data_control_enabled: false,
|
2023-10-04 11:59:12 -04:00
|
|
|
)
|