Change kitty task manager icon to Neovim when using Neovim

I wrote 2 Window Rules for 2 reasons one is purely esthetic the 2nd one is for it to be easier to differentiate kitty with neovim from other kitty instances.

[Change icon back to kitty]
Description=Change icon to back to kitty
desktopfile=kitty
desktopfilerule=2
title=^(?!nvim)
titlematch=3
wmclass=kitty
wmclassmatch=1

[kitty - change icon to neovim]
Description=kitty - change icon to neovim
desktopfile=nvim
desktopfilerule=2
title=^nvim
titlematch=3
wmclass=kitty
wmclassmatch=1

If there’s a better method then please do share cause this is more of a hack ig.

1 Like

Thank you so much!
Obviously, I should make better use of Windows Rules beyond merely setting window position and size.

1 Like