System Settings/Shortcuts and Gestures: Difference between revisions
No edit summary |
(Marked this version for translation) |
||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
<translate> | <translate> | ||
==Mouse Gestures== | ==Mouse Gestures== <!--T:1--> | ||
<!--T:2--> | |||
:''KDE SC version 4.4.4'' | :''KDE SC version 4.4.4'' | ||
<!--T:3--> | |||
The place where you start is "<menuchoice>System Settings -> Input Actions</menuchoice>" | The place where you start is "<menuchoice>System Settings -> Input Actions</menuchoice>" | ||
===Enabling mouse gestures=== | ===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=== | ===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 22: | Line 27: | ||
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 51: | Line 63: | ||
**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--> | ||
<!--T:41--> | |||
display the actions pop-up. (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'' | ||
<!--T:45--> | |||
[[Category:Desktop]] | [[Category:Desktop]] | ||
[[Category:System]] | [[Category:System]] | ||
[[Category:Configuration]] | [[Category:Configuration]] | ||
</translate> | </translate> |
Revision as of 11:31, 9 July 2011
Mouse Gestures
- KDE SC version 4.4.4
The place where you start is "
"Enabling mouse gestures
In the bottom left corner of the window there is a
button. Make sure that the 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
Right click on the left pane (in an empty area under the list of action groups) and choose
, 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
and choose (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
and select the tab. in the bottom of the screen there is an button (click it). In the box that just opened draw your gesture using the left mouse button.To bind an action
if you chose
simply enter that command/url under the tab at the field.Examples using Command/URL
Close window
This command will let you close the next window you mouse click on.
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
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