System Settings/Shortcuts and Gestures/it: Difference between revisions

From KDE UserBase Wiki
(Created page with "Fai clic su <menuchoice>Nuova azione</menuchoice> e seleziona la scheda <menuchoice>Attivazione</menuchoice>. Nella parte inferiore della schermata c'è un pulsante <menuchoice>m...")
(Created page with "====Per associare un'azione====")
Line 22: Line 22:
Fai clic su <menuchoice>Nuova azione</menuchoice> e seleziona la scheda <menuchoice>Attivazione</menuchoice>. Nella parte inferiore della schermata c'è un pulsante <menuchoice>modifica</menuchoice> (fai clic), nel riquadro che si è appena aperto traccia il tuo gesto utilizzando il tasto ''sinistro'' del mouse.
Fai clic su <menuchoice>Nuova azione</menuchoice> e seleziona la scheda <menuchoice>Attivazione</menuchoice>. Nella parte inferiore della schermata c'è un pulsante <menuchoice>modifica</menuchoice> (fai clic), nel riquadro che si è appena aperto traccia il tuo gesto utilizzando il tasto ''sinistro'' del mouse.


====To bind an action====
====Per associare un'azione====


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.

Revision as of 11:44, 9 July 2011

Gesti del mouse

KDE SC versione 4.4.4

Il punto da cui partire è "Impostazioni di sistema -> Azioni di immissione"

Abilitare i gesti del mouse

Nell'angolo in basso a sinistra della finestra c'è un pulsante Impostazioni. Assicurati che il segno di spunta Gesti sia selezionato. Imposta il tempo massimo come preferisci. Il tasto del mouse potrebbe essere differente per te, ho scelto 3 per utilizzare quello destro. Se vuoi che le azioni di immissione siano abilitate automaticamente, seleziona "Esegui il demone delle azioni di immissione all'accesso" sopra.

Creare il gruppo azioni di immissione del mouse

Fai clic destro sul riquadro a sinistra (in un punto vuoto sotto l'elenco dei gruppi di azioni) e scegli Nuovo gruppo, rinominalo in "Gesti del mouse" e seleziona la casella di controllo collegata al suo nome.

Creare un nuovo gesto del mouse

D'ora in poi darò per scontato che il nuovo gruppo si chiama "Gesti del mouse". Fai clic destro su Gesti del mouse e scegli Nuovo->Azione gesto del mouse (qui ci sono tre opzioni, ma non sono riuscito a lavorare con "Invia immissione da tastiera"), utilizzando "Comando/URL" o "Comando D-Bus" avrai bisogno di creare un gesto ed associarvi un'azione.

Per creare un gesto

Fai clic su Nuova azione e seleziona la scheda Attivazione. Nella parte inferiore della schermata c'è un pulsante modifica (fai clic), nel riquadro che si è appena aperto traccia il tuo gesto utilizzando il tasto sinistro del mouse.

Per associare un'azione

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