fsobolev / timeswitch

Power off, reboot, suspend, send a notification or execute any command on timer. ⏲️ Written in Python using LibAdwaita.
https://flathub.org/apps/details/io.github.fsobolev.TimeSwitch
Other
36 stars 8 forks source link

Make the app easy to use with only keyboard #49

Closed fsobolev closed 1 year ago

fsobolev commented 1 year ago

I want to provide keyboard shortcuts to easily access most of UI elements in the app. Probably something like this:

Setup

Actions

Commands

Running

About button will be replaced with menu button, the menu will contain "Keyboard shortcuts", "About" and "Quit" (same as Ctrl+Q shortcut).

gregorni commented 1 year ago

Do you think Esc might be better for back option? Also, some of the options don't need Ctrl, I'd say, for instance Pause or Stop.

gregorni commented 1 year ago

Btw, you entered the same shortcut for Minutes and Mode.

fsobolev commented 1 year ago

Btw, you entered the same shortcut for Minutes and Mode.

Oh, right, something different is needed for Mode.

Do you think Esc might be better for back option?

It doesn't follow the pattern of other shortcuts, but I think it will be fine to have both Ctrl+Backspace and Esc for this option.

Also, some of the options don't need Ctrl, I'd say, for instance Pause or Stop.

I will try to use just "P" and "S", I'm not sure it will work well, I don't know if these shortcuts will be triggered when a user type these letters in entries.

gregorni commented 1 year ago

I will try to use just "P" and "S", I'm not sure it will work well, I don't know if these shortcuts will be triggered when a user type these letters in entries.

True, I hadn't thought about that. I guess we'll have to see about that.

Oh, right, something different is needed for Mode.

How about ModE? ;P

gregorni commented 1 year ago

Also, Esc to pause the timer would be nice, I think.

fsobolev commented 1 year ago

How about ModE? ;P

Or keep Ctrl+M for Mode, but use Alt+H/M/S for spins, and also Alt+R for Reset.

gregorni commented 1 year ago

That's a good idea! That way, all the options of the upper input field are Alt, which is kind of cool.

gregorni commented 1 year ago

How about Ctrl + Enter to start the timer?

gregorni commented 1 year ago

There's also Space to pause... @fsobolev What do you think?