tilix icon indicating copy to clipboard operation
tilix copied to clipboard

Automatically open maximized window when launching from applications launcher

Open bakai-taalaibek opened this issue 1 year ago • 8 comments
trafficstars

I want tilix to open maximized. I found the command "tilix --maximize", but I am not going to open tilix from terminal. I suggest to add a checkbox in the settings that always opens tilix maximized. I think the selling point of tilix is the ability to quickly and conveniently open new terminals inside of the same window. But to fully take advantage of this feature you need to maximize your window.

If I should add some lines of text somewhere to open the window maximized, please let me know.

I used to set the number of rows and columns as very big numbers, for example 200, but this methods stopped working for some reason.

bakai-taalaibek avatar Jun 01 '24 04:06 bakai-taalaibek

but I am not going to open tilix from terminal

If you open tilix using a desktop file from the menu, add --maximize to the Exec entry of this file.

cp /usr/share/applications/com.gexperts.Tilix.desktop ~/.local/share/applications

and edit it:

....
Exec=tilix --maximize
....

237dmitry avatar Jun 01 '24 09:06 237dmitry

https://github.com/gnunn1/tilix/assets/121804957/a5287584-a225-40f3-8f61-7246a1f7ed54

It doesn't work

bakai-taalaibek avatar Jun 02 '24 02:06 bakai-taalaibek

It doesn't work

In my environment it works without any problem. Arch, XFCE.

$ grep 'Exec=tilix' ./.local/share/applications/com.gexperts.Tilix.desktop
Exec=tilix --maximize
Exec=tilix --action=app-new-window
Exec=tilix --action=app-new-session
Exec=tilix --preferences

237dmitry avatar Jun 02 '24 03:06 237dmitry

I am on Fedora, Gnome, Wayland, zsh, although Tilix fails to open as maximized window in bash too.

bakai-taalaibek avatar Jun 02 '24 04:06 bakai-taalaibek

If it does not work from CLI, I guess the reason is Wayland. How does it behave on xorg? If it works from CLI, you should determine how launcher works (maybe not with desktop files)

237dmitry avatar Jun 03 '24 07:06 237dmitry

It works from CLI just fine. It also used to work if you set the number of columns as 140 and the number of rows as 34. But a couple of days ago it stopped working even if I set columns and rows and 500. The default gnome terminal opens maximized if I set a high number of columns and rows.

bakai-taalaibek avatar Jun 03 '24 16:06 bakai-taalaibek

Are there any settings for the icons in the launch area? The command may need to be specified there. I don't use Gnome and this is just a suggestion.

237dmitry avatar Jun 03 '24 18:06 237dmitry

You usually copy an appropriate file from /usr/share/applications to ~/.local/share/applications and redact the line that starts with "Exec". But it didn't help.

bakai-taalaibek avatar Jun 04 '24 03:06 bakai-taalaibek

It works now. I simply created a file .local/share/applications/tilix.desktop with the following contents Exec=tilix --maximize

I still would strongly suggest that an option is added to preferences to always open maximized

bakai-taalaibek avatar Feb 26 '25 05:02 bakai-taalaibek