rszyma / kanata-tray

Tray Icon for Kanata
GNU General Public License v3.0
65 stars 1 forks source link

Feature request: Custom icons for succesful live reload and backup mode #26

Closed caph1993 closed 4 months ago

caph1993 commented 4 months ago

I would like to be able to see in the tray icon, without clicking it, whether a livereload triggered from the keyboard after modifying the source file worked-out or not. Any of these two, could do the job, but I think none of them are currently implemented:

  1. Custom icon if the configuration is using the backup mode.
  2. Custom quick 1-second icon if the configuration was reloaded succesfully.
  3. (or both :) )
rszyma commented 4 months ago

Custom icon if the configuration is using the backup mode.

What is backup mode?

Custom quick 1-second icon if the configuration was reloaded succesfully.

Sounds good. kanata already sends via tcp info on livereload, we just need to use it https://github.com/jtroo/kanata/blob/620d82fa04255b34750e9b6b1459381bcec0dd1d/tcp_protocol/src/lib.rs#L9

caph1993 commented 4 months ago

What is backup mode?

When the configuration file has a syntax error, kanata uses the last configuration that worked. This is what I meant by "backup".

rszyma commented 4 months ago

Added icon blink on reload to main

rszyma commented 4 months ago

https://github.com/user-attachments/assets/89c7ea89-740d-4493-84cb-9507d6fdca62

currently, there's no event from kanata tcp server when configuration reload fails, so first to detect failed config reload need to add this to kanata first