Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Keybindings #55

Open
cadadr opened this issue Jun 3, 2021 · 0 comments
Open

Keybindings #55

cadadr opened this issue Jun 3, 2021 · 0 comments
Labels
enhancement New feature or request feature

Comments

@cadadr
Copy link
Owner

cadadr commented Jun 3, 2021

Whether through #40, or through whatever other means PyGObject allows (I gues DBus would be the most likely candidate), keybindings that could control pomodorino would be very useful.

They could be as such: Super+P is the leader key, and the following key indicates the action. So, e.g. Super+P, <Return> is "advance state", Super+P, <Space> is pause/resume, Super+P, <Backspace> is cancel, Super+P, <Escape> is skip break, Super+P, S is settings, etc.

Implementationwise the above might be tricky. Guess Super+P would be the global shortcut, and would result in some call into Pomodorino, which could use maybe an invisible window or something to steal focus for the span of one keydown+keyup event, and act on that key. The global shortcut would be set at the system level, whatever means the DE provides, but the second level keys would be set up in the settings modal, probably in a "keybindings" tab, and get synced to gsettings as an array or something. Each action would have a handler in the App object.

@cadadr cadadr added enhancement New feature or request feature labels Jun 3, 2021
@cadadr cadadr added this to the First stable release (v1.x) milestone Jun 3, 2021
This was referenced Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request feature
Projects
None yet
Development

No branches or pull requests

1 participant