You are not logged in.
When I start the grafical enviroment I would like to open some windows in different workspace. But modify the xstartup file does not seems to work.
this is my xstartup file:
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
xfce4-terminal --geometry 180x24+60+650 -e 'dmesg --time-format=iso -w' &
wmctrl -r :ACTIVE: -t 3 &
xfce4-terminal --geometry 80x28+1060+70 --default-working-directory=/mnt/DiskPools/ -e 'wmctrl -r :ACTIVE: -t 3' &
xfce4-terminal --geometry 80x28+1060+70 --default-working-directory=/mnt/DiskPools/ &
xfce4-terminal --geometry 80x28+1060+70 --default-working-directory=/mnt/DiskPools/ &
xfce4-terminal --geometry 80x28+1060+70 --default-working-directory=/mnt/DiskPools/
I tryed to use wmctrl after the windows is created or as a command within the window itself but it does not seems to work.
Is there a way to acheve this ?
I am running Debian 12.
Regards
Albert
Offline
What is this xstartup file you are using? Are you connecting over vnc perhaps? How are you logging into Xfce?
Have a look at devilspie or devilspie2 for a solution that automates window movement/placement.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
yes that is the xstartup file I am using. and yes I connect via vnc.
I will look at devilspie , I need to call in the xstartup too. I guess ?
Thanks
Albert
Offline
I tryed to use wmctrl after the windows is created or as a command within the window itself but it does not seems to work.
Why don't you switch to the desktop first, then launch the application ?
wmctrl -s 0
xfce4-terminal --geometry 180x24+60+650 -e 'dmesg --time-format=iso -w' &
EndeavourOS
Xfce+gtk3-classic (no CSD)+Picom
Offline
albert67 wrote:I tryed to use wmctrl after the windows is created or as a command within the window itself but it does not seems to work.
Why don't you switch to the desktop first, then launch the application ?
wmctrl -s 0 xfce4-terminal --geometry 180x24+60+650 -e 'dmesg --time-format=iso -w' &
Thanks for the suggestion
I try with the following xstartup:
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
xfce4-terminal --geometry 80x28+1060+70 --default-working-directory=/mnt/DiskPools/ &
wmctrl -s 1 &
xfce4-terminal --geometry 80x28+1060+70 --default-working-directory=/mnt/DiskPools/
But still I get the two windows on the first Workspace
:-(
Offline
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 540.35 KiB (Peak: 541.2 KiB) ]