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.

gif animation

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

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User