Saturday, May 4, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 3700  / 2 Years ago, mon, july 4, 2022, 3:10:37

I want my Tilix to be started with 2 split on right and two splits on bottom.


I highly expected this to be available through preferences, but only found a command input. Then using
tilix -a session-add-right made a session creating-and-terminating loop which didn't help.


More From » command-line

 Answers
2

Surprisingly, there indeed appears no direct way to indicate Tilix to always start with a certain configuration. You can achieve it in a somewhat more convoluted way. Key is to save a .json configuration file of your current session, then load Tilix with that session using the --session option.


Open Tilix, and open splits the way you want. Then hit Ctrl+S to save the session. Specify a name for the .json configuration file. You could save the configuration file for example as .config/tilix-split. You can then open tilix with


tilix --session=~/.config/tilix-split.json

in the desired layout.


▶ To conveniently launch tilix this way in a terminal, you can create an alias:


alias tilix="tilix --session=~/.config/tilix-split.json"

▶ To launch it this way from a keyboard shortcut, specify the full command for the keyboard shortcut.


▶ To launch it this way from your application menu, you need to customize the launcher of Tilix:



  • Copy the file /usr/share/applications/com.gexperts.Tilix.desktop to the folder .local/share/applications under your home folder.

  • Edit the copy, and change the line that reads Exec=tilix to Exec=tilix --session=~/.config/tilix-split.json.


[#1622] Tuesday, July 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainsbeave

Total Points: 280
Total Questions: 98
Total Answers: 105

Location: Faroe Islands
Member since Sat, Aug 20, 2022
2 Years ago
;