Merge pull request #16768 from geekpi/translating

translated
This commit is contained in:
geekpi 2019-12-23 08:58:39 +08:00 committed by GitHub
commit a926a13d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 75 additions and 78 deletions

View File

@ -1,78 +0,0 @@
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Customize your Linux desktop with FVWM)
[#]: via: (https://opensource.com/article/19/12/fvwm-linux-desktop)
[#]: author: (Seth Kenlon https://opensource.com/users/seth)
Customize your Linux desktop with FVWM
======
This article is part of a special series of 24 days of Linux desktops.
If you're looking for a lightweight, fast, and simple Linux window
manager, FVWM qualifies. But if you're looking for something to dig
into, explore, and hack, then FVWM is a must.
![Coding on a computer][1]
The [FVWM][2] window manager started out as modifications to [TWM][3], back in 1993. After several years of iteration, what emerged is an extremely customizable environment where any behavior, action, or event is configurable. It has support for custom key bindings, mouse gestures, theming, scripting, and much more.
While FVWM is usable immediately after installation, its default distribution provides only the absolute minimum configuration. It's a great foundation to start your own custom desktop environment, but if you just want to use it as a desktop, then you probably want to install a full configuration distributed by another user. There are a few different distributions of FVWM, including FVWM95, which mimics Windows 95 (at least in appearance and layout). I tried [FVWM-Crystal][4], a modern-looking theme with some common Linux desktop conventions.
Install the FVWM distribution you want to try from your Linux distribution's software repository. If you can't find a specific FVWM distribution, it's safe to install the base FVWM2 package and then go to [Box-Look.org][5] to download a theme package manually. It's a little more work that way, but not nearly as much as building your own workspace from scratch.
After installing, log out of your current desktop session so you can log into FVWM. By default, your session manager (KDM, GDM, LightDM, or XDM, depending on your setup) will continue to log you into your previous desktop, so you must override that before logging in.
To do so with GDM:
![Select your desktop session in GDM][6]
And with KDM:
![Select your desktop session with KDM][7]
### FVWM desktop
Regardless of what theme and configuration you're using, FVWM, at minimum, provides a menu when you left-click on the desktop. The contents of this menu vary depending on what you've installed. The menu in the FVWM-Crystal distribution contains quick access to common preferences, such as screen resolution, wallpaper settings, window decorations, and so on.
As with pretty much everything in FVWM, the menu can be edited to include whatever you want, but FVWM-Crystal favors the application menu bar. The application menu is located at the top-left of the screen, and each icon contains a menu of related application launchers. For example, the GIMP icon reveals image editors, the KDevelop icon reveals integrated development environments (IDEs), the GNU icon reveals text editors, and so on, depending on what you have installed on your system.
![FVWM-crystal running on Slackware 14.2][8]
FVWM-Crystal also provides virtual desktops, a taskbar, a clock, and an application bar.
For your background, you can use the wallpapers bundled with FVWM-Crystal or set your own with the **feh** command (you may need to install it from your repository). This command has a few options for setting the background, including **\--bg-scale** to fill the screen with a scaled version of your wallpaper of choice, **\--bg-fill** to fill the screen without adjusting the size of the image, and so on.
```
`$ feh --bg-scale ~/Pictures/wallpapers/mybackground.jpg`
```
Most configuration files are contained in **$HOME/.fvwm-crystal**, with some systemwide defaults located in **/usr/share/fvwm-crystal**.
### Do it yourself
FVWM is as much a desktop-building platform as it is a window manager. It doesn't do anything for you, and it expects you to configure anything—and possibly everything.
If you're looking for a lightweight, fast, and simple window manager, FVWM qualifies. But if you're looking for something to dig into, explore, and hack, then FVWM is a must.
--------------------------------------------------------------------------------
via: https://opensource.com/article/19/12/fvwm-linux-desktop
作者:[Seth Kenlon][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://opensource.com/users/seth
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/code_computer_laptop_hack_work.png?itok=aSpcWkcl (Coding on a computer)
[2]: http://www.fvwm.org/
[3]: https://en.wikipedia.org/wiki/Twm
[4]: https://www.box-look.org/p/1018270/
[5]: http://box-look.org
[6]: https://opensource.com/sites/default/files/advent-gdm_0.jpg (Select your desktop session in GDM)
[7]: https://opensource.com/sites/default/files/advent-kdm.jpg (Select your desktop session with KDM)
[8]: https://opensource.com/sites/default/files/advent-fvwm-crystal.jpg (FVWM-crystal running on Slackware 14.2)

View File

@ -0,0 +1,75 @@
[#]: collector: (lujun9972)
[#]: translator: (geekpi)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Customize your Linux desktop with FVWM)
[#]: via: (https://opensource.com/article/19/12/fvwm-linux-desktop)
[#]: author: (Seth Kenlon https://opensource.com/users/seth)
使用 FVWM 自定义 Linux 桌面
======
本文是 24 天 Linux 桌面特别系列的一部分。如果你正在寻找轻巧,快速且简单的 Linux 窗口管理器,那么 FVWM 可以胜任。但是,如果你正在寻找可以深入,探索和破解,那么 FVWM 是必须的。
![Coding on a computer][1]
[FVWM][2] 窗口管理器最早是对早在 1993 年的 [TWM][3] 的修改。经过几年的迭代,出现了一个可高度自定义的环境,它可以配置任何行为、动作或事件。它支持自定义键绑定、鼠标手势、主题、脚本等。
尽管 FVWM 在安装后即可使用但默认发行版仅提供最小的配置。这是开始自定义桌面环境的良好基础但是如果你只想将其用作桌面那么可能要安装另一个用户发布的完整配置。FVWM 有几种不同的发行版,包括模仿 Windows 95 的 FVWM95至少在外观和布局上。我尝试了 [FVWM-Crystal][4],这是一个具有一些现代 Linux 桌面约定的现代主题。
从 Linux 发行版的软件仓库中安装要尝试的 FVWM 发行版。如果找不到特定的 FVWM 发行版,那么可以安装基础的 FVWM2 包,然后进入 [Box-Look.org][5] 手动下载主题包。这样就需要更多的工作,但比从头开始构建要少。
安装后,请注销当前的桌面会话,以便你可以登录 FVWM。默认情况下会话管理器KDM、GDM、LightDM 或 XDM取决于你的设置将继续登录到以前的桌面因此你必须在登录之前覆盖该桌面。
对于 GDM
![Select your desktop session in GDM][6]
对于 KDM
![Select your desktop session with KDM][7]
### FVWM 桌面
无论你使用什么主题和配置当你在桌面上单击鼠标左键时FVWM 至少会显示一个菜单。菜单的内容取决于你所安装的。FVWM-Crystal 分发中的菜单包含对常用首选项的快速访问,例如屏幕分辨率、壁纸设置、窗口装饰等。
与 FVWM 中的几乎所有东西一样,你可以在菜单中编辑你要想的内容,但 FVWM-Crystal 倾向应用菜单栏。应用菜单位于屏幕的左上角每个图标都包含相关应用启动器的菜单。例如GIMP 图标表示图像编辑器KDevelop 图标表示集成开发环境IDEGNU 图标表示文本编辑器,等等,具体取决于你在系统上安装的程序。
![FVWM-crystal running on Slackware 14.2][8]
FVWM-Crystal 还提供虚拟桌面、任务栏、时钟和应用栏。
关于背景,你可以使用与 FVWM-Crystal 捆绑在一起的壁纸,也可以使用 **feh** 命令设置自己的壁纸(你可能需要从仓库中安装它)。此命令有一些设置背景的选项,包括 **\-bg-scale** 使用缩放填充屏幕,**\-bg-fill** 直接填充而不缩放图片,等等。
```
`$ feh --bg-scale ~/Pictures/wallpapers/mybackground.jpg`
```
大多数配置文件都包含在 **$HOME/.fvwm-crystal** 中,某些系统范围的默认文件位于 **/usr/share/fvwm-crystal**。
### 自己尝试一下
FVWM 是桌面构建平台,也是窗口管理器。它不会为你做什么事情,它期望你来配置尽可能的一切。
如果你正在寻找轻巧,快速且简单的窗口管理器,那么 FVWM 可以胜任。但是,如果你正在寻找可以深入,探索和破解,那么 FVWM 是必须的。
--------------------------------------------------------------------------------
via: https://opensource.com/article/19/12/fvwm-linux-desktop
作者:[Seth Kenlon][a]
选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/seth
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/code_computer_laptop_hack_work.png?itok=aSpcWkcl (Coding on a computer)
[2]: http://www.fvwm.org/
[3]: https://en.wikipedia.org/wiki/Twm
[4]: https://www.box-look.org/p/1018270/
[5]: http://box-look.org
[6]: https://opensource.com/sites/default/files/advent-gdm_0.jpg (Select your desktop session in GDM)
[7]: https://opensource.com/sites/default/files/advent-kdm.jpg (Select your desktop session with KDM)
[8]: https://opensource.com/sites/default/files/advent-fvwm-crystal.jpg (FVWM-crystal running on Slackware 14.2)