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

Allow custom command instead of application selection #73

Open
the-solipsist opened this issue Aug 25, 2023 · 3 comments
Open

Allow custom command instead of application selection #73

the-solipsist opened this issue Aug 25, 2023 · 3 comments

Comments

@the-solipsist
Copy link

First off, thank you for this excellent extension.

I'd like to open up kitty, but with a custom config file using kitty --config /path/to/dropdown-kitty.conf. But as things stand, I can only select applications in the accelerator tab, and I can't provide custom commands. Could this be changed so that custom commands can be executed instead of just applications?

@eaon
Copy link
Contributor

eaon commented Aug 25, 2023

Regular kitty and "quake-mode" kitty have different configurations in my setup as well, so I concur, such a change would be useful to me as well.

As a workaround for not having this built-in to the extension, it is possible to create a custom kitty-quake-mode.desktop file in ~/.config/share/applications/. Mine looks approximately like this:

[Desktop Entry]
Type=Application
Exec=kitty --class=quake --instance-group=quake --config ~/.config/kitty/dropdown.conf
Hidden=false
Name=kitty quake-mode
StartupWMClass=quake

Hope this helps!

@the-solipsist
Copy link
Author

the-solipsist commented Aug 25, 2023

Thanks, @eaon. That's very helpful. Would you mind sharing the diff between your dropdown.conf and your regular kitty.conf? I'm particularly interested in knowing how you configure options like remember_window_size, hide_window_decorations, initial_window_{width,height}. (Also, I think you meant ~/.local/share/applications and not ~/.config/share/applications.)

@the-solipsist
Copy link
Author

Update: I tried the new desktop entry option, but that leads to a bunch of issues:

  1. Using a custom desktop entry kills the functionality of making the terminal disappear when you press the accelerator key (F12, in my case) a second time.
  2. The terminal doesn't show up as per the size and with the orientation provided in the settings for quake-mode.
  3. I get a notification that says: launch kitty-quake-mode.desktop timeout.

I'm using EndeavourOS (Arch-based) with Gnome 44.4.

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