System Settings/Shortcuts and Gestures: Difference between revisions

From KDE Wiki Sandbox
(Copied content from System Settings)
 
(Marked this version for translation)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Mouse Gestures==
<languages />
<translate>


:''KDE SC version 4.4.4''
<!--T:46-->
{|class="tablecenter vertical-centered"
|[[Image:Settings-shortcuts-and-gestures.png|300px|thumb|center]]
|Edit system wide keyboard shortcuts and mouse gestures
|}


The place where you start is "<menuchoice>System Settings -> Input Actions</menuchoice>"
<!--T:47-->
{{PreferenceHelp}}


===Enabling mouse gestures===
<!--T:48-->
__TOC__


<!--T:49-->
{{PrefIcon|Preferences-desktop-keyboard.png|Custom Shortcuts}}
<!--T:50-->
Here you edit settings for input actions, including [[Special:myLanguage/System_Settings/Shortcuts_and_Gestures#Mouse Gestures|mouse gestures]].
<!--T:51-->
{{PrefIcon|Preferences-desktop-keyboard.png|Standard Keyboard Shortcuts}}
<!--T:52-->
Here you can configure the keyboard shortcuts for a number of actions common to many applications. This includes actions such as ''Open'', ''Save'', ''Close'', ''Cut'', ''Copy'', ''Paste'', ''Find'', and many more.
<!--T:53-->
{{PrefIcon|Preferences-desktop-keyboard.png|Global Keyboard Shortcuts}}
<!--T:54-->
Global keyboard shortcuts are used to interface with applications that do not display an interface. Settings for such shortcuts are edited here.
</translate><span id="Mouse Gestures"></span><translate>
==Mouse Gestures== <!--T:1-->
<!--T:55-->
{{Note|1=This section was written for KDE SC version 4.4.4. In KDE SC version 4.5 and later, the layout and organization of the system settings modules has changed somewhat. However, apart from a little moving around of some dialog elements this section should still be valid}}
<!--T:57-->
[[Image:Settings-shortcuts-and-gestures.png|300px|thumb|right|Mouse gestures settings.]]
<!--T:3-->
The place where you start is <menuchoice>System Settings -> Input Actions</menuchoice> (in KDE SC 4.5 it is <menuchoice>System Settings -> Shortcuts and Gestures -> Custom Shortcuts</menuchoice>)
===Enabling mouse gestures=== <!--T:4-->
<!--T:5-->
In the bottom left corner of the window there is a <menuchoice>Settings</menuchoice> button.  Make sure that the <menuchoice>Gestures</menuchoice> checkbox is checked.  Set the timout as you see fit.  The mouse button might be different for you, I chose 3 for using the right mouse button.  If you want input actions to be enabled automatically, check the "Start the input Actions daemon on login" above.
In the bottom left corner of the window there is a <menuchoice>Settings</menuchoice> button.  Make sure that the <menuchoice>Gestures</menuchoice> checkbox is checked.  Set the timout as you see fit.  The mouse button might be different for you, I chose 3 for using the right mouse button.  If you want input actions to be enabled automatically, check the "Start the input Actions daemon on login" above.


===Creating the Mouse gestures actions group===  
<!--T:58-->
Also to have any gestures working you need to have the individual gestures themself enabled.
 
===Creating the Mouse gestures actions group=== <!--T:6-->


<!--T:7-->
Right click on the left pane (in an empty area under the list of action groups) and choose <menuchoice>New Group</menuchoice>, rename that group to "Mouse Gestures" and check the checkbox attached to its name.
Right click on the left pane (in an empty area under the list of action groups) and choose <menuchoice>New Group</menuchoice>, rename that group to "Mouse Gestures" and check the checkbox attached to its name.


===Creating a new mouse gesture===
===Creating a new mouse gesture=== <!--T:8-->


<!--T:9-->
From now on I will assume that the new group is called "Mouse Gestures".
From now on I will assume that the new group is called "Mouse Gestures".
Right click on <menuchoice>Mouse Gestures</menuchoice> and choose <menuchoice>New -> Mouse Gesture Action</menuchoice>
Right click on <menuchoice>Mouse Gestures</menuchoice> and choose <menuchoice>New -> Mouse Gesture Action</menuchoice>
Line 20: Line 68:
using "Command/URL" or "D-Bus Command" you will need to create a gesture and bind an action to it.
using "Command/URL" or "D-Bus Command" you will need to create a gesture and bind an action to it.


====To create the gesture====
====To create the gesture==== <!--T:10-->


<!--T:11-->
Click on your <menuchoice>New Action</menuchoice> and select the <menuchoice>Trigger</menuchoice> tab.
Click on your <menuchoice>New Action</menuchoice> and select the <menuchoice>Trigger</menuchoice> tab.
in the bottom of the screen there is an <menuchoice>Edit</menuchoice> button (click it).  In the box that just opened draw your gesture using the ''left'' mouse button.
in the bottom of the screen there is an <menuchoice>Edit</menuchoice> button (click it).  In the box that just opened draw your gesture using the ''left'' mouse button.


====To bind an action====
====To bind an action==== <!--T:12-->


<!--T:13-->
if you chose <menuchoice>Command/URL</menuchoice> simply enter that command/url under the <menuchoice>Action</menuchoice> tab at the <menuchoice>Command/URL</menuchoice> field.
if you chose <menuchoice>Command/URL</menuchoice> simply enter that command/url under the <menuchoice>Action</menuchoice> tab at the <menuchoice>Command/URL</menuchoice> field.


===Examples using Command/URL===
===Examples using Command/URL=== <!--T:14-->


====Close window====
====Close window==== <!--T:15-->


<!--T:16-->
This command will let you close the next window you mouse click on.
This command will let you close the next window you mouse click on.
{{Note|wmctrl may not support your Window Manager.}}
{{Note|wmctrl may not support your Window Manager.}}


<!--T:17-->
{{Input|1=Command/URL: wmctrl -c :SELECT:}}
{{Input|1=Command/URL: wmctrl -c :SELECT:}}


<!--T:18-->
to close the active window
to close the active window


<!--T:19-->
{{Input|1=Command/URL: wmctrl -c :ACTIVE:}}
{{Input|1=Command/URL: wmctrl -c :ACTIVE:}}


====Translate clipboard content====
====Translate clipboard content==== <!--T:20-->


<!--T:21-->
This command will display a translation of the current clipboard content.
This command will display a translation of the current clipboard content.
*'''Required for this are:'''
*'''Required for this are:'''
Line 49: Line 104:
**libtranslate
**libtranslate


<!--T:22-->
{{Input|<syntaxhighlight lang="bash">Command/URL: kdialog --title "Translation" --msgbox "`xclip -o | translate -f en -t he -`"</syntaxhighlight>}}
{{Input|<syntaxhighlight lang="bash">Command/URL: kdialog --title "Translation" --msgbox "`xclip -o | translate -f en -t he -`"</syntaxhighlight>}}
Replace 'en' and 'he' with the desired source and destination language, if you are not sure, a full list of language codes is available from [http://www.loc.gov/standards/iso639-2/php/code_list.php the ISO 639-2] list.
Replace 'en' and 'he' with the desired source and destination language, if you are not sure, a full list of language codes is available from [http://www.loc.gov/standards/iso639-2/php/code_list.php the ISO 639-2] list.


===Examples using D-Bus===
===Examples using D-Bus=== <!--T:23-->


<!--T:24-->
If you chose D-Bus, here are few examples.
If you chose D-Bus, here are few examples.


<!--T:25-->
Finding out what to fill where, is done with the help of the "Launch D-Bus Browser", using that browser you can find what method you wish to call in what application object.  Using D-Bus we need to fill some fields, the field name will be regular and the content ''italic''.
Finding out what to fill where, is done with the help of the "Launch D-Bus Browser", using that browser you can find what method you wish to call in what application object.  Using D-Bus we need to fill some fields, the field name will be regular and the content ''italic''.


====Runner====
====Runner==== <!--T:26-->


<!--T:27-->
This will display the '''Runner''' dialog.
This will display the '''Runner''' dialog.


<!--T:28-->
Remote Application: ''org.kde.krunner''
Remote Application: ''org.kde.krunner''


<!--T:29-->
Remote Object: ''/App''
Remote Object: ''/App''


<!--T:30-->
Function: ''org.kde.krunner.App.display''
Function: ''org.kde.krunner.App.display''


====Audacious next/previous/pause/play/stop/repeat track====
====Audacious next/previous/pause/play/stop/repeat track==== <!--T:31-->


<!--T:32-->
Remote Application: ''org.mpris.audacious''
Remote Application: ''org.mpris.audacious''


<!--T:33-->
Remote Object: ''/Player''
Remote Object: ''/Player''


<!--T:34-->
Function: ''org.freedesktop.MediaPlayer.'''Next''''' (replace Next with Prev/Pause/Stop/Play/Repeat)
Function: ''org.freedesktop.MediaPlayer.'''Next''''' (replace Next with Prev/Pause/Stop/Play/Repeat)


====Audacious PlayPause track====
====Audacious PlayPause track==== <!--T:35-->


<!--T:36-->
If not playing will play, if playing will pause.
If not playing will play, if playing will pause.


<!--T:37-->
Remote Application: ''org.mpris.audacious''
Remote Application: ''org.mpris.audacious''


<!--T:38-->
Remote Object: ''/org/atheme/audacious''
Remote Object: ''/org/atheme/audacious''


<!--T:39-->
Function: ''org.atheme.audacious.PlayPause''
Function: ''org.atheme.audacious.PlayPause''


====Klipper manually invoke action menu====
====Klipper manually invoke action menu==== <!--T:40-->


display the actions pop-up.
<!--T:41-->
(I am using that to search and translate words)
display the actions pop-up. (I am using that to search and translate words)


<!--T:42-->
Remote Application: ''org.kde.klipper''
Remote Application: ''org.kde.klipper''


<!--T:43-->
Remote Object: ''/klipper''
Remote Object: ''/klipper''


<!--T:44-->
Function: ''org.kde.klipper.klipper.showKlipperManuallyInvokeActionMenu''
Function: ''org.kde.klipper.klipper.showKlipperManuallyInvokeActionMenu''


==== See also ==== <!--T:56-->
*[[Special:MyLanguage/Browser Configuration/Mousegestures for all Browsers|Browser Configuration/Mousegestures for all Browsers]] - Premade gestures for file and web browsers
<!--T:45-->
[[Category:Desktop]]
[[Category:Desktop]]
[[Category:System]]
[[Category:System]]
[[Category:Configuration]]
[[Category:Configuration]]
</translate>

Latest revision as of 05:04, 14 September 2016

Edit system wide keyboard shortcuts and mouse gestures
Information
If you know something about these preferences then please help us by adding information. Don't worry about formatting. We will help you ensure that your text is properly formatted.


Custom Shortcuts

Here you edit settings for input actions, including mouse gestures.

Standard Keyboard Shortcuts

Here you can configure the keyboard shortcuts for a number of actions common to many applications. This includes actions such as Open, Save, Close, Cut, Copy, Paste, Find, and many more.

Global Keyboard Shortcuts

Global keyboard shortcuts are used to interface with applications that do not display an interface. Settings for such shortcuts are edited here.

Mouse Gestures

Note
This section was written for KDE SC version 4.4.4. In KDE SC version 4.5 and later, the layout and organization of the system settings modules has changed somewhat. However, apart from a little moving around of some dialog elements this section should still be valid


Mouse gestures settings.


The place where you start is System Settings -> Input Actions (in KDE SC 4.5 it is System Settings -> Shortcuts and Gestures -> Custom Shortcuts)

Enabling mouse gestures

In the bottom left corner of the window there is a Settings button. Make sure that the Gestures checkbox is checked. Set the timout as you see fit. The mouse button might be different for you, I chose 3 for using the right mouse button. If you want input actions to be enabled automatically, check the "Start the input Actions daemon on login" above.

Also to have any gestures working you need to have the individual gestures themself enabled.

Creating the Mouse gestures actions group

Right click on the left pane (in an empty area under the list of action groups) and choose New Group, rename that group to "Mouse Gestures" and check the checkbox attached to its name.

Creating a new mouse gesture

From now on I will assume that the new group is called "Mouse Gestures". Right click on Mouse Gestures and choose New -> Mouse Gesture Action (here there are three options but I didn't manage to work with "Send Keyboard Input") using "Command/URL" or "D-Bus Command" you will need to create a gesture and bind an action to it.

To create the gesture

Click on your New Action and select the Trigger tab. in the bottom of the screen there is an Edit button (click it). In the box that just opened draw your gesture using the left mouse button.

To bind an action

if you chose Command/URL simply enter that command/url under the Action tab at the Command/URL field.

Examples using Command/URL

Close window

This command will let you close the next window you mouse click on.

Note
wmctrl may not support your Window Manager.


Command/URL: wmctrl -c :SELECT:

to close the active window

Command/URL: wmctrl -c :ACTIVE:

Translate clipboard content

This command will display a translation of the current clipboard content.

  • Required for this are:
    • xclip
    • libtranslate
Command/URL: kdialog --title "Translation" --msgbox "`xclip -o | translate -f en -t he -`"

Replace 'en' and 'he' with the desired source and destination language, if you are not sure, a full list of language codes is available from the ISO 639-2 list.

Examples using D-Bus

If you chose D-Bus, here are few examples.

Finding out what to fill where, is done with the help of the "Launch D-Bus Browser", using that browser you can find what method you wish to call in what application object. Using D-Bus we need to fill some fields, the field name will be regular and the content italic.

Runner

This will display the Runner dialog.

Remote Application: org.kde.krunner

Remote Object: /App

Function: org.kde.krunner.App.display

Audacious next/previous/pause/play/stop/repeat track

Remote Application: org.mpris.audacious

Remote Object: /Player

Function: org.freedesktop.MediaPlayer.Next (replace Next with Prev/Pause/Stop/Play/Repeat)

Audacious PlayPause track

If not playing will play, if playing will pause.

Remote Application: org.mpris.audacious

Remote Object: /org/atheme/audacious

Function: org.atheme.audacious.PlayPause

Klipper manually invoke action menu

display the actions pop-up. (I am using that to search and translate words)

Remote Application: org.kde.klipper

Remote Object: /klipper

Function: org.kde.klipper.klipper.showKlipperManuallyInvokeActionMenu

See also