Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically open maximized window when launching from applications launcher #2223

Open
bakai-taalaibek opened this issue Jun 1, 2024 · 8 comments

Comments

@bakai-taalaibek
Copy link

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.

@237dmitry
Copy link

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
....

@bakai-taalaibek
Copy link
Author

Screencast.from.2024-06-02.08-49-05.mp4

It doesn't work

@237dmitry
Copy link

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

@bakai-taalaibek
Copy link
Author

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

@237dmitry
Copy link

237dmitry commented Jun 3, 2024

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)

@bakai-taalaibek
Copy link
Author

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.

@237dmitry
Copy link

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.

@bakai-taalaibek
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants