2024-08-02 17:55:48 -04:00
|
|
|
{ lib, osConfig, ... }:
|
2024-05-07 18:02:59 -04:00
|
|
|
{
|
2024-11-06 10:42:06 -05:00
|
|
|
# NOTE: Allegedly prevents random Gnome crashes. But really, it just prevents me from logging in.
|
|
|
|
# See https://www.reddit.com/r/archlinux/comments/1erbika/fyi_if_you_experience_crashes_on_gnome_on_amd/
|
|
|
|
/*
|
|
|
|
home.file.".config/environment.d/99-mutter-no-rt.conf".text = ''
|
|
|
|
MUTTER_DEBUG_KMS_THREAD_TYPE=user;
|
|
|
|
'';
|
|
|
|
*/
|
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Additional Gnome configurations via home-manager.
|
2024-06-24 11:38:28 -04:00
|
|
|
dconf.settings = lib.mkIf osConfig.aux.system.ui.desktops.gnome.enable {
|
2024-05-07 18:02:59 -04:00
|
|
|
"org/gnome/mutter" = {
|
|
|
|
edge-tiling = true;
|
|
|
|
workspaces-only-on-primary = false;
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
# Configure fonts
|
|
|
|
font-name = "Fira Sans Semi-Light 11";
|
|
|
|
document-font-name = "Roboto Slab 11";
|
|
|
|
monospace-font-name = "Liberation Mono 11";
|
|
|
|
titlebar-font = "Fira Sans Semi-Bold 11";
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Configure hinting
|
|
|
|
font-hinting = "slight";
|
|
|
|
font-antialiasing = "rgba";
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Configure workspace
|
|
|
|
enable-hot-corners = true;
|
2024-03-21 10:59:16 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Set icon theme
|
|
|
|
icon-theme = "Papirus-Dark";
|
2024-03-21 10:59:16 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Set legacy application theme
|
|
|
|
gtk-theme = "Adwaita-dark";
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Configure touchpad scroll & tap behavior
|
|
|
|
"org/gnome/desktop/peripherals/touchpad" = {
|
|
|
|
disable-while-typing = true;
|
|
|
|
click-method = "fingers";
|
|
|
|
tap-to-click = true;
|
|
|
|
natural-scroll = true;
|
|
|
|
two-finger-scrolling-enabled = true;
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Tweak window management
|
|
|
|
"org/gnome/desktop/wm/preferences" = {
|
|
|
|
button-layout = "appmenu:minimize,maximize,close";
|
|
|
|
resize-with-right-button = true;
|
|
|
|
focus-mode = "click";
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Make alt-tab switch windows, not applications
|
|
|
|
"org/gnome/desktop/wm/keybindings" = {
|
|
|
|
switch-tab = [ ];
|
|
|
|
switch-windows = [ "<Alt>Tab" ];
|
|
|
|
switch-windows-backward = [ "<Shift><Alt>Tab" ];
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
"org/gnome/shell" = {
|
|
|
|
disable-user-extensions = false;
|
|
|
|
};
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
}
|