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

Workspace navigation with shortcuts #401

Open
RingOfStorms opened this issue Oct 10, 2024 · 3 comments
Open

Workspace navigation with shortcuts #401

RingOfStorms opened this issue Oct 10, 2024 · 3 comments

Comments

@RingOfStorms
Copy link

I am not sure if I should report this here or on real cosmic since this is my entry for using cosmic.

When I have "Workspaces -> Displays Have Separate Workspaces" (the default) enabled and have multiple monitors:

  • I cannot use super + j/k/ip/down to go up a workspace. Instead my cursor focuses on my other monitor and I am unable to go up a workspace via keyboard (I have to use workspace menu now).
  • I can still go down just not up

Workaround for now: Select "Workspaces Span Displays", now going up and down is how I expect it to work with super + up/down (but not great if you don't want this behavior)

@RingOfStorms
Copy link
Author

Okay I think I just don't understand where or how to change this shortcut. It is the ctrl + super + up/down that works. I want to remove ctrl part and replace the focus window ones. I've tried to clear the existing shortcuts and add to "Focus next workspace" but adding shortcuts simply does nothing, no feed back at all.

image
image
It always clears itself even if I "set" them

@RingOfStorms
Copy link
Author

RingOfStorms commented Oct 11, 2024

I also can't add custom keyboard shortcuts, the add keybinding button does nothing

image

Edit: It seems like it is just not possible to bind super+enter, but other bindings can work for this command.

@RingOfStorms
Copy link
Author

Alright I gave up on the UI but was able to get everything working manually editing the custom.ron file for keyboard shortcuts.

I also had to look at cosmic source to find the list of all possible "actions" since I didn't know how to move workspaces:
https://github.com/pop-os/cosmic-settings/blob/master/cosmic-settings/src/pages/input/keyboard/shortcuts/mod.rs#L460-L550

Example of a custom file:
https://git.joshuabell.xyz/dotfiles/~files/master/modules/de/cosmic/config/com.system76.CosmicSettings.Shortcuts/v1/custom

{
    (
        modifiers: [
            Super,
        ],
        key: "l",
    ): Focus(Right),
    (
        modifiers: [
            Super,
        ],
        key: "j",
    ): NextWorkspace,
    (
        modifiers: [
            Super,
        ],
        key: "h",
    ): Focus(Left),
    (
        modifiers: [
            Super,
        ],
        key: "k",
    ): PreviousWorkspace,
    (
        modifiers: [
            Super,
        ],
        key: "Return",
    ): Spawn("alacritty"),
    (
        modifiers: [
            Super,
        ],
        key: "space",
        description: Some("launcher"),
    ): System(Launcher),
    (
        modifiers: [
            Super,
        ],
    ): System(WorkspaceOverview),
    (
        modifiers: [
            Super,
        ],
        key: "Right",
    ): Disable,
    (
        modifiers: [
            Super,
        ],
        key: "Down",
    ): Disable,
    (
        modifiers: [
            Super,
        ],
        key: "Left",
    ): Disable,
    (
        modifiers: [
            Super,
        ],
        key: "Up",
    ): Disable,

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant