quatquatt / nixos

My NixOS config
3 stars 1 forks source link

Make all apps appear instantly in alt-tab menu when opened #28

Open quatquatt opened 1 month ago

quatquatt commented 1 month ago

When an app is installed via Home-Manager, it doesn't seem to refresh some Gnome caches when opened. This means that it takes around 15 seconds to show up in the alt-tab menu. This is frustrating and would be ideal if it was resolved.

Ideas for fixes include:

quatquatt commented 1 month ago

Update: I found some form of a fix to this. Albeit imperfect, it does technically work.

dconf.settings =
{
  "org/gnome/desktop/wm/keybindings" =
  {
      switch-applications = [ "<Super>Tab" ];
      switch-applications-backward = [ "<Shift><Super>Tab" ];
      switch-windows = [ "<Alt>Tab" ];
      switch-windows-backward = [ "<Shift><Alt>Tab" ];
  };
};

The switch-windows menu seems to be properly cached with home-manager, which switch-applications isn't. The only issue now is that the switch-windows menu is much uglier. Hopefully there's a BETTER option.

quatquatt commented 1 month ago

This reddit post may be a better real fix:

https://www.reddit.com/r/NixOS/comments/1dsamfh/comment/lcr3hkx/

quatquatt commented 1 month ago

It seems to not be a home-manager issue, but actually a nixos issue. More testing required in a VM to ensure it's a clean environment.