summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/gui/gnome.nix
blob: 44ba2dd67e0a064f79ae66190dbd8f56b2dc9d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{ config, lib, pkgs, ... }:

let
  mainUser = config.krebs.build.user.name;
in
{
  programs.gnome-terminal.enable = true;
  services.xserver = {
    desktopManager.gnome.enable = true;
    displayManager.gdm.enable = true;
    #displayManager.autoLogin = {
    #  enable = true;
    #  user = mainUser;
    #};
  };
  programs.dconf.enable = true;
  home-manager.users.${mainUser}.dconf = {
    enable = true;
    settings = {
      "org/gnome/terminal/legacy" = {
        mnemonics-enabled = false;
        theme-variant = "dark";
      };
      "org/gnome/desktop/interface" = {
        enable-animations = false;
        enable-hot-corners = false;
        show-battery-percentage = true;
      };
      "org/gnome/desktop/peripherals/touchpad" = {
        edge-scrolling-enabled = false;
        natural-scroll = false;
        send-events = "enabled";
        tap-to-click = true;
        two-finger-scrolling-enabled = true;
      };
      "org/gnome/desktop/session".idle-delay = 900;
      "org/gnome/desktop/wm/keybindings" = {
        close=["<Shift><Super>c"];
        minimize=["<Super>n"];
        move-to-workspace-1=["<Shift><Super>1"];
        move-to-workspace-2=["<Shift><Super>2"];
        move-to-workspace-3=["<Shift><Super>3"];
        move-to-workspace-4=["<Shift><Super>4"];
        panel-run-dialog=["<Super>r"];
        switch-to-workspace-1=["<Super>1"];
        switch-to-workspace-2=["<Super>2"];
        switch-to-workspace-3=["<Super>3"];
        switch-to-workspace-4=["<Super>4"];
        toggle-fullscreen=["<Super>f"];
      };
      "org/gnome/desktop/wm/preferences".num-workspaces = 4;
      "org/gnome/settings-daemon/plugins/color".night-light-enabled = true;
      "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/custom0" = {
        binding = "<Super>Return";
        command = "gnome-terminal";
        name = "terminal";
      };
    };
  };
}