Ckb-next: [Feature Request] Notifications when profiles change

Created on 21 May 2019  Â·  6Comments  Â·  Source: ckb-next/ckb-next

Can there eventually be a feature where you can have a notification when a profile is switched? That would be a great addition to ckb-next!

Most helpful comment

IMO It'd be useful if you have multiple similar profiles/modes and are switching between them using a keyboard button/key, since you can't see the name.

All 6 comments

I'm struggling to find a use case for this; the only way to change profiles
is manually, so notifying somebody that yes, they did just change the
profile feels a bit redundant. If someone wants it in a notification they
can invoke Zenity.

On Tue, 21 May 2019, 01:58 thespyboss, notifications@github.com wrote:

Can there eventually be a feature where you can have a notification when a
profile is switched? That would be a great addition to ckb-next!

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ckb-next/ckb-next/issues/416?email_source=notifications&email_token=AALPDW2YZIRDMGFN4MF6HUDPWNCLNA5CNFSM4HOGQDS2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GU3CKBQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALPDW3EDT3STNMZLQZXGHTPWNCLNANCNFSM4HOGQDSQ
.

IMO It'd be useful if you have multiple similar profiles/modes and are switching between them using a keyboard button/key, since you can't see the name.

I wonder how to set that up? I might start looking on how to set that up in a few days.

And Also, @ZirconiumX it would be like that ICUE notification system. Like for me, I have a few profiles that are the same but have different animations. It would be nice to get like a small banner like the one in ICUE to know which profile i just switched to.

I wonder how to set that up?

You will need to read about Qt slots and signals. Once you figure out how these work, if I'm not mistaken, one is emitted whenever a mode changes in the GUI. Keep in mind that each device has its own mode with its own name and information, as devices are handled separately.

You can connect a handler to the slot, and then over Qt's DBus bindings send a desktop notification.
https://doc.qt.io/qt-5/qdbusinterface.html
https://developer.gnome.org/notification-spec/

Make sure the notification part is modular (its own class), as it will eventually need to be implemented for mac and windows as well.

What about attaching the notification system to the Change mode settings? The signal could be changed with the user's preference of which key would change the profiles.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Unaccounted4 picture Unaccounted4  Â·  6Comments

nameispanduh picture nameispanduh  Â·  15Comments

gaoxing840 picture gaoxing840  Â·  8Comments

Aimela picture Aimela  Â·  4Comments

ckb-next-bot picture ckb-next-bot  Â·  8Comments