Linux LXDE 美化 指南 (raspberry pi os 美化)

先上一张配置完后的桌面截图:


因为树莓派在图形处理方面实在是短板,故本文的美化以尽量不占用过多性能为前提。
先写个目录,本文主要折腾的内容如下:
窗口特效(阴影)及窗口美化
命令行(Terminal)美化
鼠标(光标)美化
桌面美化及菜单美化

先上窗口美化。
在我从 xfce 用回 lxde 后一度因窗口没有阴影和透明效果难受得不行,后来经查询,lxde 默认的窗口管理器 openbox 不支持窗口合成(即阴影、透明等特效),但 lxde 貌似有自带一个轻量的窗口合成器 xcompmgr
使用参考:https://wiki.archlinux.org/index.php/Xcompmgr_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
使用说明(不想看的话可直接使用“xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55”。个人的配置:“xcompmgr -c -C -t-10 -l-10 -r10”,以下为原文和机翻):
-d display | 显示
Specifies which display should be managed. | 指定应管理哪个显示器。
-r radius | 半径
Specifies the blur radius for client-side shadows. (default 12) | 指定阴影的模糊半径。 (默认12)
-o opacity | 不透明度
Specifies the translucency for client-side shadows. (default .75) | 指定阴影的半透明。 (默认为0.75)
-l left-offset | 左偏移
Specifies the left offset for client-side shadows. (default -15) | 指定阴影的左偏移量。 (默认-15)
-t top-offset | 顶部偏移
Specifies the top offset for clinet-side shadows. (default -15) | 指定阴影的顶部偏移量。 (默认-15)
-I fade-in-step | 渐进
Specifies the opacity change between steps while fading in. (default 0.028) | 指定渐进时的透明度变化(速度)。(默认为0.028)
-O fade-out-step | 渐出
Specifies the opacity change between steps while fading out. (default 0.03) | 指定渐出时的透明度变化(速度)。(默认为0.03)
-D fade-delta-time | (译者表示没看懂...)
Specifies the time between steps in a fade in milliseconds. (default 10) | 指定以毫秒为单位的步骤之间的时间。 (默认10)
-a
Use automatic server-side compositing. Faster, but no special effects. | 使用自动窗口合成。更快,但没有特殊的效果。
-c
Draw client-side shadows with fuzzy edges. | 使用模糊边绘制窗口阴影。
-C
Avoid drawing shadows on dock/panel windows. | 避免在dock/面板窗口上绘制阴影。
-f
Fade windows in/out when opening/closing. | 打开/关闭窗口时,渐变。
-F
Fade windows during opacity changes. | 在不透明度变化期间淡化窗口。
-n
Normal client-side compositing with transparency support. | 常规窗口合成,具有透明度支持。
-s
Draw server-side shadows with sharp edges. | 用尖锐边缘绘制窗口阴影。
-S
Enable synchronous operation (for debugging). | 启用同步操作(用于调试)。
-R
Run, but do not explicitly register compositing manager with X. | 运行,但不要用X明确地注册窗口合成器。
窗口渐变命令:xcompmgr -c -C -t-10 -l-10 -r10 -f -I0.05 -O0.05(-I 和 -O 后的数字越小渐变效果越慢)
(这里不建议打开窗口渐变效果。别问,问就是性能问题)
关于 xcompmgr 开机自启动,你可以参考我的这篇文章:https://www.bilibili.com/read/cv10607684
[Desktop Entry]
Type=Application
Name=xcompmgr
Comment=Start xcompmgr compositor
NoDisplay=true
Exec=sh -c "xcompmgr -c -C -t-10 -l-10 -r10"

关于窗口的美化,在 LXAppearance 中,你可以选择窗口边框


关于命令行的美化,参见我的这篇文章:https://www.bilibili.com/read/cv10595705
.bashrc
PS1="\[\033[7m\]\[\033[1;34m\]\u250c\u257c\[\033[0m\]\[\033[1;36m\][T] \[\033[1;33m\]\D{[%H:%M:%S]-[%Y"\u5e74"-%b-%d"\u65e5"-"\u661f\u671f"%a]}\[\033[0m\]
\[\033[7m\]\[\033[1;34m\]\u00b7\u257c\[\033[0;32m\][U] \[\033[1;32m\][\u]\[\033[0m\] <----> \[\033[0;36m\][D] \[\033[7m\]\[\033[1;36m\]\w
\[\033[7m\]\[\033[1;34m\]\u2514\u257c\[\033[0m\]\[\033[1;31m\][In\#]\[\033[0m\] >>> \[\033[7m\]"

关于鼠标的美化,在这里推荐这个鼠标样式:https://www.pling.com/p/1197198/
官方图片:



官方下载地址:https://github.com/ful1e5/Bibata_Cursor/releases
使用方法:
将下载后得到的压缩包解压到 ~/.icons (单用户) /usr/share/icons (多用户)
在 LXAppearance 中选择“鼠标光标”,选择“安装”,选择已下载的压缩包即可

对于桌面美化,一套好的图标包或许是很实用的。
推荐这个图标包 numix-icon-theme-circle

在多数的 Linux 发行版上,你可以通过包管理器安装它。
sudo apt install numix-icon-theme-circle
sudo dnf install numix-icon-theme-circle
For Arch users there's a community maintained package in the AUR which builds from this GitHub.
对于Arch用户,AUR中有一个社区维护的软件包,它是从该GitHub构建的。
安装后,在 LXAppearance 中选择图标主题,你可以看到出现了 Numix, Numix Circle, Numix Circle Light, Numix Light 的选项,自行选择一个,点击“应用即可”。

当然,一个好康的桌面也很重要。
这里推荐一个好用的壁纸网站:https://www.wallpapermaiden.com/

对于比较闲有时间的用户,可以考虑将菜单中的软件包名改成中文,增加统一度