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

先上一張配置完后的桌面截圖:


因為樹莓派在圖形處理方面實在是短板,故本文的美化以盡量不占用過多性能為前提。
先寫個目錄,本文主要折騰的內(nèi)容如下:
窗口特效(陰影)及窗口美化
命令行(Terminal)美化
鼠標(光標)美化
桌面美化及菜單美化

先上窗口美化。
在我從 xfce 用回 lxde 后一度因窗口沒有陰影和透明效果難受得不行,后來經(jīng)查詢,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. |?常規(guī)窗口合成,具有透明度支持。
? ?-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 后的數(shù)字越小漸變效果越慢)
(這里不建議打開窗口漸變效果。別問,問就是性能問題)
關于?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

在多數(shù)的 Linux 發(fā)行版上,你可以通過包管理器安裝它。
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中有一個社區(qū)維護的軟件包,它是從該GitHub構建的。
安裝后,在?LXAppearance?中選擇圖標主題,你可以看到出現(xiàn)了 Numix, Numix Circle, Numix Circle Light, Numix Light 的選項,自行選擇一個,點擊“應用即可”。

當然,一個好康的桌面也很重要。
這里推薦一個好用的壁紙網(wǎng)站:https://www.wallpapermaiden.com/

對于比較閑有時間的用戶,可以考慮將菜單中的軟件包名改成中文,增加統(tǒng)一度