There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

ATDA ,

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.


<span style="color:#323232;">#!/bin/bash
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Time in seconds to wait after launch of program and manipulation of window
</span><span style="color:#323232;">timer=5
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Launch FreeCAD maximized on the main screen
</span><span style="color:#323232;">freecad &
</span><span style="color:#323232;">sleep $timer  # Wait for FreeCAD to launch
</span><span style="color:#323232;">wmctrl -r "FreeCAD" -b add,maximized_vert,maximized_horz
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Launch Cura on the second screen, top half
</span><span style="color:#323232;">cura &
</span><span style="color:#323232;">sleep $timer  # Wait for Cura to launch
</span><span style="color:#323232;">xdotool search --onlyvisible --name "Ultimaker Cura" windowsize 540 960 windowmove 2560 0
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Launch Firefox on the second screen, bottom half
</span><span style="color:#323232;">firefox &
</span><span style="color:#323232;">sleep $timer  # Wait for Firefox to launch
</span><span style="color:#323232;">xdotool search --onlyvisible --name "Mozilla Firefox" windowsize 540 960 windowmove 2560 960
</span><span style="color:#323232;">
</span><span style="color:#323232;">echo "Applications have been launched and positioned."
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines