LM 20.1 Cin. 64bit - Devilspie2 often failing. Why?

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
Centauri39
Level 4
Level 4
Posts: 324
Joined: Sun Mar 23, 2014 2:20 pm

LM 20.1 Cin. 64bit - Devilspie2 often failing. Why?

Post by Centauri39 »

Since I'm on a dual monitor system (both monitors are set to 1920x1080 and the right one is the main one), I'm trying to solve the issue of apps and windows being launched on the wrong monitor.
So, I tried the devilspie2 tool and created for example this script called devilspie2.lua in the /.config/devilspie2 folder:

Code: Select all

if (get_window_name() == "Add wallpaper folders") then
  set_window_geometry(2420, 220, 800, 600);
end

if (get_window_name() == "HydraPaper") then
set_window_geometry(1960, 0, 1840, 1040);
end

if (get_window_name() == "Preferences") then
  set_window_geometry(2420, 200, 800, 600);
end
But often, especially the "Preferences" window (it belongs to "HydraPaper") is still appearing on the wrong monitor. It's only randomly on the right one.

How can I be sure, it is always on the right monitor, please?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Scripts & Bash”