Hi everyone..i am new here.
I have Ubuntu 18.04 and 4 workspaces (0-3). What i want to do is to run a simple bash script with wmctrl that opens Vivaldi browser with 3 tabs in workspace 1.
So i made this:
#!/bin/bash
wmctrl -s 1 #Switches to workspace 1 [workspaces are numbered from 0]
&vivaldi url1 &vivaldi url2 &vivaldi url3 & #Opens tabs with specific urls.
The problem is that if i have vivaldi allready opened at workspace 0 and not in workspace 1, then this script creates those tabs in workspace 0.
To start a new instance of Vivaldi in workspace 1 i can however use Ctrl+n. And then off course run the script.
So how can i enter the shortcut "Ctrl + n" into this script?
Thanks
Bookmarks