Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. # Using i3 as WM for xfce4 ( without xfdesktop ) on arch
  2.  
  3. I looked up how to run i3 inside xfce4-DE. If you want to do the same, simply follow these steps.
  4.  
  5.  
  6. ## Step 1 - Install dependencies
  7. ```
  8. pacman -S xfce4 xfce4-goodies human-icon-theme i3
  9. ```
  10.  
  11. ## Step 2 - Setup X to start the xfce4 desktop environment
  12. `cp /etc/X11/xinit/xinitrc ~/.xinitrc`
  13.  
  14. ```
  15. // .xinitrc /
  16. exec startxfce4
  17. ````
  18.  
  19. ## Step 3 - Startx
  20. `startx` - Runs the xfce4 DE - you can immediately logout again. This step is only to init the xfce-config files (~/.config/xfce4)
  21.  
  22. ## Step 4 - Modify config files to disable session saving, load i3 as WM and disable xfdesktop
  23. Replace the content of the file `~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml` with this:
  24. ```
  25. <?xml version="1.0" encoding="UTF-8"?>
  26. <channel name="xfce4-session" version="1.0">
  27. <property name="general" type="empty">
  28. <property name="FailsafeSessionName" type="string" value="Failsafe"/>
  29. <property name="LockCommand" type="string" value=""/>
  30. <property name="SessionName" type="string" value="Default"/>
  31. <!-- disable session saving -->
  32. <property name="SaveOnExit" type="bool" value="false"/>
  33. </property>
  34. <property name="sessions" type="empty">
  35. <property name="Failsafe" type="empty">
  36. <property name="IsFailsafe" type="bool" value="true"/>
  37. <property name="Count" type="int" value="5"/>
  38. <property name="Client0_Command" type="array">
  39. <!-- use i3 as WM -->
  40. <value type="string" value="i3"/>
  41. </property>
  42. <property name="Client0_Priority" type="int" value="15"/>
  43. <property name="Client0_PerScreen" type="bool" value="false"/>
  44. <property name="Client1_Command" type="array">
  45. <value type="string" value="xfsettingsd"/>
  46. </property>
  47. <property name="Client1_Priority" type="int" value="20"/>
  48. <property name="Client1_PerScreen" type="bool" value="false"/>
  49. <property name="Client2_Command" type="array">
  50. <value type="string" value="xfce4-panel"/>
  51. </property>
  52. <property name="Client2_Priority" type="int" value="25"/>
  53. <property name="Client2_PerScreen" type="bool" value="false"/>
  54. <property name="Client3_Command" type="array">
  55. <value type="string" value="Thunar"/>
  56. <value type="string" value="--daemon"/>
  57. </property>
  58. <property name="Client3_Priority" type="int" value="30"/>
  59. <property name="Client3_PerScreen" type="bool" value="false"/>
  60. <property name="Client4_Command" type="array">
  61. <!-- empty value, we wont xfdesktop to start -->
  62. <value type="string" value=""/>
  63. </property>
  64. <property name="Client4_Priority" type="int" value="35"/>
  65. <property name="Client4_PerScreen" type="bool" value="false"/>
  66. </property>
  67. </property>
  68. </channel>
  69. ```
  70.  
  71. ## Step 5 - kill cache & reboot
  72. - `rm -rf ~/.cache/*`
  73. - Reboot your system
  74.  
  75. ## Step 6 - run startx
  76. `startx` - after a few seconds you should see this:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement