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

Add the swaymsg flag to launch a program with swaymsg exec and prevent potential involuntary closing with Jetbrains IDEs #101

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

gouvinb
Copy link
Contributor

@gouvinb gouvinb commented Oct 31, 2023

Description

This pull request adds the swaymsg flag to the nwg-drawer command to launch a program with the swaymsg exec command. This prevents potential unintentional closure with Jetbrains IDEs.

Advantages

  • Prevents unintentional closing of programs launched with no swaymsg exec and no terminal
  • Improves stability of Jetbrains IDEs

Instructions

To use this new feature, simply add the -swaymsg flag to the nwg-drawer command, or set the XDG_CURRENT_DESKTOP environment variable to "sway".

Example

Before

rubymine # without -term, -swaymsg and without XDG_CURRENT_DESKTOP=sway

After

swaymsg exec firefox # with -swaymsg or with XDG_CURRENT_DESKTOP=sway

…revent potential involuntary closing with Jetbrains IDEs
@nwg-piotr
Copy link
Owner

Looks good, thank you.

For feature parity we should also have nwg-drawer -hyprctl -> hyprctl dispatch exec <command>.

@nwg-piotr nwg-piotr merged commit ccfe777 into nwg-piotr:main Nov 5, 2023
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

Successfully merging this pull request may close these issues.

2 participants