Plasma/Krunner/fr: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 15: | Line 15: | ||
You can launch programs by simply typing the name of the application you want to launch - or even simpler: press the down-arrow key for list of ''most recently used'' programs you typed in beforehand. Note that the down-arrow from the above screenshot is currently no longer existing, so the keyboard instead of the mouse is to be used exclusively. | You can launch programs by simply typing the name of the application you want to launch - or even simpler: press the down-arrow key for list of ''most recently used'' programs you typed in beforehand. Note that the down-arrow from the above screenshot is currently no longer existing, so the keyboard instead of the mouse is to be used exclusively. | ||
You | You may type a single character and KRunner will start finding matches. Matches will be found to applications from your easily customizable applications menu (for that, right-click in menu). | ||
Exemples : | Exemples : | ||
Line 27: | Line 27: | ||
Notez que le mot-clé <code>tuer</code> peut être modifier dans le runner « Terminer des applications ». | Notez que le mot-clé <code>tuer</code> peut être modifier dans le runner « Terminer des applications ». | ||
===Direct installation=== | |||
In case that you look for an application that has not been installed yet, KRunner will suggest a set of applications that match your search. In specific, since KRunner has been integrated with Plasma Software Center, [[Special:myLanguage/Discover | Discover]], will present you a list of applications, enabling you to proceed to direct installation. | |||
===Issue (shell) commands=== | ===Issue (shell) commands=== | ||
Line 45: | Line 49: | ||
|} | |} | ||
Incidentally, if the command line is your thing, you may appreciate the built in integration to man pages. Simply type a command name preceded by a <code>#</code> to open the man page formatted for easy readability in your browser. | Incidentally, if the command line is your thing, you may appreciate the built in integration to man pages. Simply type a command name preceded by a <code>#</code> or <code>man:/</code> to open the man page formatted for easy readability in your browser. | ||
Examples: | Examples: | ||
Line 52: | Line 56: | ||
|- | |- | ||
|<code> #ls </code> || ''opens the manual for ls in a browser'' | |<code> #ls </code> || ''opens the manual for ls in a browser'' | ||
|- | |||
|<code> man:/grep </code> || ''opens the manual for grep in a browser'' | |||
|} | |} | ||
Line 101: | Line 107: | ||
|} | |} | ||
If you don't know the path to a file, simply type the name of the file. If the file is a recently opened document, '''KRunner''' will list it for you. If you have | If you don't know the path to a file, simply type the name of the file. If the file is a recently opened document, '''KRunner''' will list it for you. If you have enabled "File Search" provided by [https://community.kde.org/Baloo Baloo] daemon, you can also search your computer for the file by its indexed contents. '''KRunner''' will also open folders you've bookmarked in [[Special:myLanguage/Dolphin|Dolphin]] (in your Places sidebar) if you type their name in. What's more, if you want to access devices on your system (both mounted and unmounted), you can do that, too. '''KRunner''' will even provide device-specific options. | ||
Examples: | Examples: | ||
Line 129: | Line 135: | ||
|- | |- | ||
|<code> switch </code> || ''shows options to switch to an existing session or start a new one'' | |<code> switch </code> || ''shows options to switch to an existing session or start a new one'' | ||
|- | |||
|<code> new session </code> || ''starts a new session'' | |||
|} | |} | ||
Line 322: | Line 330: | ||
|- | |- | ||
|<code> lock </code> || ''locks the screen'' | |<code> lock </code> || ''locks the screen'' | ||
|- | |||
|<code> restart </code> || ''restarts computer'' | |||
|- | |||
|<code> shutdown </code> || ''shutdowns computer'' | |||
|} | |} | ||
Line 328: | Line 340: | ||
===Open KRunner=== | ===Open KRunner=== | ||
The easiest way to open '''KRunner''' is to trigger its global shortcut (<keycap>Alt+F2</keycap>, by default). In some activities (e.g. Desktop), you can simply click on the desktop and start typing. In others (e.g. Search and Launch), '''KRunner''' may be built into the activity itself. | The easiest way to open '''KRunner''' is to trigger its global shortcut (<keycap>Alt+Space</keycap> or <keycap>Alt+F2</keycap>, by default). In some activities (e.g. Desktop), you can simply click on the desktop and start typing. In others (e.g. Search and Launch), '''KRunner''' may be built into the activity itself. | ||
You can also right-click on your plasma workspace and select <menuchoice>Run Command...</menuchoice> or just simply launch it from the commandline by typing <code>krunner</code>. | You can also right-click on your plasma workspace and select <menuchoice>Run Command...</menuchoice> or just simply launch it from the commandline by typing <code>krunner</code>. | ||
Line 339: | Line 351: | ||
Click on the wrench icon to bring up configuration options where you can enable/disable/configure runners that will process your searches. Additional options are available to change the position on the screen where krunner appears. You can even change the style to a task-oriented interface, if you like. | Click on the wrench icon to bring up configuration options where you can enable/disable/configure runners that will process your searches. Additional options are available to change the position on the screen where krunner appears. You can even change the style to a task-oriented interface, if you like. | ||
Clicking on the '?' icon opens a scrollable list that explains the syntax of all the available runners. This is a good way to discover new functionality! | Clicking on the '?' icon opens a scrollable list that explains the syntax of all the available runners. This is a good way to discover new functionality! |
Revision as of 10:30, 27 December 2017
KRunner (launched with Alt-F2 or Alt-SPACE) is the launcher built into the Plasma desktop. While its basic function is to launch programs from a sort of mini-command-line, its functionality can be extended by "runners" to assist the user to accomplish a lot of tasks.
Fonctionnalités
Cette liste malheureusement incomplète tente de présente quelques exemples basiques de l'utilisation de KRunner. Découvrez-en davantage en cliquant sur l'icone '?' dans KRunner.
Démarrer et arrêter des applications
You can launch programs by simply typing the name of the application you want to launch - or even simpler: press the down-arrow key for list of most recently used programs you typed in beforehand. Note that the down-arrow from the above screenshot is currently no longer existing, so the keyboard instead of the mouse is to be used exclusively.
You may type a single character and KRunner will start finding matches. Matches will be found to applications from your easily customizable applications menu (for that, right-click in menu).
Exemples :
Entrée | Sortie |
gwe |
(démarre Gwenview) |
Vous pouvez également utiliser KRunner pour tuer des applications. Saisissez le mot-clé tuer
suivi du nom du processus and KRunner vous proposera le choix entre fermer l'application (SIGTERM) ou la forcer à quitter (SIGKILL). KRunner fera correspondre les noms partiels des processus (au moins trois caractères) parmi les processus qui tournent.
Notez que le mot-clé tuer
peut être modifier dans le runner « Terminer des applications ».
Direct installation
In case that you look for an application that has not been installed yet, KRunner will suggest a set of applications that match your search. In specific, since KRunner has been integrated with Plasma Software Center, Discover, will present you a list of applications, enabling you to proceed to direct installation.
Issue (shell) commands
In addition to applications listed in the applications menu, KRunner can also be used to run shell commands, including launching binaries. Note that when entering shell commands, KRunner will not accept partial commands or offer command auto completion.
Running a command like this brings up a wrench icon which offers additional options. You can choose to spawn a terminal and run the command there (this can be useful if your command produces text output that you want to read), or choose to run the program as a different user (by providing the username and password of that user).
Examples:
Input | Output |
ls ~/Documents |
lists contents of ~/Documents (preferably in a terminal) |
cp ~/Documents/myFile ~/myFile |
copies myFile from ~/Documents to ~/ |
mplayer myMovie.mkv |
plays myMovie.mkv in mplayer |
Incidentally, if the command line is your thing, you may appreciate the built in integration to man pages. Simply type a command name preceded by a #
or man:/
to open the man page formatted for easy readability in your browser.
Examples:
Input | Output |
#ls |
opens the manual for ls in a browser |
man:/grep |
opens the manual for grep in a browser |
Vous pouvez simplement saisir l'URL du site web pour l'ouvrir dans votre navigateur par défaut. Vous pouvez même saisir le nom d'un signet de [[Special:myLanguage/Konqueror|Konqueror] ] et KRunner l'ouvrira pour vous. Si vous avez visité le site web dans le passé, KRunner peut aussi aller vous chercher des résultats à partir de l'historique du navigateur.
Exemples :
Entrée | Sortie |
monSignet |
ouvre le signet monSignet dans un navigateur |
kde.org |
ouvre la page d'accueil de KDE dans un navigateur |
http://userbase.kde.org/ |
ouvre Userbase dans un navigateur |
KRunnerconnait déjà vos raccourcis web dans Konqueror, donc vous pouvez directement démarrer en les utilisant.
Exemples :
Entrée | Sortie |
gg:KDE |
recherche « KDE » sur Google |
wp:krunner |
recherche « krunner » sur Wikipédia |
KRunner fournit également des options pour télécharger des fichiers depuis le web via KGet en fournissant leur URL.
Des runners supplémentaires existent pour rechercher sur Wikipédia, Wikivoyages et KDE Techbase.
Ouvrir des fichiers, des dossiers, des périphériques
KRunner peut aussi ouvrir pour vous des fichiers et des répertoires de votre machine locale. Si vous souhaitez parcourir des machines distantes, vous pouvez faire ça aussi. Notez que KRunner utilise les kioslaves pour ssh (fish:) et samba (smb:).
Exemples :
Entrée | Sortie |
file:/home/ |
ouvre file:///home/ (le répertoire principal) dans Dolphin |
file:monFilm.mkv |
ouvre /home/monFilm.mkv |
fish:vous@serveur.com |
ouvre fish:/vous@serveur.com/ via le protocole fish (fichier sur ssh) |
smb:maBoiteWindows |
ouvre smb:/maBoiteWindows via Samba |
If you don't know the path to a file, simply type the name of the file. If the file is a recently opened document, KRunner will list it for you. If you have enabled "File Search" provided by Baloo daemon, you can also search your computer for the file by its indexed contents. KRunner will also open folders you've bookmarked in Dolphin (in your Places sidebar) if you type their name in. What's more, if you want to access devices on your system (both mounted and unmounted), you can do that, too. KRunner will even provide device-specific options.
Examples:
Input | Output |
Home |
opens the Home directory in Dolphin |
myFlashDrive |
shows options to mount or open the contents of myFlashDrive |
Multitask with sessions, windows, desktops and activities
Several KDE applications allow you to save and load sessions. KRunner allows you to launch these sessions. You can either type in the name of the application or directly type in the name of the session. Runners exist for opening sessions saved in Kate, Konqueror, Konsole, etc.
KRunner is a multitasker's dream. If you have too many windows open, just type in the title of the window and switch directly to it. You can similarly type in the name of a virtual desktop and switch directly to it. If you roll with activities, switch activities by typing their name in. KRunner will find a match as soon as you type three characters in.
KRunner will even switch desktop sessions for you. Type in the keyword switch
or new session
to start a separate X session. You can switch back and forth between sessions by using the switch
keyword.
Examples:
Input | Output |
Desktop 1 |
switches the virtual desktop to Desktop 1 |
myWorkActivity |
switches the activity to myWorkActivity |
switch |
shows options to switch to an existing session or start a new one |
new session |
starts a new session |
Several plasma widgets can be launched as windowed applications. You can simply type the name of a widget and KRunner will launch a window for you.
Parler aux gens
Entrez le nom d'un contact de KAddressBook pour obtenir une liste d'options pour le contacter. Saisir une adresse email dans KRunner ouvrira la fenêtre de KMail pour écrire un nouvel email. Vous pouvez aussi rechercher parmi vos contacts dans la liste de contacts de Kopete.
Les runners « Contacts » et « Contacts Kopete » ne semble pas fonctionner dans KDE SC 4.8.
Exemples :
Entrée | Sortie |
kde@mail.kde.org |
écrire un email à la liste de discussion de KDE |
monContact |
'"affiche les options pour contacter monContact |
Écouter de la musique
You can control any modern audio player such as Amarok using KRunner. You can use several keywords (all configurable) to play
, pause
or skip songs. Typing in the name of an artist, album or song that is in Amarok's library will let you either play immediately, play next (queue
) or play at the end (append
) of the current playlist. You can use keywords to increase
or decrease
the volume of the player, or even to mute
or quit
it.
Exemples :
Entrée | Sortie |
lecture maMusique |
joue la piste maMusique immédiatement |
pause |
met en pause Amarok ou le lecteur de musique indiqué |
suivant |
joue la piste suivant dans la liste de lecture |
Soyez à l'heure
Vous pouvez connaitre la date et l'heure actuelle en tapant les mots-clés date
ou time
. Sélectionner le résultat le copiera dans votre presse-papier de manière à ce que vous puissiez le coller n'importe où. Le format de la date et de l'heure respecte vos réglages système.
Exemples :
Entrée | Sortie |
date |
La date d'aujourd'hui est ... |
time |
L'heure actuelle est ... |
Vous pouvez même connaitre la date et l'heure d'un autre endroit en indiquant le fuseau horaire ou la ville listée dans la base de données TZ.
Exemples :
Entrée | Sortie |
time UTC |
L'heure actuelle dans UTC est ... |
time oslo |
L'heure actuelle dans Europe/Oslo est ... |
time calcutta |
L'heure actuelle dans Asie/Calcutta est ... |
Il existe un runner pour s'interfacer avec Korganizer et aller chercher les évenements, mais il ne semble pas fonctionner dans KDE SC 4.8
Calculateur
KRunner features a very versatile calculator that can be called by starting or ending a calculation with an =
sign. In addition to basic arithmetic, you can call scientific functions like sqrt()
, sin()
, log()
, etc. A list of the supported functions is here. Note that trigonometric functions like sin()
, cos()
, etc expect the angle in radians. KRunner understands pi
in expressions.
Exemples :
Entrée | Sortie |
32*12 = |
384 |
= sqrt(4) + 32*sin(30*pi/180) |
18 |
KRunner also supports combinatorics functions, like perm()
or comb()
.
Examples:
Input | Output |
= perm(10,5) |
30240 |
= comb(10,5) |
252 |
KRunner peut aussi traiter les expression symboliques et réaliser des intégrations et des différentiations sur les expressions
Exemples :
Entrée | Sortie |
= integrate( -x/y^2, y ) |
-x/y |
diff( log(x) ) = |
1/x |
Vous pouvez aussi utiliser KRunner pour résoudre des fonctions polynomiales en trouvant ses racines.
Examples:
Input | Output |
= solve( x^2 + 4*x - 21 = 0 ) |
[3, -7] |
KRunner a une gestion intelligente des unités lors des calculs. Essayez les exemples suivants pour voir comment.
Exemples :
Entrée | Sortie |
= 2.5 kg * 10 m/s^2 |
25 N |
220 V / 10 A = |
22 ohms |
Puisque KRunner comprend la plupart des unités, vous pouvez l'utiliser pour les convertir très rapidement. Notez que la conversion d'unités ne nécessite pas le signe =
.
Exemples :
Entrée | Sortie |
30 F |
-1,11111 degrés Celsius (°C), 273,039 kelvins (K), ... |
27.8 km |
1,09449e+06 pouces (in), 17,2742 miles (mi), ... |
KRunner connait également les devises monétaires. La conversion entres les devises est faites en allant cherchant le taux de change sur le site de la Banque centrale européenne.
Exemples :
Entrée | Sortie |
1$ |
0,657002 livres sterling (GBP), 0,742501 euros (EUR), ... |
125 euros |
110,606 livres sterling (GBP), 15 785 yens (JPY), ... |
30 JPY en RUB |
9,40731 roubles (RUB) |
Se rendre à un endroit
Si vous avez enregistré un endroit dans Marble (dans OpenStreetMap), KRunner peut ouvrir la carte directement.
Vérification orthographique et caractères spéciaux
KRunner peut vous dire si votre orthographe est correct et/ou vous suggérer des corrections. Le mot-clé par défaut pour démarrer le vérificateur orthographique est code>vérifier l'orthographe et peut être modifier.
Exemples :
Entrée | Sortie |
vérifier l'orthographe linux |
Suggère les mots : Linux, lynx, ... |
KRunner peut aussi vous permettre de récupérer des caractères spéciaux si vous indiquez le code hexadécimal du caractère unicode, précédé par le signe #
.
Exemples :
Entrée | Sortie |
#03b2 |
β |
#00b1 |
± |
Gérer votre ordinateur
You can directly open system settings control modules from KRunner. Often, if you want to change something, just type associated terms and KRunner will find the control module with the settings you want.
Examples:
Input | Output |
keyboard |
opens the Keyboard settings control module |
fonts |
opens the fonts settings control module |
password |
opens the Password & User account control module |
KRunner can also be used to adjust the screen brightness by using the keywords "screen brightness". You can specify a percentage or just turn the brightness halfway or fully down. Additionally, keywords exist to suspend, logout, shutdown or restart your machine.
Examples:
Input | Output |
screen brightness 100 |
increases screen brightness to 100% |
sleep |
suspends computer to RAM |
lock |
locks the screen |
restart |
restarts computer |
shutdown |
shutdowns computer |
Usage
Open KRunner
The easiest way to open KRunner is to trigger its global shortcut (Alt+Space or Alt+F2, by default). In some activities (e.g. Desktop), you can simply click on the desktop and start typing. In others (e.g. Search and Launch), KRunner may be built into the activity itself.
You can also right-click on your plasma workspace and select krunner
.
Use KRunner
Use Tab or Shift+Tab to navigate up and down results. Use arrow keys to move between options (if any) in a result. Use Enter (or left click) to select a result.
Discover KRunner
Click on the wrench icon to bring up configuration options where you can enable/disable/configure runners that will process your searches. Additional options are available to change the position on the screen where krunner appears. You can even change the style to a task-oriented interface, if you like.
Clicking on the '?' icon opens a scrollable list that explains the syntax of all the available runners. This is a good way to discover new functionality!
Tips, Tricks and FAQs
You can use KRunner in a special "single runner" mode. While in this mode, krunner will only have one active runner to process your searches. This feature isn't supported by all runners, but quite a few already do. Open the global keyboard shortcuts control module directly from krunner and choose the "Run Command Interface" to see what's available. Set a global shortcut for the mode you want and launch krunner in that mode. You can have as many modes as you can find shortcuts for.
Ce blog (en anglais) présente certaines utilisations avancées du calculateur.