devilspie2 AUR installieren
gedit /home/$USER/.config/devilspie2/test.lua
Diesen Code einfügen:
-- the debug_print command does only print anything to stdout
-- if devilspie2 is run using the --debug option
-- devilspie2 --debug
debug_print("Window name: " .. get_window_name());
debug_print("Application name: " .. get_application_name());
debug_print("Window type: " .. get_window_type());
debug_print("Window role: " .. get_window_role());
debug_print("Window class: " .. get_window_class());
debug_print("Class instance: " .. get_class_instance_name());
x, y, width, height = get_window_geometry();
debug_print("X: "..x..", Y: "..y..", width: "..width..", height: "..height);
debug_print("Workspace number:" .. get_workspace_count());
debug_print("--------------------------------------------------")
if (get_application_name()=="pqiv" and get_window_name()=="pqiv: /home/dein-bild/dein-bild.png (1920x1080) 80,00% [1/1]") then
make_always_on_top();
stick_window();
end
pqiv "/home/dein-bild-oeffnen.png"
devilspie2 --debug
Und get_window_name() in der Datei /devilspie2/test.lua ändern
devilspie2 Autostart anlegen