dconf.nix 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. { lib, ... }:
  2. with lib.hm.gvariant;
  3. {
  4. dconf.settings = {
  5. "org/gnome/desktop/input-sources" = {
  6. sources = [
  7. (mkTuple [ "xkb" "us" ])
  8. (mkTuple [ "xkb" "ru" ])
  9. ];
  10. xkb-options = [
  11. "ctrl:nocaps"
  12. "grp_led:caps"
  13. "lv3:ralt_switch_multikey"
  14. "misc:typo"
  15. ];
  16. };
  17. "org/gnome/desktop/interface" = {
  18. # clock-show-seconds = true;
  19. color-scheme = "prefer-dark";
  20. cursor-size = 24;
  21. cursor-theme = "Adwaita";
  22. document-font-name = "serif 10";
  23. font-antialiasing = "grayscale";
  24. font-hinting = "slight";
  25. font-name = "sans 10";
  26. gtk-theme = "adw-gtk3";
  27. icon-theme = "Papirus-Dark";
  28. monospace-font-name = "monospace 12";
  29. };
  30. "org/gnome/desktop/media-handling" = {
  31. autorun-never = true;
  32. };
  33. "org/gnome/desktop/notifications" = {
  34. show-in-lock-screen = false;
  35. };
  36. "org/gnome/desktop/peripherals/keyboard" = {
  37. delay = mkUint32 300;
  38. repeat-interval = mkUint32 20;
  39. };
  40. "org/gnome/desktop/peripherals/mouse" = {
  41. accel-profile = "flat";
  42. natural-scroll = true;
  43. speed = 0.25;
  44. };
  45. "org/gnome/desktop/peripherals/trackball" = {
  46. accel-profile = "adaptive";
  47. middle-click-emulation = true;
  48. scroll-wheel-emulation-button = 3;
  49. };
  50. "org/gnome/desktop/peripherals/touchpad" = {
  51. accel-profile = "adaptive";
  52. middle-click-emulation = true;
  53. tap-to-click = true;
  54. two-finger-scrolling-enabled = true;
  55. };
  56. "org/gnome/desktop/privacy" = {
  57. old-files-age = mkUint32 3;
  58. recent-files-max-age = -1;
  59. remember-app-usage = false;
  60. remember-recent-files = false;
  61. remove-old-trash-files = true;
  62. };
  63. "org/gnome/desktop/session" = {
  64. # idle-delay = mkUint32 600;
  65. };
  66. "org/gnome/desktop/wm/keybindings" = {
  67. close = [ "<Super>c" ];
  68. cycle-group = [ "<Alt>Above_Tab" ];
  69. cycle-group-backward = [ "<Shift><Alt>Above_Tab" ];
  70. maximize = [ "<Super>k" "<Super>Up" ];
  71. minimize = [];
  72. move-to-workspace-1 = [ "<Shift><Super>q" ];
  73. move-to-workspace-2 = [ "<Shift><Super>w" ];
  74. move-to-workspace-3 = [ "<Shift><Super>e" ];
  75. move-to-workspace-4 = [ "<Shift><Super>r" ];
  76. move-to-workspace-last = [ "<Shift><Super>d" ];
  77. switch-applications = [ "<Super>Tab" ];
  78. switch-applications-backward = [ "<Shift><Super>Tab" ];
  79. switch-group = [ "<Super>Above_Tab" ];
  80. switch-group-backward = [ "<Shift><Super>Above_Tab" ];
  81. switch-to-workspace-1 = [ "<Super>q" ];
  82. switch-to-workspace-2 = [ "<Super>w" ];
  83. switch-to-workspace-3 = [ "<Super>e" ];
  84. switch-to-workspace-4 = [ "<Super>r" ];
  85. switch-to-workspace-last = [ "<Super>d" ];
  86. switch-windows = [ "<Alt>Tab" ];
  87. switch-windows-backward = [ "<Shift><Alt>Tab" ];
  88. toggle-fullscreen = [ "<Super>f" ];
  89. unmaximize = [ "<Super>j" "<Super>Down" ];
  90. };
  91. "org/gnome/desktop/wm/preferences" = {
  92. auto-raise = false;
  93. button-layout = "appmenu:close";
  94. focus-mode = "click";
  95. focus-new-windows = "smart";
  96. num-workspaces = 5;
  97. titlebar-font = "sans 10";
  98. };
  99. "org/gnome/mutter" = {
  100. attach-modal-dialogs = true;
  101. dynamic-workspaces = false;
  102. edge-tiling = true;
  103. workspaces-only-on-primary = true;
  104. };
  105. "org/gnome/mutter/keybindings" = {
  106. toggle-tiled-left = [ "<Super>h" "<Super>Left" ];
  107. toggle-tiled-right = [ "<Super>l" "<Super>Right" ];
  108. };
  109. "org/gnome/mutter/wayland/keybindings" = {
  110. switch-to-session-1 = [];
  111. switch-to-session-2 = [];
  112. switch-to-session-3 = [];
  113. switch-to-session-4 = [];
  114. switch-to-session-5 = [];
  115. switch-to-session-6 = [];
  116. switch-to-session-7 = [];
  117. switch-to-session-8 = [];
  118. switch-to-session-9 = [];
  119. switch-to-session-10 = [ "<Primary><Alt>F10" ];
  120. switch-to-session-11 = [];
  121. switch-to-session-12 = [];
  122. };
  123. "org/gnome/nautilus/icon-view" = {
  124. default-zoom-level = "small";
  125. };
  126. "org/gnome/nautilus/list-view" = {
  127. default-zoom-level = "small";
  128. };
  129. "org/gnome/nautilus/preferences" = {
  130. default-folder-viewer = "icon-view";
  131. };
  132. "org/gnome/nautilus/window-state" = {
  133. initial-size = mkTuple [ 890 850 ];
  134. };
  135. "org/gnome/settings-daemon/plugins/color" = {
  136. night-light-enabled = true;
  137. night-light-schedule-automatic = false;
  138. night-light-schedule-from = 22.0;
  139. night-light-schedule-to = 8.0;
  140. night-light-temperature = mkUint32 4500;
  141. };
  142. "org/gnome/settings-daemon/plugins/media-keys" = {
  143. custom-keybindings = [
  144. "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
  145. ];
  146. help = [];
  147. screensaver = [ "<Super>F1" ];
  148. };
  149. "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
  150. binding = "<Super>Return";
  151. command = "foot -d warning";
  152. name = "Foot";
  153. };
  154. "org/gnome/settings-daemon/plugins/power" = {
  155. power-button-action = "interactive";
  156. sleep-inactive-ac-type = "nothing";
  157. };
  158. "org/gnome/shell" = {
  159. disable-user-extensions = false;
  160. disabled-extensions = [];
  161. # enabled-extensions = [];
  162. # favorite-apps = [];
  163. };
  164. "org/gnome/shell/app-switcher" = {
  165. current-workspace-only = true;
  166. };
  167. "org/gnome/shell/extensions/alphabetical-app-grid" = {
  168. folder-order-position = "start";
  169. };
  170. "org/gnome/shell/extensions/caffeine" = {
  171. enable-fullscreen = false;
  172. show-indicator = "always";
  173. show-notifications = false;
  174. toggle-shortcut = [ "<Super>F2" ];
  175. };
  176. "org/gtk/gtk4/settings/file-chooser" = {
  177. # show-hidden = true;
  178. sort-directories-first = true;
  179. };
  180. "org/gtk/settings/file-chooser" = {
  181. # show-hidden = true;
  182. sort-directories-first = true;
  183. };
  184. };
  185. }