解决Ubuntu25.04无法使用快捷键打开

1.修复建议:

bash 复制代码
Fedora and Ubuntu (since 17.04) start Wayland session by default. Ulauncher in Wayland does not receive hotkey events when triggered from some windows (like terminal or OS Settings).

Please follow these steps to fix that:

Install package wmctrl (needed to activate app focus)
Open Ulauncher Preferences and set hotkey to something you'll never use
Open Settings > Keyboard (may be named "Keyboard Shortcuts"), then scroll down to Customize Shortcuts > Custom Shortcuts > +
In Command enter ulauncher-toggle, set name and shortcut, then click Add
If you followed the instructions and Ulauncher still doesn't get focus when launched, try the workaround in this comment.

Another option is to switch from Wayland to X11:

Log out
Click on a gear box and select GNOME on Xorg
Set Ulauncher hotkey as usual

2.解决办法

  1. 打开系统设置(Settings)> 键盘(Keyboard)> 快捷键(Shortcuts)> 自定义快捷键(Custom Shortcuts)> 点击"+"添加。

  2. 在命令(Command)一栏中,输入ulauncher-toggle(如果这个命令有效的话)。但是根据uLauncher的文档,可能我们需要使用一个脚本来确保uLauncher获得焦点。

    复制代码
    /usr/bin/ulauncher-toggle --hide-window
相关推荐
zhangrelay9 分钟前
Ubuntu 18.04 经典 / 有趣 / 实用 APT 软件清单
linux·笔记·学习·ubuntu
the_fat_bird1 小时前
ubuntu install nvidia gpu driver
linux·运维·ubuntu
zhangrelay2 小时前
ROS Kinetic-信号与系统-趣味案例
linux·笔记·学习·ubuntu
星马梦缘13 小时前
如何切换window-ubuntu双系统【方案二】
linux·运维·ubuntu
WaiSaa17 小时前
Ubuntu配置Git免密操作
git·ubuntu·gitee
星马梦缘19 小时前
如何切换window-ubuntu双系统【方案一】
linux·ubuntu·双系统
醇氧1 天前
WSL 安装 Ubuntu 完整步骤(Windows 10/11 通用,极简无脑版)
linux·windows·ubuntu
酸钠鈀1 天前
AI M61SDK Ubuntu 环境搭建
linux·运维·ubuntu
Riu_Peter1 天前
【技巧】如何在 Ubuntu 中安装 .deb 软件包
linux·chrome·ubuntu
HABuo1 天前
【linux(四)】套接字编程--基于UDP协议的客户端服务端
linux·服务器·c++·网络协议·ubuntu·udp·centos