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 = "${pkgs.xorg.xmodmap}/bin/xmodmap ${
49 config.home.file.".Xmodmap".source
56 dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
57 echo >~/.xsettingsd 'Net/ThemeName "Adwaita-dark"'
58 systemctl --user kill -s HUP xsettingsd.service
61 dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'"
62 echo >~/.xsettingsd 'Net/ThemeName "Adwaita"'
63 systemctl --user kill -s HUP xsettingsd.service
65 *) echo "Usage: dark-mode <dark|light>";;
69 dconf write /org/gnome/desktop/interface/cursor-size "$1"
70 # FIXME: does not seem to work
71 echo >~/.xsettingsd 'Gtk/CursorThemeSize $1'
72 systemctl --user kill -s HUP xsettingsd.service
76 # Required for gtk-theme to work.
77 services.xsettingsd.enable = true;
79 "org/gnome/desktop/interface" = {
80 color-scheme = lib.mkDefault "prefer-dark";
84 enable = lib.mkDefault true;
85 theme.name = "Adwaita";
86 theme.package = pkgs.gnome-themes-extra;
87 iconTheme.package = pkgs.adwaita-icon-theme;
88 iconTheme.name = "Adwaita";
89 gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
91 bookmarks = lib.mkDefault [