about summary refs log tree commit diff
path: root/machines/profpatsch/notes.org
blob: b5a826517428ab9a8c81ae61d86b6d09496354d3 (plain) (blame)
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
* GTK themes
this should work:

#+BEGIN_SRC nix
      # https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/desktop-managers/gnome3.nix
      xserver.displayManager.session = [
        {
          manage = "window";
          name = "awesome";
          start = ''
            # Set GTK_DATA_PREFIX so that GTK+ can find the themes
            export GTK_DATA_PREFIX=${config.system.path}
            # Find theme engines
            export GTK_PATH=${config.system.path}/lib/gtk-3.0:${config.system.path}/lib/gtk-2.0
            # Find the mouse
            export XCURSOR_PATH=~/.icons:${config.system.path}/share/icons
            # Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/
            ${pkgs.xdg-user-dirs}/bin/xdg-user-dirs-update
            # Find the mouse
            export XCURSOR_PATH=~/.icons:${config.system.path}/share/icons
            ${pkgs.awesome}/bin/awesome&
            waitPID=$!
          '';
        }
      ];

        environment = {

          # Share needed for themes and backgrounds
          pathsToLink = [ "/include" "/share"];
       };
#+END_SRC