我正在尝试设置一个键绑定(bind)来运行 rofi -show combi
无需在我的终端中输入(效果很好)。
通过 System Settings -> Shortcuts -> Custom Shortcuts 设置自定义快捷方式似乎没有任何作用:
Meta+W
rofi -show combi
我正在运行 kubuntu 18.04,并且 rofi 是通过 apt 安装的。
坦克!
最佳答案
这就是我的诀窍:
sudo nano /usr/local/bin/rofi-run
粘贴:#!/bin/bash
export LC_ALL="C"
rofi -show run 2>&1 | tee /tmp/rofi-run.log
exit 0
使文件可执行:sudo chmod +x /usr/local/bin/rofi-run
然后使用 /usr/local/bin/rofi-run
作为 settings -> shortcuts -> custom shortcuts
下的命令/URL (Modifying Shortcuts - KDE Documentation)。此外,如果出现故障,您现在可以阅读
/tmp/rofi-run.log
下的日志。
关于ubuntu - 在 KDE 上为 rofi 设置键绑定(bind)/热键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61270042/