Xfce4 / LXDE + Kwin

Linux OS に関わる資料
返信する
アバター
mansyuu
管理人
記事: 74
登録日時: 2023年6月03日(土) 00:38

Xfce4 / LXDE + Kwin

投稿記事 by mansyuu »

その1 Kwin を自動起動させる。

コマンドライン kwin --replace を記述、要領は画像を参照
  
 
LXDE では下記の自動起動用デスクトップファイルを ~/.config/autostart に作成する。

[Desktop Entry]
Type=Application
Exec=kwin --replace
OnlyShowIn=XFCE;LXDE;
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_IN]=Kwin
Name=Kwin
CommentKwin[en_IN]=Kwin
Comment=Kwin

その2 Xfce4 では Compiz を組み込む要領を応用する。
注: 起動は早いが不安定要素がある。

xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -t string -s compiz -s ccp

作成された ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml のファイルをエディタにて開く。

コード: 全て選択

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-session" version="1.0">
  <property name="general" type="empty">
    <property name="FailsafeSessionName" type="empty"/>
    <property name="SaveOnExit" type="empty"/>
    <property name="SessionName" type="string" value="Default"/>
  </property>
  <property name="sessions" type="empty">
    <property name="Failsafe" type="empty">
      <property name="IsFailsafe" type="empty"/>
      <property name="Count" type="empty"/>
      <property name="Client0_Command" type="array">
        <value type="string" value="compiz"/>
        <value type="string" value="ccp"/>
      </property>
 上記の4行部分を下記に変更する。
     <property name="Client0_Command" type="array">
        <value type="string" value="kwin"/>
     </property>

      <property name="Client0_PerScreen" type="empty"/>
      <property name="Client1_Command" type="empty"/>
      <property name="Client1_PerScreen" type="empty"/>
      <property name="Client2_Command" type="empty"/>
      <property name="Client2_PerScreen" type="empty"/>
      <property name="Client3_Command" type="empty"/>
      <property name="Client3_PerScreen" type="empty"/>
      <property name="Client4_Command" type="empty"/>
      <property name="Client4_PerScreen" type="empty"/>
    </property>
  </property>
  <property name="splash" type="empty">
    <property name="Engine" type="empty"/>
  </property>
  <property name="compat" type="empty">
    <property name="LaunchGNOME" type="empty"/>
  </property>
  <property name="startup" type="empty">
    <property name="screensaver" type="empty">
      <property name="type" type="empty"/>
    </property>
  </property>
</channel>
ファイルを上書きして、再起動させる。

元に戻す場合には
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml <- この xml ファイルを削除する。

ブログ関連記事
http://newmansyuu.blog.fc2.com/blog-entry-343.html
http://newmansyuu.blog.fc2.com/blog-entry-344.html
http://newmansyuu.blog.fc2.com/blog-entry-345.html
http://newmansyuu.blog.fc2.com/blog-entry-346.html
返信する