Skip to content

feat: declarative keyboard shortcut overrides#199

Merged
luisnquin merged 1 commit into0xc000022070:mainfrom
ch1bo:keyboard-shortcuts
Jan 13, 2026
Merged

feat: declarative keyboard shortcut overrides#199
luisnquin merged 1 commit into0xc000022070:mainfrom
ch1bo:keyboard-shortcuts

Conversation

@ch1bo
Copy link
Copy Markdown
Contributor

@ch1bo ch1bo commented Jan 12, 2026

Add support to declare keyboard shortcuts to be applied on activation of the home manager generation. This follows a similar approach as the places and search modifications.

Example configuration in my dotfiles: https://github.com/ch1bo/dotfiles/blob/6dd38f41cb74269fab8ceaf865292736660ea491/home-modules/browser/zen.nix#L106-L129

    keyboardShortcutsVersion = 14; # pin to detect regressions
    keyboardShortcuts = [
      {
        id = "zen-compact-mode-toggle";
        key = "s";
        modifiers.control = true;
        modifiers.alt = true;
      }
      {
        id = "zen-compact-mode-show-sidebar"; # toggle floating sideboar
        key = "f";
        modifiers.control = true;
        modifiers.alt = true;
      }
      {
        id = "key_savePage";
        key = "s";
        modifiers.control = true;
      }
      {
        id = "key_quitApplication";
        disabled = true;
      }
    ];

Add support to declare keyboard shortcuts to be applied on activation of
the home manager generation. This follows a similar approach as the
places and search modifications.
Copy link
Copy Markdown
Member

@luisnquin luisnquin left a comment

Choose a reason for hiding this comment

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

I couldn't have done better, thank you very much for bringing this feature to this flake.

Your dotfiles looks solid too, I'd like to share it in the README! :)

@luisnquin luisnquin merged commit cd65e0c into 0xc000022070:main Jan 13, 2026
3 checks passed
@ch1bo ch1bo deleted the keyboard-shortcuts branch January 13, 2026 20:37
retX0 pushed a commit to retX0/zen-browser-flake that referenced this pull request Jan 21, 2026
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

Successfully merging this pull request may close these issues.

2 participants