Как открыть один (или больше) окно терминала гнома с немногими вкладками, каждый с различным профилем, когда запускают/перезагружают компьютер?

У меня есть несколько профилей для терминала. Я могу открыть все профили на начальной загрузке, но они открываются в различных окнах этим cmd в приложениях запуска:

gnome-terminal --window-with-profile=ablack && gnome-terminal --window-with-profile=agreeen && gnome-terminal --window-with-profile=aubergine && gnome-terminal --window-with-profile=beige && gnome-terminal --window-with-profile=cyan && gnome-terminal --window-with-profile=grey && gnome-terminal --window-with-profile=orange && gnome-terminal --window-with-profile=white && gnome-terminal --window-with-profile=yellow && gnome-terminal --window-with-profile=ablack    

Я пытался открыть одно окно с несколькими вкладками с этим cmd без успеха:

gnome-terminal --window-with-profile=ablack && gnome-terminal --tab-with-profile=agreeen && gnome-terminal --tab-with-profile=aubergine && gnome-terminal --tab-with-profile=beige && gnome-terminal --tab-with-profile=cyan && gnome-terminal --tab-with-profile=grey && gnome-terminal --tab-with-profile=orange && gnome-terminal --tab-with-profile=white && gnome-terminal --tab-with-profile=yellow && gnome-terminal --tab-with-profile=ablack   

Как заставить его работать?

2
задан 5 September 2017 в 20:02

1 ответ

Открыть a gnome-terminal окно с немногими вкладками мы должны использовать опцию --tab. Посмотрите gnome-terminal --help-all. Также в man gnome-terminal мы можем найти это объяснение:

--window-with-profile=PROFILENAME
     Open a new window containing a tab with the given profile. 
     More than one of these options can be provided.
--tab-with-profile=PROFILENAME
     Open a tab in the window with the given profile. 
     More than one of these options can be provided, to open several tabs.

Так, для открытия gnome-terminal окно с немногими вкладками, мы должны использовать команду в качестве этого:

gnome-terminal --tab-with-profile=ProfileA --tab-with-profile=ProfileB --tab-with-profile=ProfileC

Составьте свою собственную команду и протестируйте ее в терминал. Если это работает, удовлетворительно добавляют его как запись в Приложениях Запуска:

enter image description here

Существует немного возможных подходов, как открыть немногих gnome-terminal окна с немногими вкладками в каждом. Я предложил бы использовать команду следующим образом:

gnome-terminal --tab-with-profile=ProfileA --tab-with-profile=ProfileB && gnome-terminal --tab-with-profile=ProfileC --tab-with-profile=ProfileD

Другая идея состоит в том, чтобы создать отдельную запись Приложений Запуска для каждого gnome-terminal окно.

4
ответ дан 2 December 2019 в 02:14

Другие вопросы по тегам:

Похожие вопросы: