pablotrianda / xfce-i3wm-config

Configuration for Xfce and i3wm with i3-gaps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XFCE with i3wm

Configuration for use xfce4 with i3wm embedded. screen1 screen2

Configuration steps

  1. Install iw3 from a xfce enviroment: yay -S i3-wm
  2. Modify config files to disable session saving, load i3 as WM and disable xfdesktop Replace the content of the file ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml with this:
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-session" version="1.0">
  <property name="general" type="empty">
    <property name="FailsafeSessionName" type="string" value="Failsafe"/>
    <property name="LockCommand" type="string" value=""/>
    <property name="SessionName" type="string" value="Default"/>
    <!-- disable session saving -->
    <property name="SaveOnExit" type="bool" value="false"/>
  </property>
  <property name="sessions" type="empty">
    <property name="Failsafe" type="empty">
      <property name="IsFailsafe" type="bool" value="true"/>
      <property name="Count" type="int" value="5"/>
      <property name="Client0_Command" type="array">
        <!-- use i3 as WM -->
        <value type="string" value="i3"/>
      </property>
      <property name="Client0_Priority" type="int" value="15"/>
      <property name="Client0_PerScreen" type="bool" value="false"/>
      <property name="Client1_Command" type="array">
        <value type="string" value="xfsettingsd"/>
      </property>
      <property name="Client1_Priority" type="int" value="20"/>
      <property name="Client1_PerScreen" type="bool" value="false"/>
      <property name="Client2_Command" type="array">
        <value type="string" value="xfce4-panel"/>
      </property>
      <property name="Client2_Priority" type="int" value="25"/>
      <property name="Client2_PerScreen" type="bool" value="false"/>
      <property name="Client3_Command" type="array">
        <value type="string" value="Thunar"/>
        <value type="string" value="--daemon"/>
      </property>
      <property name="Client3_Priority" type="int" value="30"/>
      <property name="Client3_PerScreen" type="bool" value="false"/>
      <property name="Client4_Command" type="array">
        <!-- empty value, we wont xfdesktop to start -->
        <value type="string" value=""/>
      </property>
      <property name="Client4_Priority" type="int" value="35"/>
      <property name="Client4_PerScreen" type="bool" value="false"/>
    </property>
  </property>
</channel>
  1. Run the following commands
    xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -sa xfsettingsd
    xfconf-query -c xfce4-session -p /sessions/Failsafe/Client1_Command -t string -sa i3
    xfconf-query -c xfce4-session -p /sessions/Failsafe/Client2_Command -t string -sa xfce4-panel 
    xfconf-query -c xfce4-session -p /sessions/Failsafe/Client3_Command -t string -s thunar -t string -s --daemon
    xfconf-query -c xfce4-session -p /sessions/Failsafe/Client4_Command -t string -sa ""
  1. kill cache & reboot
    • rm -rf ~/.cache/*
    • Reboot
  2. Setup the shortcuts.
    shortcuts

About

Configuration for Xfce and i3wm with i3-gaps