Jump to content

CDE: Difference between revisions

1,113 bytes added ,  3 June 2020
no edit summary
imported>User
No edit summary
imported>User
No edit summary
Line 2: Line 2:


Aka '''cdesktopenv''' or '''Common Desktop Environment''' is a vintage desktop environment.
Aka '''cdesktopenv''' or '''Common Desktop Environment''' is a vintage desktop environment.
== Enabling ==
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
  services.xserver.desktopManager.cde.enable = true;
</nowiki>}}


== Changing fonts ==
== Changing fonts ==
Line 128: Line 122:
   cd ~/.themes/cdetheme/scripts/
   cd ~/.themes/cdetheme/scripts/
   ./switchtheme ../palettes/Arizona.dp 8 3 22 false true false
   ./switchtheme ../palettes/Arizona.dp 8 3 22 false true false
== Example configuration ==
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
let
  cde-icons = pkgs.writeShellScriptBin "cde-icons" ''
    file=`basename ''${1%.*}`
    ${pkgs.imagemagick}/bin/convert $1 -resize 48x48 ~/.dt/icons/$file.l.pm
    ${pkgs.imagemagick}/bin/convert $1 -resize 32x32 ~/.dt/icons/$file.m.pm
    ${pkgs.imagemagick}/bin/convert $1 -resize 24x24 ~/.dt/icons/$file.s.pm
    ${pkgs.imagemagick}/bin/convert $1 -resize 16x16 ~/.dt/icons/$file.t.pm
  '';
in {
  # CDE has a limited number of locales
  i18n.defaultLocale = lib.mkForce "en_US.UTF-8";
  # CDE has no keyboard layout configuration
  services.xserver.layout = "us,ru";
  services.xserver.xkbOptions = "grp:alt_shift_toggle,grp_led:caps";
  services.xserver.desktopManager.cde.enable = true;
  services.xserver.desktopManager.cde.extraPackages = with pkgs;
    options.services.xserver.desktopManager.cde.extraPackages.default ++ [
      fsv cde-icons cde-gtk-theme
    ];
  environment.etc."xdg/gtk-2.0/gtkrc".text = ''
    gtk-theme-name="cdetheme"
  '';
  environment.etc."xdg/gtk-3.0/settings.ini".text = ''
    [Settings]
    gtk-theme-name=cdetheme
  '';
  qt5 = {
    enable = true;
    platformTheme = "gtk2";
    style = "gtk2";
  };
}
</nowiki>}}


== Useful sources ==
== Useful sources ==
Anonymous user