-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
[Feature Request] Popup on changing the set #122
Comments
I think it would be a nice feature. I will investigate it later. |
I think I might able to do that. It would be helpful if you could tell me which script ultimately handles set changes, as I could avoid digging through tons of grep output. |
Okay, I got a first version working (although it's pretty dirty and inelegant): I execute the command |
I am not sure about this way of calling notification. The best option would be using qt-based notifications, because it wouldn't change our dependencies, and it would work on all systems. |
In terms of place where set is changed you can find it there: |
@vguttmann If there are none we could think about adding notifications as a linux-only feature. |
I will have a look for libraries that can do that, I'm sure that there's something out there. |
So, after taking a look, I found something in QT called |
Although there is the possibility to add notifications on all platforms through |
I think it would be better to notify users about changing sets using default linux notifications. Just like it is done here: #146 |
Yep, and it would certainly be a LOT easier. I have been tinkering for a long time now, but haven't gotten something to work yet which uses only Qt. With send-notify, I can implement that in a day or so (including setting up git once again because I had to do a clean reinstall). A day sounds pretty bad, but this would be time from reply to PR. |
I will try to deal with it now. (or at least today) |
Just wait, I'll do it, I think I still have that figured out. Just tell me which icon to use. You're managing the project, and shouldn't do all the work. |
Ok I think you could use |
Remember also that this implementation of notifications should be compiled only on UNIX-based systems. |
notify-send has one crucial limitation: If I want it to display notifications in full screen, I would have to use "urgent" as the importance, which then results in the message not clearing itself. Normal and low urgency do, but they don't work in full screen |
Otherwise I have it finished, I could submit the pull request. The command only gets sent on Linux (I assume so, I don't have a windows machine handy). notify-send has no configurable timeout (it has a timeout flag, but that one is disfunctional due to a feauture, ykwim, and the maintainer has no intention of changing it. I did implement it in Also, I have not implemented a way to disable them. |
In this case simple
You can open PR marked as a work in progress. (doing it in this way makes monitoring progress easier, and allows spotting errors earlier)
You can to it just like I did it here: https://github.com/AntiMicroX/antimicrox/pull/146/files |
Well, I got it working, but I had some fights with git, and GitHub complains about code formatting. What the hell? Git inserted stuff about the commits into the code. I don't blame git for that, but I have no idea how I did that. |
Github still complains about code formatting, but at least I have no failed builds now. It would be nice if you could take a look at it. |
I have reviewed your change. I have also described a way of dealing with formatting code. Just check in PR. |
Is your feature request related to a problem? Please describe.
There is no indication on which set is active when I change them. Controllers already have few keys, so changing presets should only occupy one button, but this means that I always need to remember the set I'm in, or I'll loose orientation.
Describe the solution you'd like
Some kind of popup or notification (that works in fullscreen as well) and shows the number/name of the set that was changed to, potentially using a normal notification on, or such a screen popup like for display brightness, volume and such on ubuntu.
Describe alternatives you've considered
I thought about doing it myself, but frankly, I would either break something or not do it properly. Don't get me wrong, I'm not tech-illiterate (if I were, I wouldn't be using Linux), but I have other stuff that demands my attention
Additional context
Upvote & Fund
The text was updated successfully, but these errors were encountered: