2014年5月27日 星期二

install lxqt on archlinux

update: 2014-6-6
lxqt 就是 lxde 的 qt 版?!
可能沒有這麼簡單吧。整個使用的感覺很不錯,比 lxde 容易,預設就好看得多。可能是我原先是用 KDE,一些設定都可以共用吧。

安裝

$ yaourt -S lxqt-desktop-git qterminal-git --nofonfirm

.
.
.
.

If you upgraded LXQt from <0.7.0, you may need to reset your lxqt-session settings
Do that with the following command: rm ~/.config/lxqt/session.conf
lxqt-desktop-git 的可選依賴
pcmanfm-qt-git: The LXQt file manager
lximage-qt-git: The LXQt image viewer
openbox: Recommended window manager
sddm-git: Recommended display manager
qterminal: Pure Qt terminal
juffed: Pure Qt text editor (Kate clone)
screengrab: Screenshot capture
qps: Task Monitoring
上面的可選依賴全部沒裝,等以後有時間再來玩。目前先用 kde 的軟體搭配。

配置

好像也沒配置什麼,就 panel 上加了系統資訊的小元件。反正就在 panel 上按滑鼠右鍵,然後就照 menu 上的指示操作,不難。 然後,把 panel 放到桌面的上方。 當然,目前看起來只有英文介面,還是得等一段時間,讓 lxqt 團隊撰寫。 目前 lxqt 真的可以用了,很順。

~/.config/lxqt/panel.desktop

panel 上有一個 quicklaunch,上面放了常用的軟體。這個的設定好像就得去修改 ~/.config/lxqt/panel.desktop
[quicklaunch]
type=quicklaunch
apps\size=4
apps\1\desktop=google-chrome.desktop
apps\2\desktop=dolphin.desktop
apps\3\desktop=emacs.desktop
apps\4\desktop=
alignment=Left

修改預設的 wm

進 ~/.config/lxqt/session.desktop ,修改
window_manager=xmonad
是的,我用的是 xmonad 這個 twm,而且是這樣設定就好了。 目前為止,與 lxqt 配合得很好。至少比 kde 順,不會有一堆煩人的 plasma 軟體閃來閃去。

配合 KDE

使用 oxygen-gtk

1. 依據 Archlinux Wiki 說明,
Note: Before KDE 4.10, you needed to create the file ~/.kde4/share/config/gtkrc-2.0,
or let it automatically create like described below.
But that is actually counter-productive with KDE 4.10’s oxygen-gtk,
and you should delete this file after upgrading to prevent it from messing with your colors.
Cleanup-removal of ~/.kde4/share/config/gtkrc might be necessary, too.
我把 gtkrc 與 gtkrc-2.0 這兩個檔砍了。
  1. 進 lxqt 外觀設定,把 widget style 改為 oxygen。

使用 qtconfig

要用 qtconfig 前,先要設定以下的環境變數,否則沒法開啟。 不過,qtconfig 也不好用,尤其是 fonts,無論怎麼設定,下次回來又會變成預設值。
export QTCHOOSER_RUNTOOL=qtconfig
export QT_SELECT=4

停用 lxqt-runner 與 lxqt-powermanagement

lxqt-runner 要進 lxqt 快捷鍵,把 Alt-F2 的 enable 取消掉。用 kupfer 取代。 lxqt-powermanagement 直接進 Power Management 中,將所有功能取消。我用的是桌機,不是筆記本。 是不是乾脆不要裝這 2 個就好了?因為與 lxqt-desktop-git 相依,暫時先不處理。

結論

以前用 lxde 就覺得很不錯,也用了一整年。轉到 kde 是因為 htc 的關係。現在,我又回來試 lxqt,初步的感覺很好。 只要能解決以下 3 個問題
  1. mtp,解決與 htc 連線的需求。
  2. usb automount,這個應該不難。archlinux wiki 中有一些描述,可以試試。
  3. qbittorrent 中,能正確地開啟檔案所在目錄。現在是時有時無。
那就滿足地用 lxqt,感謝這個 team 的努力,讓我有個不錯的桌面可用。

後記

在安裝 lxqt 的過程中,看到了一個看圖軟體,看起來不錯用,先記錄下來吧,免得忘了。 nomacs ,有空再研究。