[SOLVED] Howto set a new right edge on a display

GilbertMint

New Member
Joined
Feb 12, 2020
Messages
8
Reaction score
7
Credits
39
Hi all
I just finished a app. that stay on the right hand side of my main monitor, to display pertinent system information (at least for me)
I want to move the right edge of the virtual display, so when I open a window maximize it not going under my app.
ps: look at the pic.
Been looking everywhere for a month now and could not find a good exemple on how to implement that.
Any help or pointer will be greathly appreciate.
Linux Ubuntu 20.10
QtCreator 5.12

Screenshot at 2021-03-03 17-36-18.png
 
Last edited:


OP
G

GilbertMint

New Member
Joined
Feb 12, 2020
Messages
8
Reaction score
7
Credits
39
Just solve-it with a system call from the app with.

xprop -name "MainWindow" -format _NET_WM_STRUT_PARTIAL 32c -set _NET_WM_STRUT_PARTIAL "0, 340, 0, 0, 0, 0, 0, 1440, 0, 0, 0, 0"

I did figure _NET_WM_STRUT_PARTIAL
left=0;
right=340; // space used by the dock on the right hand side of the screen
top=0;
bottom=0;

left_start_y=0;
left_end_y=0;
right_start_y=0; // the top of the screen (pos = 0)
right_end_y=1440; // to the bottom of the screen

top_start_x=0;
top_end_x=0;
bottom_start_x=0;
bottom_end_x=0;


Hope this might help somebody else.
Gilbert
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top