Skip to content

[Feature Request] Add application focus command #1048

Open
@sdistefano

Description

@sdistefano

Describe the problem/motivation

I like to have quick shortcuts to focus on applications I often use wherever they are. In i3, the focus command allows us to do this. GlazeWM seems unable to. The solution I came up with:

  - commands: ['shell-exec powershell -windowstyle hidden -command "$edgeProcess = Get-Process -Name firefox -ErrorAction SilentlyContinue | Where-Object { $_.MainWindowHandle -ne 0 }; if ($edgeProcess) { (New-Object -ComObject wscript.shell).AppActivate($edgeProcess.Id) } else { Start-Process firefox }"']

is too slow and cumbersome.

Describe the solution you'd like

I would like a command that can focus on an app and take the user to the workplace it is at, just like in i3. We should be able to identify apps with the same system that we currently use to apply window_rules to them.

Alternatives considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    📬 Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions