18 pkgs.hicolor-icon-theme
25 #services.gnome.at-spi2-core.enable = true;
26 home.sessionVariables = lib.mkIf (!nixosConfig.services.gnome.at-spi2-core.enable) {
29 # keycode <num> = <x> <Shift+x> _ _ <AltGr+x> <AltGr+Shift+x> _ _"
30 home.file.".Xmodmap".text = ''
31 ! — (tiret insécable) with AltGr+Shift+-
32 keycode 15 = minus 6 bar fiveeighths bar U2011
33 ! — (tiret cadratin) with AltGr+Shift+_
34 keycode 17 = underscore 8 bar fiveeighths backslash emdash
36 ! Œ with AltGr+Shift+o
37 keycode 32 = o O o O oe OE
38 ! … (ellipsis) with AltGr+;
39 keycode 59 = semicolon period comma less ellipsis multiply ccedilla Ccedilla
40 ! (nbsp) with AltGr+space and (narrow nbsp) with AltGr+Shift+space
41 keycode 65 = space space NoSymbol NoSymbol nobreakspace U202F
43 ! Use Caps Lock button for compose key
44 keysym Caps_Lock = Multi_key Caps_Lock
45 ! Remove shift lock functionality
48 systemd.user.services.setxkbmap.Service.ExecStartPost =
49 "${pkgs.xorg.xmodmap}/bin/xmodmap ${config.home.homeDirectory}/.Xmodmap";
55 dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
56 echo >~/.xsettingsd 'Net/ThemeName "Adwaita-dark"'
57 systemctl --user kill -s HUP xsettingsd.service
60 dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'"
61 echo >~/.xsettingsd 'Net/ThemeName "Adwaita"'
62 systemctl --user kill -s HUP xsettingsd.service
64 *) echo "Usage: dark-mode <dark|light>";;
68 dconf write /org/gnome/desktop/interface/cursor-size "$1"
69 # FIXME: does not seem to work
70 echo >~/.xsettingsd 'Gtk/CursorThemeSize $1'
71 systemctl --user kill -s HUP xsettingsd.service
75 # Required for gtk-theme to work.
76 services.xsettingsd.enable = true;
78 "org/gnome/desktop/interface" = {
79 color-scheme = lib.mkDefault "prefer-dark";
83 enable = lib.mkDefault true;
84 theme.name = "Adwaita";
85 theme.package = pkgs.gnome-themes-extra;
86 iconTheme.package = pkgs.adwaita-icon-theme;
87 iconTheme.name = "Adwaita";
88 gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
90 bookmarks = lib.mkDefault [