HunterThueson / dots

Dotfiles for my NixOS configuration
GNU Lesser General Public License v2.1
0 stars 0 forks source link

enable desktop notifications for chess-related events/info #69

Open HunterThueson opened 1 year ago

HunterThueson commented 1 year ago

Enable desktop notifications for when:

a) it is my move in a correspondence game on chess.com b) Daniel Naroditsky or GothamChess go live on Twitch c) I have not yet solved the daily puzzle on chess.com

They should not be intrusive or annoying -- especially in the case of a) -- but they should still be timely and visible. I'm imagining a set of custom icons on polybar (or whatever bar I end up implementing when I finally switch window managers) that would pop up in the system tray and maybe wiggle/bounce for a second or two until I click on it.

Upon left-clicking on the icon, it should automatically take me to the event's respective website (chess.com for a) and c), twitch.tv for b)). It should NOT do so if I already have the website open, except in the unlikely scenario that I have twitch.tv open but am watching a different stream. If I am already on chess.com (playing a rapid game, for instance), the notification should not appear at all unless I have not responded to the trigger event for over an hour.

Upon right-clicking the icon, a drop-down menu should appear with options to a) navigate to the website (same as a left-click); b) silence notifications in the given category for 30 mins, 1 hour, 3 hours, 1 day, or until I turn them on again; c) clear the notification without responding to it just this once; or d) remind me later (at certain time intervals matching the options given in option b).

In the long term, I plan on creating my own native Linux client for chess.com. If/when this project has been completed, I will change the links from each icon dealing with chess.com content to a link that opens my custom client instead of the browser. That's a long way off, though, if I ever even get around to it.