Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[HowTo] use i3 with xfce4

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
Phantorm
Posts: 2
Joined: 2023-08-06 06:03
Has thanked: 2 times

[HowTo] use i3 with xfce4

#1 Post by Phantorm »

1. Open your terminal and paste:
- to change your window manager to i3:

Code: Select all

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 ""
- to change your window manager to xfwm4:

Code: Select all

xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -s xfwm4 -t string -s --replace
xfconf-query -c xfce4-session -p /sessions/Failsafe/Client1_Command -t string -sa xfsettingsd
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 "xfdesktop"
2. Remember to delete your saved sessions(Go to Settings Manager > Session and Startup > Saved Sessions > Clear Saved Sessions.
3. Log out and go back.

Tips:
1. Remember to disable XDG autostart .desktop files in your i3 config by replacing:

Code: Select all

# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3
to:

Code: Select all

# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
# exec --no-startup-id dex --autostart --environment i3
2. To disable i3bar, replace in your i3 config:

Code: Select all

bar {
        status_command i3status
}
to:

Code: Select all

#bar {
#        status_command i3status
#}
3. If you want icons in your i3 window title bars add

Code: Select all

for_window [all] title_window_icon padding 1px
to your i3 config(~/.config/i3/config).
4. To close windows by pressing the middle mouse button(scroll wheel) on i3 title bars, add it to your i3 config:

Code: Select all

bindsym --release --border button2 kill
5. A workspace switcher plugin for xfce4-panel which can be used for the i3 window manager.
Raw CSS example (default i3 theme):

Code: Select all

.workspace label { padding-left: 3px; padding-right: 2px; }
.workspace { font: monospace 14; min-width: 14px; margin-right: -1px; border: 1px solid #333333; background-color: #222222; color: #888888; border-radius: 0; }
.workspace.visible { background-color: #5f676a; color: white; }
.workspace.focused { border: 1px solid #4C7899; background-color:  #285577; color: white; }
.workspace.urgent { background-color: #900000; color: white; }
.binding-mode { font: monospace 14; background-color: #900000; color: white; }
Last edited by Phantorm on 2024-03-25 12:41, edited 19 times in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: [HowTo] use i3 with xfce4

#2 Post by Head_on_a_Stick »

This method is very hacky.

Try https://wiki.archlinux.org/title/xfce#U ... ow_manager instead.
deadbang

Phantorm
Posts: 2
Joined: 2023-08-06 06:03
Has thanked: 2 times

Re: [HowTo] use i3 with xfce4

#3 Post by Phantorm »

Head_on_a_Stick wrote: 2023-08-06 11:32 This method is very hacky.

Try https://wiki.archlinux.org/title/xfce#U ... ow_manager instead.
But with my way you can easily change to default window manager, just uncheck checkbox

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: [HowTo] use i3 with xfce4

#4 Post by Head_on_a_Stick »

To return to the default WM using the ArchWiki method run

Code: Select all

xfconf-query -c xfce4-session -p /sessions/Failsafe/Client1_Command -t string -sa xfwm4
Simples.
deadbang

Post Reply