Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install default config file, set Pop-like keyboard shortcuts #4

Merged
merged 2 commits into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ debian/*
!debian/changelog
!debian/control
!debian/copyright
!debian/cosmic-comp.install
!debian/postinst
!debian/rules
!debian/source
Expand All @@ -11,4 +12,4 @@ target
vendor
vendor.tar
.vscode
*.log
*.log
18 changes: 14 additions & 4 deletions config.ron
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
key_bindings: {
(modifiers: [Logo, Shift], key: "Escape"): Terminate,
(modifiers: [Logo], key: "Escape"): Debug,
(modifiers: [Logo, Shift], key: "Q"): Close,
(modifiers: [Logo], key: "Q"): Close,
(modifiers: [Logo], key: "1"): Workspace(1),
(modifiers: [Logo], key: "2"): Workspace(2),
(modifiers: [Logo], key: "3"): Workspace(3),
Expand All @@ -27,9 +27,19 @@
(modifiers: [Logo], key: "Right"): Focus(Right),
(modifiers: [Logo], key: "Up"): Focus(Up),
(modifiers: [Logo], key: "Down"): Focus(Down),
(modifiers: [Logo], key: "h"): Focus(Left),
(modifiers: [Logo], key: "j"): Focus(Down),
(modifiers: [Logo], key: "k"): Focus(Up),
(modifiers: [Logo], key: "l"): Focus(Right),
//TODO: automatic orientation with Logo+o toggling
(modifiers: [Logo], key: "v"): Orientation(Vertical),
(modifiers: [Logo], key: "h"): Orientation(Horizontal),
(modifiers: [Ctrl], key: "Return"): Spawn("gnome-terminal"),
(modifiers: [Logo], key: "o"): Orientation(Horizontal),
//TODO: ability to select default web browser
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, that this will likely be done by a matching portal implementation eventually anyway.
Either the portal will bind some default shell-keys itself or e.g. cosmic-launcher will request this particular set of key bindings through a portal.

See discussion of global hotkeys on wayland:

The sets of apps provided here are a good start though. 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good to me

(modifiers: [Logo], key: "b"): Spawn("firefox"),
//TODO: ability to select default file browser
(modifiers: [Logo], key: "f"): Spawn("nautilus"),
//TODO: ability to select default terminal
(modifiers: [Logo], key: "t"): Spawn("gnome-terminal"),
},
workspace_mode: OutputBound,
)
)
1 change: 1 addition & 0 deletions debian/cosmic-comp.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config.ron etc/cosmic-comp