首页 > 解决方案 > 在 KDE 上为 rofi 设置键绑定/热键

问题描述

我正在尝试设置一个用于运行的键绑定,rofi -show combi而无需在我的终端中键入它(这工作正常)。

通过 System Settings -> Shortcuts -> Custom Shortcuts 设置自定义快捷方式似乎没有任何作用:

我正在运行 kubuntu 18.04,并且 rofi 是通过 apt 安装的。

坦克!

标签: ubuntukey-bindingskde

解决方案


这就是我的诀窍:

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

然后在(修改快捷方式 - KDE 文档/usr/local/bin/rofi-run下用作命令/URL 。此外,如果出现故障,您现在可以阅读下面的日志settings -> shortcuts -> custom shortcuts/tmp/rofi-run.log


推荐阅读