Skip to content

Instantly share code, notes, and snippets.

@bcbcarl bcbcarl/kde_i3.md
Created Apr 24, 2013

Embed
What would you like to do?
使用 i3 做為 KDE 視窗管理員

使用 i3 做為 KDE 視窗管理員

Plasma

建立停用 Plasma 的桌面項目:

cp /usr/share/autostart/plasma-desktop.desktop ~/.config/autostart/plasma-desktop.desktop
echo "Hidden=true" >> ~/.config/autostart/plasma-desktop.desktop

接著取消停用 Plasma:

mv ~/.config/autostart/plasma-desktop.desktop ~/.config/autostart/plasma-desktop.bak

~/.i3/config

退出 i3 之前,先啟用 Plasma,再登出 KDE。

# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "mv ~/.config/autostart/plasma-desktop.desktop ~/.config/autostart/plasma-desktop.bak; i3-msg exit; qdbus org.kde.ksmserver /KSMServer logout 0 0 0"

進入 i3 時,一定要停用 Plasma,否則看不到視窗。

# Disable Plasma Desktop Workspace at startup
exec --no-startup-id "mv ~/.config/autostart/plasma-desktop.bak ~/.config/autostart/plasma-desktop.desktop"

使用 i3 視窗管理員

KDE 工作階段可以透過 KDEWM 環境變數,指定視窗管理員:

echo "export KDEWM=i3" >> ~/.xprofile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.