Xfce: Difference between revisions

imported>Typetetris
desktopManager.default and windowManager.default are deprecated. Sadly I don't know the session string for the xfce only example otherwise I would have changed that too.
A subsection on how to exclude packages in xfce.
Tags: Mobile edit Mobile web edit
 
(9 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[http://www.xfce.org Xfce] is a lightweight desktop environment based on GTK+. It includes a window manager, a file manager, desktop and panel.
[http://www.xfce.org Xfce] is a lightweight desktop environment based on GTK+. It includes a window manager, a file manager, desktop and panel.
This article is an extension of the documentation in the [https://nixos.org/manual/nixos/stable/#sec-xfce NixOS manual].


== Enabling ==
== Enabling ==
To use xfce set <code>service.xserver.desktopManager.xfce.enable</code> to <code>true</code>. For example:
To use xfce set <code>services.xserver.desktopManager.xfce.enable</code> to <code>true</code>. For example:
{{file|/etc/nixos/configuration.nix|nix|
{{file|/etc/nixos/configuration.nix|nix|
<nowiki>
<nowiki>
Line 13: Line 15:
     enable = true;
     enable = true;
     desktopManager = {
     desktopManager = {
      default = "xfce";
       xterm.enable = false;
       xterm.enable = false;
       xfce.enable = true;
       xfce.enable = true;
     };
     };
   };
   };
  services.displayManager.defaultSession = "xfce";
   ...
   ...
}
}
Line 23: Line 25:
}}
}}
{{Evaluate}}
{{Evaluate}}
=== Excluding xfce applications ===
Xfce does not include as many applications by default as some other desktop environments. Still, those can be excluded as demonstrated in the example below. Place this before the <code>services.xserver</code> snippet from above.
{{file|/etc/nixos/configuration.nix|nix|
<nowiki>
{
  environment.xfce.excludePackages = with pkgs.xfce; [
    mousepad
    parole
  # ristretto
    xfce4-appfinder
  # xfce4-notifyd
    xfce4-screenshooter
  # xfce4-session
  # xfce4-settings
  # xfce4-taskmanager
  # xfce4-terminal
  ];
}
</nowiki>
}}


=== Using as a desktop manager and not a window manager ===
=== Using as a desktop manager and not a window manager ===
Line 35: Line 58:
     enable = true;   
     enable = true;   
     desktopManager = {
     desktopManager = {
      default = "xfce";
       xterm.enable = false;
       xterm.enable = false;
       xfce = {
       xfce = {
Line 45: Line 67:
     windowManager.i3.enable = true;
     windowManager.i3.enable = true;
   };
   };
  services.displayManager.defaultSession = "xfce";
   ...
   ...
}
}
Line 90: Line 113:
       };
       };
     };
     };
    displayManager.defaultSession = "xfce+xmonad";
   };
   };
  services.displayManager.defaultSession = "xfce+xmonad";
   ...
   ...
}
}
Line 161: Line 184:
If you use pulse audio, set <code>nixpkgs.config.pulseaudio = true</code> as shown above. Otherwise, you may
If you use pulse audio, set <code>nixpkgs.config.pulseaudio = true</code> as shown above. Otherwise, you may
experience glitches like being able to mute the sound card but not unmute it.
experience glitches like being able to mute the sound card but not unmute it.
[[Category:Desktop environment]]
[[Category:NixOS Manual]]