KDE桌面|添加自定义快捷键

目录

Custom Shortcuts 自定义快捷键

1 Introduction

2 Managing Shortcuts and Groups

2.1 Adding Groups

2.2 Adding Shortcuts

Global Shortcut 全局快捷键

Window Action 窗口操作

Mouse Gesture Action 鼠标手势操作

Command/URL 命令/URL

D-Bus Command D-Bus 命令

Send Keyboard Input 发送键盘输入

3 示例——添加截图快捷键


原文地址:https://docs.kde.org/trunk5/en/khotkeys/kcontrol/khotkeys/khotkeys.pdficon-default.png?t=M5H6https://docs.kde.org/trunk5/en/khotkeys/kcontrol/khotkeys/khotkeys.pdf本文对原文的部分内容进行简要翻译,并在第三部分给出一个添加快捷键的示例。


Custom Shortcuts 自定义快捷键

1 Introduction

The Custom Shortcuts System Settings module allows you to configure custom keyboard short-
cuts and mouse gestures. You can use them to control applications, run specific commands, and
more.

自定义快捷键——系统设置,允许你去配置自定义的键盘快捷键和鼠标手势。你可以使用它们去控制应用程序,运行特定指令等等。

2 Managing Shortcuts and Groups

2.1 Adding Groups

The module allows to you to sort related shortcuts into Groups. For instance, if you have some
shortcuts that relate to your music player, you could create a group for them called Music Pla-
yer.

这个模块允许你把相关联的快捷键放在同一个组里。例如,如果你有一些与音乐播放有关的快捷键,你可以创建一个组,名为Music Player。

To add a new group, click on the Edit button below the left pane and select the New Group
option.

创建新组:点击左下端面板上的编辑按钮,选择新建组

2.2 Adding Shortcuts

To add a new shortcut, click on the Edit button below the left pane and select the New option.

创建新快捷键:同样是点击左下端面板上的编辑按钮,选择新建

The first menu that appears allows you to select the type of trigger. The following options are
available:

第一个菜单出现,它将允许你选择不同类型的触发器。有以下三种选择:


Global Shortcut 全局快捷键

These are standard keyboard shortcuts that will be recognized anywhere, as long as a KDE
Plasma Workspace is running.

全局快捷键是标准的键盘快捷键,只要KDE运行正常,这些快捷键在任何地方都能被使用。


Window Action 窗口操作

Window Actions are triggers that occur when something happens to a particular window,
like when it appears, gains focus, or is closed.

窗口操作的触发条件是某个特定窗口发生变化,例如窗口出现,被选中或者是被关闭。


Mouse Gesture Action 鼠标手势操作

A mouse gesture action is triggered when a particular movement of the mouse (or touchpad
or touchscreen) is performed.

鼠标手势操作的触发条件是鼠标(或平板或触摸屏)做出特定的动作。


Once you’ve selected the type of trigger, another submenu appears that allows you to select an
action type. The following types are available:

一旦你选择了特定的触发器,第二个菜单将会出现,允许你选择一种操作类型。 有以下三种选择:


Command/URL 命令/URL

This action will launch a command or open a URL when the shortcut is triggered.

当快捷键被触发时,这个操作会发出一条指令或打开一个URL。


D-Bus Command D-Bus 命令

This action will call a D-Bus method in a running application or system daemon. For more
information, see the Introduction to D-Bus on KDE developer platform.

这个操作将在正在运行的应用程序或系统守护进程中调用D-Bus方法。

了解更多有关信息,请参阅KDE developer platform上的D-Bus简介。


Send Keyboard Input 发送键盘输入

This action will send keyboard input to the currently running application, just as if you had
typed it in yourself.

这个操作将向当前运行的应用程序发送键盘输入,就像你自己敲进去的一样。


3 示例——添加截图快捷键

选择编辑>>新建>>全局快捷键>>命令/URL,输入快捷键名称。

将鼠标移动到“无”,得到提示:单击此按钮,然后按下您想在软件中使用的快捷键。

按照提示,单击“无”,设置你喜欢的快捷键。

 

根据实际情况,输入运行特定软件的指令。

在这里,我使用的截图软件是flameshot,flameshot gui是调用flameshot的指令。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值