My left screen is 1440p, second screen to the right is 1080 in portrait so you will have to swap the horz/vert locations to match your layout.
#!/bin/bash# Time in seconds to wait after launch of program and manipulation of window
timer=5
# Launch FreeCAD maximized on the main screen
freecad &
sleep$timer# Wait for FreeCAD to launch
wmctrl -r "FreeCAD" -b add,maximized_vert,maximized_horz
# Launch Cura on the second screen, top half
cura &
sleep$timer# Wait for Cura to launch
xdotool search --onlyvisible --name "Ultimaker Cura" windowsize 540 960 windowmove 2560 0
# Launch Firefox on the second screen, bottom half
firefox &
sleep$timer# Wait for Firefox to launch
xdotool search --onlyvisible --name "Mozilla Firefox" windowsize 540 960 windowmove 2560 960
echo"Applications have been launched and positioned."
Edit didn’t mean to imply Linux is easier than Windows to learn in general.
It is though. People just neglect that in today’s world, no one “learns” Windows from scratch.
Learning to do anything from scratch is easier on most Linux distros than on Windows. The tools are better and the documentation is light years ahead. Windows is a steaming pile of horseshit in comparison. But once you’ve made yourself a cozy nest in the middle of said pile, getting to the comfy whirlpool hot tub that is linux requires you to scale over the walls of horseshit surrounding your nest. And that is what makes people claim “but Linux hard, muh duh!”
In atleast 3 distros I wanted to add program at start-up, easy peasy on windows , Linux is mess , some has gui for that but these three distorsion HAD ZERO option for it and I still don’t know how to do it.
In windows i want to serch for here is program installed, so easy to know and find .
In Linux I had to fight multiple terminal commands ( in 2024 no less) and ev n then indid not come across whwre is the program installed
In Linux I plugged in hdd and wanted a program to acess its content, turns out I can’t do that without mumbo jumbo or wv n with it
Whwre as in windows , inplug it and VOILA! I can access it across anything.
Linux MAY be good at something , but it still sucks for real Common usage.
In Linux I wanted a window to open in a specific place on boot. Fairly simple bash script.
In Windows FUCK YOU.
With llm’s you can get a lot of bad info but for Linux commands, basic tutorials and scripting Linux is WAY easier to learn nowadays.
Edit didn’t mean to imply Linux is easier than Windows to learn in general.
Would you mind sharing that script? That sounds incredibly useful lol. I’m new-ish to linux as my daily driver and love customizing it!
of course sorry for delay.
Requirements: wmctrl, xdotool
My left screen is 1440p, second screen to the right is 1080 in portrait so you will have to swap the horz/vert locations to match your layout.
#!/bin/bash # Time in seconds to wait after launch of program and manipulation of window timer=5 # Launch FreeCAD maximized on the main screen freecad & sleep $timer # Wait for FreeCAD to launch wmctrl -r "FreeCAD" -b add,maximized_vert,maximized_horz # Launch Cura on the second screen, top half cura & sleep $timer # Wait for Cura to launch xdotool search --onlyvisible --name "Ultimaker Cura" windowsize 540 960 windowmove 2560 0 # Launch Firefox on the second screen, bottom half firefox & sleep $timer # Wait for Firefox to launch xdotool search --onlyvisible --name "Mozilla Firefox" windowsize 540 960 windowmove 2560 960 echo "Applications have been launched and positioned."
It is though. People just neglect that in today’s world, no one “learns” Windows from scratch.
Learning to do anything from scratch is easier on most Linux distros than on Windows. The tools are better and the documentation is light years ahead. Windows is a steaming pile of horseshit in comparison. But once you’ve made yourself a cozy nest in the middle of said pile, getting to the comfy whirlpool hot tub that is linux requires you to scale over the walls of horseshit surrounding your nest. And that is what makes people claim “but Linux hard, muh duh!”
In atleast 3 distros I wanted to add program at start-up, easy peasy on windows , Linux is mess , some has gui for that but these three distorsion HAD ZERO option for it and I still don’t know how to do it.
In windows i want to serch for here is program installed, so easy to know and find . In Linux I had to fight multiple terminal commands ( in 2024 no less) and ev n then indid not come across whwre is the program installed
In Linux I plugged in hdd and wanted a program to acess its content, turns out I can’t do that without mumbo jumbo or wv n with it Whwre as in windows , inplug it and VOILA! I can access it across anything.
Linux MAY be good at something , but it still sucks for real Common usage.