2024-04-06 03:03:58 +03:00
|
|
|
{ lib, key, ... }: let
|
|
|
|
mod = key.meta.window.gnome;
|
|
|
|
in {
|
2024-03-28 07:51:33 +03:00
|
|
|
programs.dconf.enable = true;
|
|
|
|
programs.dconf.profiles.user = {
|
|
|
|
enableUserDb = true; # Delete `~/.config/dconf/user` to reset user settings.
|
|
|
|
databases = [{
|
|
|
|
settings = with lib.gvariant; {
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/a11y" = {
|
|
|
|
always-show-universal-access-status = true;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
|
|
|
# "org/gnome/desktop/background" = {
|
|
|
|
# color-shading-type = "solid";
|
|
|
|
# picture-options = "none";
|
|
|
|
# primary-color = "#000000000000";
|
|
|
|
# secondary-color = "#000000000000";
|
|
|
|
# };
|
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/input-sources" = {
|
|
|
|
current = mkUint32 0;
|
|
|
|
mru-sources = [ (mkTuple [ "xkb" "us" ]) (mkTuple [ "xkb" "ru" ]) ];
|
|
|
|
per-window = false;
|
|
|
|
show-all-sources = true;
|
|
|
|
sources = [ (mkTuple [ "xkb" "us" ]) (mkTuple [ "xkb" "ru" ]) ];
|
|
|
|
xkb-options = [ "grp:caps_toggle" ];
|
|
|
|
};
|
2024-03-28 07:51:33 +03:00
|
|
|
|
|
|
|
"org/gnome/desktop/interface" = {
|
2024-04-06 00:08:35 +03:00
|
|
|
clock-show-date = true;
|
|
|
|
clock-show-weekday = true;
|
|
|
|
color-scheme = "prefer-dark";
|
2024-04-03 02:05:36 +03:00
|
|
|
# cursor-blink = false;
|
|
|
|
# cursor-size = "24";
|
|
|
|
# cursor-theme = "Adwaita";
|
|
|
|
# document-font-name = "SF Pro Text 11";
|
2024-03-28 07:51:33 +03:00
|
|
|
enable-animations = false;
|
2024-04-06 00:08:35 +03:00
|
|
|
enable-hot-corners = false;
|
2024-04-03 02:05:36 +03:00
|
|
|
# font-antialiasing = "rgba";
|
|
|
|
# font-hinting = "full";
|
|
|
|
# font-name = "SF Pro Display 10";
|
2024-04-06 00:08:35 +03:00
|
|
|
gtk-enable-primary-paste = false;
|
2024-04-03 02:05:36 +03:00
|
|
|
# gtk-theme = "Adwaita";
|
|
|
|
# icon-theme = "Adwaita";
|
|
|
|
# monospace-font-name = "Terminess Nerd Font Mono Medium 12";
|
2024-04-06 00:08:35 +03:00
|
|
|
show-battery-percentage = false;
|
2024-04-03 02:05:36 +03:00
|
|
|
# toolbar-style = "text";
|
|
|
|
# toolkit-accessibility = false;
|
|
|
|
};
|
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/media-handling" = {
|
|
|
|
automount = false;
|
|
|
|
automount-open = false;
|
|
|
|
autorun-never = true;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/peripherals/mouse" = {
|
|
|
|
accel-profile = "flat";
|
|
|
|
natural-scroll = true;
|
|
|
|
speed = "0.0";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/peripherals/touchpad" = {
|
|
|
|
tap-to-click = true;
|
|
|
|
two-finger-scrolling-enabled = true;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/privacy" = {
|
|
|
|
disable-camera = false;
|
|
|
|
disable-microphone = false;
|
|
|
|
old-files-age = mkUint32 30;
|
|
|
|
recent-files-max-age = mkUint32 30;
|
|
|
|
remove-old-temp-files = true;
|
|
|
|
remove-old-trash-files = true;
|
|
|
|
report-technical-problems = true;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
|
|
|
# "org/gnome/desktop/remote-desktop/rdp" = {
|
|
|
|
# enable = false;
|
|
|
|
# tls-cert = "/home/voronind/.local/share/gnome-remote-desktop/tls.crt";
|
|
|
|
# tls-key = "/home/voronind/.local/share/gnome-remote-desktop/tls.key";
|
|
|
|
# view-only = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
# "org/gnome/desktop/screensaver" = {
|
|
|
|
# color-shading-type = "solid";
|
|
|
|
# idle-activation-enabled = false;
|
|
|
|
# lock-delay = mkUint32 0;
|
|
|
|
# picture-options = "zoom";
|
|
|
|
# picture-uri = "file:///etc/wallpaper/Forest.jpg";
|
|
|
|
# primary-color = "#000000000000";
|
|
|
|
# secondary-color = "#000000000000";
|
|
|
|
# };
|
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/sound" = {
|
|
|
|
allow-volume-above-100-percent = false;
|
|
|
|
event-sounds = false;
|
2024-04-03 02:05:36 +03:00
|
|
|
# theme-name = "freedesktop";
|
2024-04-06 00:08:35 +03:00
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/wm/keybindings" = {
|
|
|
|
activate-window-menu = [ "" ];
|
|
|
|
begin-move = [ "" ];
|
2024-04-06 03:03:58 +03:00
|
|
|
begin-resize = [ "${mod}${key.action.resize.begin}" ];
|
|
|
|
close = [ "${mod}${key.action.close}" ];
|
2024-04-06 00:08:35 +03:00
|
|
|
cycle-group = [ "" ];
|
|
|
|
cycle-group-backward = [ "" ];
|
|
|
|
cycle-panels = [ "" ];
|
|
|
|
cycle-panels-backward = [ "" ];
|
|
|
|
cycle-windows = [ "" ];
|
|
|
|
cycle-windows-backward = [ "" ];
|
|
|
|
maximize = [ "" ];
|
|
|
|
maximize-horizontally = [ "" ];
|
2024-04-06 03:03:58 +03:00
|
|
|
minimize = [ "${mod}${key.navigation.go.down}" ];
|
2024-04-06 00:08:35 +03:00
|
|
|
move-to-monitor-down = [ "" ];
|
|
|
|
move-to-monitor-left = [ "" ];
|
|
|
|
move-to-monitor-right = [ "" ];
|
|
|
|
move-to-monitor-up = [ "" ];
|
|
|
|
move-to-workspace-1 = [ "" ];
|
|
|
|
move-to-workspace-2 = [ "" ];
|
|
|
|
move-to-workspace-3 = [ "" ];
|
|
|
|
move-to-workspace-4 = [ "" ];
|
|
|
|
move-to-workspace-last = [ "" ];
|
2024-04-06 03:03:58 +03:00
|
|
|
move-to-workspace-left = [ "<Shift>${mod}${key.navigation.move.prev}" ];
|
|
|
|
move-to-workspace-right = [ "<Shift>${mod}${key.navigation.move.next}" ];
|
|
|
|
panel-run-dialog = [ "${mod}${key.action.launch}" ];
|
|
|
|
show-desktop = [ "${mod}${key.action.hide}" ];
|
|
|
|
switch-applications = [ "${mod}${key.gnome.window.switch}" ];
|
|
|
|
switch-applications-backward = [ "<Shift>${mod}${key.gnome.window.switch}" ];
|
|
|
|
switch-group = [ "<Alt>${key.gnome.window.switch}" ];
|
|
|
|
switch-group-backward = [ "<Shift><Alt>${key.gnome.window.switch}" ];
|
2024-04-06 00:08:35 +03:00
|
|
|
switch-input-source = [ "" ];
|
|
|
|
switch-input-source-backward = [ "" ];
|
|
|
|
switch-panels = [ "" ];
|
|
|
|
switch-panels-backward = [ "" ];
|
|
|
|
switch-to-workspace-1 = [ "" ];
|
|
|
|
switch-to-workspace-2 = [ "" ];
|
|
|
|
switch-to-workspace-3 = [ "" ];
|
|
|
|
switch-to-workspace-4 = [ "" ];
|
|
|
|
switch-to-workspace-last = [ "" ];
|
2024-04-06 03:03:58 +03:00
|
|
|
switch-to-workspace-left = [ "${mod}${key.navigation.go.prev}" ];
|
|
|
|
switch-to-workspace-right = [ "${mod}${key.navigation.go.next}" ];
|
2024-04-06 00:08:35 +03:00
|
|
|
switch-windows = [ "" ];
|
|
|
|
switch-windows-backward = [ "" ];
|
2024-04-06 03:03:58 +03:00
|
|
|
toggle-fullscreen = [ "${mod}${key.gnome.window.fullscreen}" ];
|
|
|
|
toggle-maximized = [ "${mod}${key.navigation.go.up}" ];
|
2024-04-06 00:08:35 +03:00
|
|
|
unmaximize = [ "" ];
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/wm/preferences" = {
|
|
|
|
action-middle-click-titlebar = "minimize";
|
|
|
|
action-right-click-titlebar = "menu";
|
|
|
|
focus-mode = "click"; # `click` or `sloppy`.
|
|
|
|
button-layout = "appmenu:close";
|
2024-04-03 02:05:36 +03:00
|
|
|
# titlebar-font = "SF Pro Display 11";
|
2024-04-06 00:08:35 +03:00
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/desktop/session" = {
|
|
|
|
idle-delay = mkUint32 0;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/mutter" = {
|
|
|
|
attach-modal-dialogs = true;
|
|
|
|
center-new-windows = true;
|
|
|
|
dynamic-workspaces = true;
|
|
|
|
edge-tiling = true;
|
|
|
|
workspaces-only-on-primary = true;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/mutter/keybindings" = {
|
2024-04-06 03:03:58 +03:00
|
|
|
toggle-tiled-left = [ "${mod}${key.navigation.go.left}" ];
|
|
|
|
toggle-tiled-right = [ "${mod}${key.navigation.go.right}" ];
|
2024-04-06 00:08:35 +03:00
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/mutter/wayland/keybindings" = {
|
|
|
|
restore-shortcuts = [ "" ];
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/nautilus/icon-view" = {
|
|
|
|
default-zoom-level = "larger";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/nautilus/list-view" = {
|
|
|
|
default-zoom-level = "small";
|
|
|
|
use-tree-view = false;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/nautilus/preferences" = {
|
|
|
|
click-policy = "single";
|
|
|
|
default-folder-viewer = "list-view";
|
|
|
|
default-sort-in-reverse-order = false;
|
|
|
|
default-sort-order = "name";
|
|
|
|
migrated-gtk-settings = true;
|
|
|
|
search-filter-time-type = "last_modified";
|
|
|
|
search-view = "list-view";
|
|
|
|
show-image-thumbnails = "local-only";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/settings-daemon/plugins/color" = {
|
|
|
|
night-light-enabled = false;
|
|
|
|
night-light-schedule-automatic = false;
|
|
|
|
night-light-schedule-from = "0.0";
|
|
|
|
night-light-schedule-to = "0.0";
|
|
|
|
night-light-temperature = mkUint32 3700;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
|
|
|
custom-keybindings = [
|
|
|
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
|
|
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
|
|
|
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/"
|
|
|
|
];
|
|
|
|
magnifier = [ "" ];
|
|
|
|
magnifier-zoom-in = [ "" ];
|
|
|
|
magnifier-zoom-out = [ "" ];
|
|
|
|
screenreader = [ "" ];
|
2024-04-06 03:03:58 +03:00
|
|
|
screensaver = [ "${mod}${key.action.wait}" ];
|
2024-04-06 00:08:35 +03:00
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
2024-04-06 03:03:58 +03:00
|
|
|
binding = "${mod}${key.gnome.launch.terminal}";
|
2024-04-06 00:08:35 +03:00
|
|
|
command = "kgx -e bash -c 'tmux new-session -A -s main; bash'";
|
|
|
|
name = "gnome-terminal";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
2024-04-06 03:03:58 +03:00
|
|
|
binding = "<Shift>${mod}${key.action.exit}";
|
2024-04-06 00:08:35 +03:00
|
|
|
command = "gnome-session-quit --power-off";
|
|
|
|
name = "gnome-poweroff";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" = {
|
2024-04-06 03:03:58 +03:00
|
|
|
binding = "<Primary>${key.gnome.launch.terminal}";
|
2024-04-06 00:08:35 +03:00
|
|
|
command = "kgx -- btop";
|
|
|
|
name = "System Monitor";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/settings-daemon/plugins/power" = {
|
|
|
|
ambient-enabled = false;
|
|
|
|
idle-dim = false;
|
|
|
|
power-button-action = "nothing";
|
|
|
|
sleep-inactive-ac-timeout = "0";
|
|
|
|
sleep-inactive-ac-type = "nothing";
|
|
|
|
sleep-inactive-battery-type = "nothing";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/shell" = {
|
|
|
|
disable-extension-version-validation = true;
|
|
|
|
disable-user-extensions = false;
|
|
|
|
favorite-apps = [ "" ];
|
|
|
|
had-bluetooth-devices-setup = true;
|
|
|
|
last-selected-power-profile = "power-saver";
|
|
|
|
remember-mount-password = false;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/shell/app-switcher" = {
|
|
|
|
current-workspace-only = true;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/shell/keybindings" = {
|
|
|
|
focus-active-notification = [ "" ];
|
|
|
|
open-application-menu = [ "" ];
|
2024-04-06 03:03:58 +03:00
|
|
|
show-screenshot-ui = [ "${mod}${key.gnome.screenshot}" ];
|
2024-04-06 00:08:35 +03:00
|
|
|
switch-to-application-1 = [ "" ];
|
|
|
|
switch-to-application-2 = [ "" ];
|
|
|
|
switch-to-application-3 = [ "" ];
|
|
|
|
switch-to-application-4 = [ "" ];
|
|
|
|
switch-to-application-5 = [ "" ];
|
|
|
|
switch-to-application-6 = [ "" ];
|
|
|
|
switch-to-application-7 = [ "" ];
|
|
|
|
switch-to-application-8 = [ "" ];
|
|
|
|
switch-to-application-9 = [ "" ];
|
|
|
|
toggle-application-view = [ "" ];
|
|
|
|
toggle-message-tray = [ "" ];
|
|
|
|
toggle-overview = [ "" ];
|
|
|
|
toggle-quick-settings = [ "" ];
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/shell/overrides" = {
|
|
|
|
edge-tiling = false;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/software" = {
|
|
|
|
download-updates = false;
|
|
|
|
download-updates-notify = false;
|
|
|
|
first-run = false;
|
|
|
|
show-nonfree-prompt = false;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gnome/system/location" = {
|
|
|
|
enabled = false;
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gtk/gtk4/settings/file-chooser" = {
|
|
|
|
date-format = "regular";
|
|
|
|
location-mode = "path-bar";
|
|
|
|
show-hidden = false;
|
|
|
|
show-size-column = true;
|
|
|
|
show-type-column = true;
|
|
|
|
sidebar-width = "166";
|
|
|
|
sort-column = "modified";
|
|
|
|
sort-directories-first = true;
|
|
|
|
sort-order = "descending";
|
|
|
|
type-format = "category";
|
|
|
|
view-type = "list";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"org/gtk/settings/file-chooser" = {
|
|
|
|
date-format = "regular";
|
|
|
|
location-mode = "path-bar";
|
|
|
|
show-hidden = false;
|
|
|
|
show-size-column = true;
|
|
|
|
show-type-column = true;
|
|
|
|
sort-column = "modified";
|
|
|
|
sort-directories-first = true;
|
|
|
|
sort-order = "descending";
|
|
|
|
type-format = "category";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"system/locale" = {
|
|
|
|
region = "ru_RU.UTF-8";
|
|
|
|
};
|
2024-04-03 02:05:36 +03:00
|
|
|
|
2024-04-06 00:08:35 +03:00
|
|
|
"system/proxy" = {
|
|
|
|
mode = "none";
|
|
|
|
};
|
2024-03-28 07:51:33 +03:00
|
|
|
};
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
}
|