Comments (15)
I was thinking about something mpv-like: "m" to change to the next mode and "Shift-m" to change to the previous mode. And similar for other settings, but with different buttons (maybe "c" for channels, "r" for roundness, "p" for color profiles, etc).
from cavalier.
Most of the settings can now be changed using keyboard shortcuts. Shortcuts dialog is not modal, so you can open it and still have main window active and use shortcuts without closing shortcuts dialog.
When it makes sense, pressing a key increases a value, while Shift+key decreases it. Changing mode or profile goes indefinitely in circle, so for example if you press P when the last profile is active it will change to the first profile.
N is used for Margin
because M will be used for Mirror. E is used for Re
verse because R and O are already in use.
from cavalier.
I think if we group the settings the way they are now, with the "Change …" settings listed first and the "Toggle …" settings second, it should be consistent enough.
from cavalier.
Okay, I'll get working on it. Thanks for the tip!
from cavalier.
I think maybe "." and "," would be better because they're right next to each other. I think the arrow keys are quite important keys and should be responsible for more important settings. Also, there are 4 arrow keys, so I think they should be reserved for a setting that benefits from that amount of keys.
from cavalier.
I like that! would it be possible to do something like "r" + "+" and "r" + "-" for changing roundness?
Edit: Forgot you meant "r" and "Shift" + "r", so forget about it.
from cavalier.
Awesome, thanks!
from cavalier.
I think a setting such a sharp window corners doesn't need 2 keyboard shortcuts, though. It only has two options, so one shortcut to toggle between those two states should be enough, right?
from cavalier.
I think a setting such a sharp window corners doesn't need 2 keyboard shortcuts, though. It only has two options, so one shortcut to toggle between those two states should be enough, right?
Settings that have only 2 states indeed only require 1 shortcut. I just found it logical to provide Key / Shift+Key
shortcuts for everything for consistency. But if you think it's excessive I can remove Shift+Key
shortcuts for such settings.
from cavalier.
Hmm. What do you think?
from cavalier.
@gregorni Looks good to me :) To actually remove shortcuts you can remove lines like these in shortcuts.py
:
shortcut_controller.add_shortcut(Gtk.Shortcut.new( \
Gtk.ShortcutTrigger.parse_string("<Shift>S"), \
Gtk.NamedAction.new("cavalier.toggle-corners")))
Feel free to open a PR 😊
from cavalier.
@gregorni I changed "Change Widgets Style" -> "Toggle Widgets Style", so it's the same as with other 2-state settings and use one shortcut
from cavalier.
I was about to ask you about that.
from cavalier.
For consistency it would also be better to have the Toggle Widgets Style listed below the Change Color Profile shortcut.
from cavalier.
For consistency it would also be better to have the Toggle Widgets Style listed below the Change Color Profile shortcut.
Yeah, I don't mind. I listed shortcuts in the same order as in the preferences window, but I think it's good to make an exception for this one.
from cavalier.
Related Issues (20)
- Add background image HOT 1
- Increase max line thickness HOT 1
- Disable window shadow
- Elements get squished in streched window HOT 2
- More intuitive renaming of color profiles HOT 3
- Feedback on settings export HOT 1
- Reverse the default order of bars HOT 3
- Opinion - demo image is better logo than current logo HOT 4
- Merge Line & Wave into one HOT 2
- Option to have it as a desktop 'widget' HOT 3
- Framerate issue when scaling to whole monitor. HOT 35
- Feature Request - Attach to specific application HOT 1
- Import / Export issue HOT 2
- Make keyboard shortcuts follow GNOME HIG HOT 11
- app starting errors after update gtk4 pkg to vers 4.10 on archlinux HOT 3
- Change orientation of bars HOT 2
- i don´t make this please if you from braziliam to be continued with this project HOT 1
- Automatic Sensitivity Increase HOT 3
- Weird peaks behavior at maximum smooth/Странное поведение пик при максимальном сглаживании HOT 1
- make background transparent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cavalier.