Xfce: Difference between revisions
imported>Mucaho Add section about xmonad |
imported>Mucaho Describe xmonad usage with xfce4 desktop enabled |
||
Line 58: | Line 58: | ||
In your i3 config, replace <code>i3-msg exit</code> with <code>xfce4-session-logout</code>. | In your i3 config, replace <code>i3-msg exit</code> with <code>xfce4-session-logout</code>. | ||
==== | ==== With xmonad as the window manager ==== | ||
One of the possibilities is to use <code>xmonad</code> as a window manager in a <code>Xfce</code> desktop environment. | One of the possibilities is to use <code>xmonad</code> as a window manager in a <code>Xfce</code> desktop environment. | ||
===== Without xfce desktop ===== | |||
The previously described configuration is extended with the part that configures xmonad: | The previously described configuration is extended with the part that configures xmonad: | ||
{{file|/etc/nixos/configuration.nix|nix| | {{file|/etc/nixos/configuration.nix|nix| | ||
Line 102: | Line 105: | ||
main = xmonad xfceConfig | main = xmonad xfceConfig | ||
{ terminal = "xfce4-terminal" | { terminal = "xfce4-terminal" | ||
, modMask = mod4Mask -- optional: use Win key instead of Alt as | , modMask = mod4Mask -- optional: use Win key instead of Alt as MODi key | ||
} | } | ||
</nowiki> | </nowiki> | ||
Line 108: | Line 111: | ||
Since Xfce uses Alt for a lot of keybindings, using the Win key for xmonad hotkeys may be preferred. | Since Xfce uses Alt for a lot of keybindings, using the Win key for xmonad hotkeys may be preferred. | ||
{{Evaluate}} | {{Evaluate}} | ||
After choosing the <code>xfce+i3</code> session in your display manager, you will be taken to a clean screen, where you can open a terminal with <code>MOD+Shift+Enter</code> or launch an application with <code>MOD(+SHIFT)+p</code>. | |||
===== With xfce desktop ===== | |||
If you instead prefer to have panels (like the top panel) in addition to the main clean display area managed by xmonad, you can remove the <code>xfce.noDesktop = true;</code> option from the configuration. | |||
{{Evaluate}} | |||
After switching to your new configuration, reboot and clean your sessions with <code>rm -rf ~/.cache/sessions/*</code> before logging in to a graphical session. | |||
After logging in you will be greeted by xfce's desktop which interferes with xmonad. To solve this issue you have to remove the <code>xfdesktop</code> process from being started in the session. | |||
Open the session manager in the application launcher with <code>MOD(+SHIFT)+p</code> and then typing in "Session and Startup". Go to tab "Session" and set the restart style of <code>xfdesktop</code> to "Never". Kill the process with "Quit program", then "Save session." After this, xfce4 and xmonad work together nicely. | |||
===== Additional resources ===== | |||
Note that, unlike suggested in additional resources, the xmonad packages should not be installed in the environment (neither as systemPackages nor user packages), since that leads to errors when (re)compiling xmonad's config file. | Note that, unlike suggested in additional resources, the xmonad packages should not be installed in the environment (neither as systemPackages nor user packages), since that leads to errors when (re)compiling xmonad's config file. | ||
Line 116: | Line 132: | ||
[https://wiki.haskell.org/Xmonad/Using_xmonad_in_XFCE Haskell Wiki: Using xmonad in Xfce] | [https://wiki.haskell.org/Xmonad/Using_xmonad_in_XFCE Haskell Wiki: Using xmonad in Xfce] | ||
[https://wiki.haskell.org/File:Xmbindings.png Haskell Wiki: Xmonad default key bindings] | |||
== Troubleshooting == | == Troubleshooting == |