warpdotdev / warpdotdev/warp

Global hotkey working inconsistently (linux)

Open
#4,274 18 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:settings-keybindings bug os:linux ready-to-implement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Discord username (optional)

No response

Describe the bug

I've set the global hotkey to F12. When I press this button on an empty dekstop or in an application that doesn't use this hotkey themselves, the keypress goes to that application instead. For example, it would open firefox's developer settings instead of the terminal.

To reproduce

Set the global hotkey to F12 -> confirm it's working -> go to firefox -> press F12

Expected behavior

Warp opens

Screenshots

No response

Operating system

Linux

Operating system and version

Ubuntu 23.10

Shell Version

zsh 5.9 (x86_64-ubuntu-linux-gnu)

Current Warp version

v0.2024.02.20.08.01.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

Might be related to the way ubuntu handles hotkeys. Other project have ran into this issue as well. See https://github.com/Guake/guake/issues/1012.

A common workaround is to make a global shortcut through the system settings to call a command that toggles the terminal. If a command like such exists for warp (i.e. warp-terminal toggle), it would be a solid workaround for users encountering this issue.

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. First reproduce the F12 behavior on Ubuntu 23.10 with Firefox, then trace Warp's Linux global-hotkey handling; done means F12 opens Warp instead of being passed to the foreground application, or a documented toggle command provides the stated workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.