ubuntu - 在 KDE 上为 rofi 设置键绑定/热键
问题描述
我正在尝试设置一个用于运行的键绑定,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
然后在(修改快捷方式 - KDE 文档)/usr/local/bin/rofi-run
下用作命令/URL 。此外,如果出现故障,您现在可以阅读下面的日志settings -> shortcuts -> custom shortcuts
/tmp/rofi-run.log
推荐阅读
- javascript - 错误:ENOENT:没有这样的文件或目录,scandir './slash_commands'
- javascript - win10纱线找不到打字稿
- synchronization - Synology 到 TrueNAS 异地同步
- asp.net-core - ASP.NET Core:如何使用 ADO.NET(无实体框架)的工作单元创建通用存储库模式
- python - SQL Server 的 Python 数据库错误
- android - 如何操作数组/索引 [已解决]
- c# - 如何在 C# 中的 ActiveMdiChild 中仅设置字体系列或字体大小
- list - 创建多个列表并将它们存储到字典 Python
- c++ - 为什么我无法计算结果?
- flutter - XCode不断搜索flutter windows路径