diff --git a/sources/tech/20190809 Use a drop-down terminal for fast commands in Fedora.md b/sources/tech/20190809 Use a drop-down terminal for fast commands in Fedora.md new file mode 100644 index 0000000000..8a26e90cfe --- /dev/null +++ b/sources/tech/20190809 Use a drop-down terminal for fast commands in Fedora.md @@ -0,0 +1,193 @@ +[#]: collector: (lujun9972) +[#]: translator: ( ) +[#]: reviewer: ( ) +[#]: publisher: ( ) +[#]: url: ( ) +[#]: subject: (Use a drop-down terminal for fast commands in Fedora) +[#]: via: (https://fedoramagazine.org/use-a-drop-down-terminal-for-fast-commands-in-fedora/) +[#]: author: (Guilherme Schelp https://fedoramagazine.org/author/schelp/) + +Use a drop-down terminal for fast commands in Fedora +====== + +![][1] + +A **drop-down terminal** lets you tap a key and quickly enter any command on your desktop. Often it creates a terminal in a smooth way, sometimes with effects. This article demonstrates how it helps to improve and speed up daily tasks, using drop-down terminals like Yakuake, Tilda, Guake and a GNOME extension. + +### Yakuake + +[Yakuake][2] is a drop-down terminal emulator based on KDE Konsole techonology. It is distributed under the terms of the GNU GPL Version 2. It includes features such as: + + * Smoothly rolls down from the top of your screen + * Tabbed interface + * Configurable dimensions and animation speed + * Skinnable + * Sophisticated D-Bus interface + + + +To install Yakuake, use the following command: + +``` +$ sudo dnf install -y yakuake +``` + +#### Startup and configuration + +If you’re runnign KDE, open the System Settings and go to _Startup and Shutdown_. Add _yakuake_ to the list of programs under _Autostart_, like this: + +![][3] + +It’s easy to configure Yakuake while running the app. To begin, launch the program at the command line: + +``` +$ yakuake & +``` + +The following welcome dialog appears. You can set a new keyboard shortcut if the standard one conflicts with another keystroke you already use: + +![][4] + +Now click the menu button, and the following help menu appears. Next, select _Configure Yakuake…_ to access the configuration options. + +![][5] + +You can customize the options for appearance, such as opacity; behavior, such as focusing terminals when the mouse pointer is moved over them; and window, such as size and animation. In the window options you’ll find one of the most useful options is you use two or more monitors: _Open on screen: At mouse location_. + +#### Using Yakuake + +The main shortcuts are: + + * **F12** = Open/Retract Yakuake + * **Ctrl+F11** = Full Screen Mode + * **Ctrl+)** = Split Top/Bottom + * **Ctrl+(** = Split Left/Right + * **Ctrl+Shift+T** = New Session + * **Shift+Right** = Next Session + * **Shift+Left** = Previous Session + * **Ctrl+Alt+S** = Rename Session + + + +Below is an example of Yakuake being used to split the session like a [terminal multiplexer][6]. Using this feature, you can run several shells in one session. + +![][7] + +### Tilda + +[Tilda][8] is a drop-down terminal that compares with other popular terminal emulators such as GNOME Terminal, KDE’s Konsole, xterm, and many others. + +It features a highly configurable interface. You can even change options such as the terminal size and animation speed. Tilda also lets you enable hotkeys you can bind to commands and operations. + +To install Tilda, run this command: + +``` +$ sudo dnf install -y tilda +``` + +#### Startup and configuration + +Most users prefer to have a drop-down terminal available behind the scenes when they login. To set this option, first go to the app launcher in your desktop, search for Tilda, and open it. + +Next, open up the Tilda Config window. Select _Start Tilda hidden_, which means it will not display a terminal immediately when started. + +![][9] + +Next, you’ll set your desktop to start Tilda automatically. If you’re using KDE, go to _System Settings_ > _Startup and Shutdown_ > _Autostart_ and use _Add a Program_. + +![][10] + +If you’re using GNOME, you can run this command in a terminal: + +``` +$ ln -s /usr/share/applications/tilda.desktop ~/.config/autostart/ +``` + +When you run for the first time, a wizard shows up to set your preferences. If you need to change something, right click and go to _Preferences_ in the menu. + +![][11] + +You can also create multiple configuration files, and bind other keys to open new terminals at different places on the screen. To do that, run this command: + +``` +$ tilda -C +``` + +Every time you use the above command, Tilda creates a new config file located in the _~/.config/tilda/_ folder called _config_0_, _config_1_, and so on. You can then map a key combination to open a new Tilda terminal with a specific set of options. + +#### Using Tilda + +The main shortcuts are: + + * **F1** = Pull Down Terminal Tilda (Note: If you have more than one config file, the shortcuts are the same, with a diferent _open/retract_ shortcut like F1, F2, F3, and so on) + * **F11** = Full Screen Mode + * **F12** = Toggle Transparency + * **Ctrl+Shift+T** = Add Tab + * **Ctrl+Page Up** = Go to Next Tab + * **Ctrl+Page Down** = Go to Previous Tab + + + +### GNOME Extension + +The Drop-down Terminal [GNOME Extension][12] lets you use this useful tool in your GNOME Shell. It is easy to install and configure, and gives you fast access to a terminal session. + +#### Installation + +Open a browser and go to the [site for this GNOME extension][12]. Enable the extension setting to _On_, as shown here: + +![][13] + +Then select _Install_ to install the extension on your system. + +![][14] + +Once you do this, there’s no reason to set any autostart options. The extension will automatically run whenever you login to GNOME! + +#### Configuration + +After install, the Drop Down Terminal configuration window opens to set your preferences. For example, you can set the size of the terminal, animation, transparency, and scrollbar use. + +![][15] + +If you need change some preferences in the future, run the _gnome-shell-extension-prefs_ command and choose _Drop Down Terminal_. + +#### Using the extension + +The shortcuts are simple: + + * **`** (usually the key above **Tab**) = Open/Retract Terminal + * **F12** (customize as you prefer) = Open/Retract Terminal + + + +* * * + +-------------------------------------------------------------------------------- + +via: https://fedoramagazine.org/use-a-drop-down-terminal-for-fast-commands-in-fedora/ + +作者:[Guilherme Schelp][a] +选题:[lujun9972][b] +译者:[译者ID](https://github.com/译者ID) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://fedoramagazine.org/author/schelp/ +[b]: https://github.com/lujun9972 +[1]: https://fedoramagazine.org/wp-content/uploads/2019/07/dropdown-terminals-816x345.jpg +[2]: https://kde.org/applications/system/org.kde.yakuake +[3]: https://fedoramagazine.org/wp-content/uploads/2019/07/auto_start-1024x723.png +[4]: https://fedoramagazine.org/wp-content/uploads/2019/07/yakuake_config-1024x419.png +[5]: https://fedoramagazine.org/wp-content/uploads/2019/07/yakuake_config_01.png +[6]: https://fedoramagazine.org/4-cool-terminal-multiplexers/ +[7]: https://fedoramagazine.org/wp-content/uploads/2019/07/yakuake_usage.gif +[8]: https://github.com/lanoxx/tilda +[9]: https://fedoramagazine.org/wp-content/uploads/2019/07/tilda_startup.png +[10]: https://fedoramagazine.org/wp-content/uploads/2019/07/tilda_startup_alt.png +[11]: https://fedoramagazine.org/wp-content/uploads/2019/07/tilda_config.png +[12]: https://extensions.gnome.org/extension/442/drop-down-terminal/ +[13]: https://fedoramagazine.org/wp-content/uploads/2019/07/gnome-shell-install_2-1024x455.png +[14]: https://fedoramagazine.org/wp-content/uploads/2019/07/gnome-shell-install_3.png +[15]: https://fedoramagazine.org/wp-content/uploads/2019/07/gnome-shell-install_4.png