GNOME: Difference between revisions
mNo edit summary |
Clean up and few changes |
||
Line 1: | Line 1: | ||
[[{{PAGENAME}}]] (/(ɡ)noʊm/) is a [[desktop environment]] | [[{{PAGENAME}}]] (/(ɡ)noʊm/) is a [[desktop environment]] known for its focus on being simple, intuitive, and easy to use. It is made by The GNOME Project and is composed entirely of free and open-source software. Its Mutter compositor supports both [[Wayland]] and X server, and the GNOME Shell user interface is customizable by extensions. | ||
[https://gnome.org/ {{PAGENAME}}] is available as a [[module]] | [https://gnome.org/ {{PAGENAME}}] is available as a [[module]] and can be enabled with <code>services.xserver.desktopManager</code>. | ||
Line 15: | Line 15: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== Excluding | === Excluding GNOME Applications === | ||
To exclude certain applications that are installed by default with GNOME edit {{ic|configuration.nix}} as follows: | |||
<syntaxhighlight lang="nixos"> | <syntaxhighlight lang="nixos"> | ||
environment.gnome.excludePackages = (with pkgs; [ | environment.gnome.excludePackages = (with pkgs; [ | ||
# for packages that are pkgs.*** | |||
gnome-tour | gnome-tour | ||
gnome-connections | gnome-connections | ||
]) ++ (with pkgs.gnome; [ | ]) ++ (with pkgs.gnome; [ | ||
# for packages that are pkgs.gnome.*** | |||
epiphany # web browser | epiphany # web browser | ||
geary # email reader | geary # email reader | ||
evince # document viewer | evince # document viewer | ||
]); | ]); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 53: | Line 34: | ||
== Configuration == | == Configuration == | ||
=== Managing | === Managing Extensions === | ||
GNOME extensions are managed and configured by the program " | GNOME extensions are managed and configured by the program "Extensions" that comes with GNOME. | ||
Extensions can be installed with Nix, however they aren't enabled by default. To enable them the "Extensions" program can be used. | |||
<syntaxhighlight lang="nixos"> | |||
environment.systemPackages = (with pkgs.gnomeExtensions; [ | |||
blur-my-shell | |||
pop-shell | |||
# *** | |||
]); | |||
</syntaxhighlight> | |||
To declaratively enable and configure, use of modules like home-manager is required to configure dconf settings. | |||
<syntaxhighlight lang="nixos"> | |||
dconf = { | |||
enable = true; | |||
settings = { | |||
"org/gnome/shell" = { | |||
disabled-user-extensions = false; # enables user extensions (disabled by default) | |||
enabled-extensions = [ | |||
"blur-my-shell@aunetx" | |||
# **** | |||
]; | |||
}; | |||
# Configure individual extensions | |||
"org/gnome/shell/extensions/blur-my-shell" = { | |||
brightness = 0.75; | |||
noise-amount = 0; | |||
}; | |||
}; | |||
}; | |||
</syntaxhighlight> | |||
To learn about settings that can be configured with dconf either look into "dconf editor" program or type <syntaxhighlight lang="shell">dconf watch /</syntaxhighlight> in the terminal and change settings from the GUI and see which options are responsible for that component/element. | |||
=== Dark mode === | === Dark mode === | ||
Line 74: | Line 88: | ||
== Tips and tricks == | == Tips and tricks == | ||
=== | === To run GNOME programs outside of GNOME === | ||
GNOME platform-based applications are largely [https://nixos.org/nixpkgs/manual/#sec-language-gnome self-contained], but they still depend, for one reason or another, on some global configuration. The {{ic|gnome.nix}} module sets all the necessary options for you but if you are running customized set-up, you might need to replicate that yourself. | |||
For instance, if you see the following error: | For instance, if you see the following error: | ||
Line 110: | Line 124: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== | === To run old applications === | ||
Some old applications use GConf service to store configuration. This has been deprecated for many years but some applications were abandoned before they managed to upgrade to a newer dconf system. If you are running such application and getting an error like: | |||
<syntaxHighlight lang=text> | <syntaxHighlight lang=text> | ||
Line 124: | Line 138: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
After applying the update | After applying the update restart your desktop session to refresh the user-specific dbus session. | ||
=== Dynamic triple buffering === | === Dynamic triple buffering === |