Xfce: Difference between revisions

imported>Artturin
add to Desktop environments category
A subsection on how to exclude packages in xfce.
Tags: Mobile edit Mobile web edit
 
(7 intermediate revisions by 6 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 16: Line 18:
       xfce.enable = true;
       xfce.enable = true;
     };
     };
    displayManager.defaultSession = "xfce";
   };
   };
  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 44: Line 66:
     };
     };
     windowManager.i3.enable = true;
     windowManager.i3.enable = true;
    displayManager.defaultSession = "xfce+i3";
   };
   };
  services.displayManager.defaultSession = "xfce";
   ...
   ...
}
}
Line 91: Line 113:
       };
       };
     };
     };
    displayManager.defaultSession = "xfce+xmonad";
   };
   };
  services.displayManager.defaultSession = "xfce+xmonad";
   ...
   ...
}
}
Line 163: Line 185:
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 environments]]
[[Category:Desktop environment]]
[[Category:NixOS Manual]]