mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
TSL&PRF
@wxy
This commit is contained in:
parent
08545c26b5
commit
c0f2601450
@ -1,193 +0,0 @@
|
|||||||
[#]: collector: (lujun9972)
|
|
||||||
[#]: translator: (wxy)
|
|
||||||
[#]: 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
|
|
@ -0,0 +1,183 @@
|
|||||||
|
[#]: collector: (lujun9972)
|
||||||
|
[#]: translator: (wxy)
|
||||||
|
[#]: reviewer: (wxy)
|
||||||
|
[#]: 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/)
|
||||||
|
|
||||||
|
在 Fedora 下使用下拉式终端更快输入命令
|
||||||
|
======
|
||||||
|
|
||||||
|
![][1]
|
||||||
|
|
||||||
|
下拉式终端可以一键打开,并快速输入桌面上的任何命令。通常它会以平滑的方式创建终端,有时会带有下拉效果。本文演示了如何使用 Yakuake、Tilda、Guake 和 GNOME 扩展等下拉式终端来改善和加速日常任务。
|
||||||
|
|
||||||
|
### Yakuake
|
||||||
|
|
||||||
|
[Yakuake][2] 是一个基于 KDE Konsole 技术的下拉式终端模拟器。它以 GNU GPLv2 条款分发。它包括以下功能:
|
||||||
|
|
||||||
|
* 从屏幕顶部平滑地滚下
|
||||||
|
* 标签式界面
|
||||||
|
* 尺寸和动画速度可配置
|
||||||
|
* 换肤
|
||||||
|
* 先进的 D-Bus 接口
|
||||||
|
|
||||||
|
要安装 Yakuake,请使用以下命令:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo dnf install -y yakuake
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 启动和配置
|
||||||
|
|
||||||
|
如果你运行 KDE,请打开系统设置,然后转到“启动和关闭”。将“yakuake”添加到“自动启动”下的程序列表中,如下所示:
|
||||||
|
|
||||||
|
![][3]
|
||||||
|
|
||||||
|
Yakuake 运行时很容易配置,首先在命令行启动该程序:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ yakuake &
|
||||||
|
```
|
||||||
|
|
||||||
|
随后出现欢迎对话框。如果标准的快捷键和你已经使用的快捷键冲突,你可以设置一个新的。
|
||||||
|
|
||||||
|
![][4]
|
||||||
|
|
||||||
|
点击菜单按钮,出现如下帮助菜单。接着,选择“配置 Yakuake……”访问配置选项。
|
||||||
|
|
||||||
|
![][5]
|
||||||
|
|
||||||
|
你可以自定义外观选项,例如透明度、行为(例如当鼠标指针移过它们时聚焦终端)和窗口(如大小和动画)。在窗口选项中,你会发现当你使用两个或更多监视器时最有用的选项之一:“在鼠标所在的屏幕上打开”。
|
||||||
|
|
||||||
|
#### 使用 Yakuake
|
||||||
|
|
||||||
|
主要的快捷键有:
|
||||||
|
|
||||||
|
* `F12` = 打开/撤回 Yakuake
|
||||||
|
* `Ctrl+F11` = 全屏模式
|
||||||
|
* `Ctrl+)` = 上下分割
|
||||||
|
* `Ctrl+(` = 左右分割
|
||||||
|
* `Ctrl+Shift+T` = 新会话
|
||||||
|
* `Shift+Right` = 下一个会话
|
||||||
|
* `Shift+Left` = 上一个会话
|
||||||
|
* `Ctrl+Alt+S` = 重命名会话
|
||||||
|
|
||||||
|
以下是 Yakuake 像[终端多路复用器][6]一样分割会话的示例。使用此功能,你可以在一个会话中运行多个 shell。
|
||||||
|
|
||||||
|
![][7]
|
||||||
|
|
||||||
|
### Tilda
|
||||||
|
|
||||||
|
[Tilda][8] 是一个下拉式终端,可与其他流行的终端模拟器相媲美,如 GNOME 终端、KDE 的 Konsole、xterm 等等。
|
||||||
|
|
||||||
|
它具有高度可配置的界面。你甚至可以更改终端大小和动画速度等选项。Tilda 还允许你启用热键,以绑定到各种命令和操作。
|
||||||
|
|
||||||
|
要安装 Tilda,请运行以下命令:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo dnf install -y tilda
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 启动和配置
|
||||||
|
|
||||||
|
大多数用户更喜欢在登录时就在后台运行一个下拉式终端。要设置此选项,请首先转到桌面上的应用启动器,搜索 Tilda,然后将其打开。
|
||||||
|
|
||||||
|
接下来,打开 Tilda 配置窗口。 选择“隐藏启动 Tilda”,即启动时不会立即显示终端。
|
||||||
|
|
||||||
|
![][9]
|
||||||
|
|
||||||
|
接下来,你要设置你的桌面自动启动 Tilda。如果你使用的是 KDE,请转到“系统设置 > 启动与关闭 > 自动启动”并“添加一个程序”。
|
||||||
|
|
||||||
|
![][10]
|
||||||
|
|
||||||
|
如果你正在使用 GNOME,则可以在终端中运行此命令:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ln -s /usr/share/applications/tilda.desktop ~/.config/autostart/
|
||||||
|
```
|
||||||
|
|
||||||
|
当你第一次运行它时,会出现一个向导来设置首选项。如果需要更改设置,请右键单击终端并转到菜单中的“首选项”。
|
||||||
|
|
||||||
|
![][11]
|
||||||
|
|
||||||
|
你还可以创建多个配置文件,并绑定其他快捷键以在屏幕上的不同位置打开新终端。为此,请运行以下命令:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ tilda -C
|
||||||
|
```
|
||||||
|
|
||||||
|
每次使用上述命令时,Tilda 都会在名为 `~/.config/tilda/` 文件夹中创建名为 `config_0`、`config_1` 之类的新配置文件。然后,你可以映射组合键以打开具有一组特定选项的新 Tilda 终端。
|
||||||
|
|
||||||
|
#### 使用 Tilda
|
||||||
|
|
||||||
|
主要快捷键有:
|
||||||
|
|
||||||
|
* `F1` = 拉下终端 Tilda(注意:如果你有多个配置文件,快捷方式是 F1、F2、F3 等)
|
||||||
|
* `F11` = 全屏模式
|
||||||
|
* `F12` = 切换透明模式
|
||||||
|
* `Ctrl+Shift+T` = 添加标签
|
||||||
|
* `Ctrl+Page Up` = 下一个标签
|
||||||
|
* `Ctrl+Page Down` = 上一个标签
|
||||||
|
|
||||||
|
### GNOME 扩展
|
||||||
|
|
||||||
|
Drop-down Terminal [GNOME 扩展][12]允许你在 GNOME Shell 中使用这个有用的工具。它易于安装和配置,使你可以快速访问终端会话。
|
||||||
|
|
||||||
|
#### 安装
|
||||||
|
|
||||||
|
打开浏览器并转到[此 GNOME 扩展的站点][12]。启用扩展设置为“On”,如下所示:
|
||||||
|
|
||||||
|
![][13]
|
||||||
|
|
||||||
|
然后选择“Install”以在系统上安装扩展。
|
||||||
|
|
||||||
|
![][14]
|
||||||
|
|
||||||
|
执行此操作后,无需设置任何自动启动选项。只要你登录 GNOME,扩展程序就会自动运行!
|
||||||
|
|
||||||
|
#### 配置
|
||||||
|
|
||||||
|
安装后,将打开 Drop-down Terminal 配置窗口以设置首选项。例如,可以设置终端大小、动画、透明度和使用滚动条。
|
||||||
|
|
||||||
|
![][15]
|
||||||
|
|
||||||
|
如果你将来需要更改某些首选项,请运行 `gnome-shell-extension-prefs` 命令并选择“Drop Down Terminal”。
|
||||||
|
|
||||||
|
#### 使用该扩展
|
||||||
|
|
||||||
|
快捷键很简单:
|
||||||
|
|
||||||
|
* 反尖号 (通常是 `Tab` 键上面的一个键) = 打开/撤回终端
|
||||||
|
* `F12` (可以定制) = 打开/撤回终端
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
via: https://fedoramagazine.org/use-a-drop-down-terminal-for-fast-commands-in-fedora/
|
||||||
|
|
||||||
|
作者:[Guilherme Schelp][a]
|
||||||
|
选题:[lujun9972][b]
|
||||||
|
译者:[wxy](https://github.com/wxy)
|
||||||
|
校对:[wxy](https://github.com/wxy)
|
||||||
|
|
||||||
|
本文由 [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
|
Loading…
Reference in New Issue
Block a user