那天去幫周孃裝驅動,發現她正準備把淘汰下來的舊 PC 以 ¥100 賣掉。厚着臉皮說,不如送給我吧。於是,老舊 PC +1 。
第一步:先裝個桌面環境爲 Xfce 的、輕量版 Manjaro
第二步:開始搗騰😎
2.1. 裝個窗口管理器 i3wm 玩玩
在 i3 的配置文件裏寫這麼幾句:
[bar/mybar]
; replace i3 with the name of your i3 module
scroll-up = "#i3.prev"
scroll-down = "#i3.next"
現在把鼠標🖱️放在 bar 上(的 workspaces 區域),就可以用鼠標滾輪♻️切換 workspace 了。超爽😍。
2.2. 裝上狀態欄 polybar
雖然都說 polybar 的配置很複雜,但其實看了官網文檔後覺得還是挺有內在邏輯的。主框架是:
[global/wm]
...
[bar/example]
...
modules-left = rofi wlan ; 左邊放哪些 modules ……
modules-center = i3 ; 中間放哪些 modules ……
modules-right = memory cpu volume date ; 右邊放哪些 modules ……
[module/date] 等各個 modules 了
2.3. 程序啓動器不要用 dmenu ,上 rofi 😋
也不要去搗騰 rofi 的配置,直接 rofi-theme-selector
就好。
另外,我喜歡在 i3 配置裏把快捷鍵從 super + d
改成 super + space
,感覺更 Mac 一點。當然,記得把衝突的鍵位一併改掉。
# A more modern dmenu replacement is rofi:
bindsym $mod+space exec "rofi -combi-modi window,drun,ssh -theme 'Arc-Dark' -font 'FiraCode 12' -show combi -icon-theme 'solarized' -show-icons"
2.4. 換個終端 Alacritty
換 Alacritty 主要是因爲它支持在 ranger 中瀏覽圖片。
我覺得把這幾處打開足矣:
window:
opacity: 0.8
font:
normal:
family: FiraCode Nerd Font Mono
selection:
save_to_clipboard: true