How can I use Devilspie2 to bring a window to the foreground when opened? - Ask Ubuntu
i try bring lollypop main window foreground (front) when opened, using devilspie2.
i use following code in config.lua
:
if (get_window_class()=="lollypop") unmaximize(); focus(); focus_window(); end
however, can see below, lollypop opened in background.
i don't think get_window_class()
correct function problem, try get_window_name()
or get_application_name()
:
if (get_window_name()=="lollypop") unmaximize(); focus(); focus_window(); end
or run devilspie2 in terminal , check debug_print(get_window_class())
returns.
Comments
Post a Comment