I would like to open the page chrome://newtab (a.k.a. the "New Tab" page) in an existing chromium window using the command-line.
this opens a new window with an empty tab:
chromium-browser chrome://newtabthis opens a new tab with the entered URL:
chromium-browser It seems that the first terminal command doesn't recognize newtab as a URL like it does in the second one. Can the call be modified somehow to open a new tab?
2 Answers
A couple of options to consider...
1) Find an existing instance of Chromium, activate the window, and send Ctrl+t to open a new tab:
xdotool search --onlyvisible --name 'Chromium' windowactivate --sync key --clearmodifiers --window 0 ctrl+t
2) Open the about:blank page in a new tab:
chromium-browser 'about:blank'
#1 does exactly what you want.
#2 is cheesy.
Open a New Tab and look at the Developer Tools - Sources tab. URL for New Tab is:
chrome-search://local-ntp/local-ntp.htmlThis will open a new tab in existing Chromium instance:
chromium chrome-search://local-ntp/local-ntp.html 1