allow dconf settings to take gui-specific values
This commit is contained in:
parent
6982d274cc
commit
1655278b6c
|
@ -92,41 +92,49 @@
|
|||
};
|
||||
|
||||
# obtain these by running `dconf dump /` after manually customizing gnome
|
||||
dconf.settings = lib.mkIf (gui == "gnome") {
|
||||
# control alt-tab behavior
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
switch-applications = [ "<Super>Tab" ];
|
||||
switch-applications-backward=[];
|
||||
switch-windows=["<Alt>Tab"];
|
||||
switch-windows-backward=["<Super><Alt>Tab"];
|
||||
dconf.settings = lib.mkIf (gui == "gnome" || gui == "phosh") ({
|
||||
gnome = {
|
||||
# control alt-tab behavior
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
switch-applications = [ "<Super>Tab" ];
|
||||
switch-applications-backward=[];
|
||||
switch-windows=["<Alt>Tab"];
|
||||
switch-windows-backward=["<Super><Alt>Tab"];
|
||||
};
|
||||
# idle power savings
|
||||
"org/gnome/settings-deamon/plugins/power" = {
|
||||
idle-brigthness = 50;
|
||||
sleep-inactive-ac-type = "nothing";
|
||||
sleep-inactive-battery-timeout = 5400; # seconds
|
||||
};
|
||||
"org/gnome/shell" = {
|
||||
favorite-apps = [
|
||||
"org.gnome.Nautilus.desktop"
|
||||
"firefox.desktop"
|
||||
"kitty.desktop"
|
||||
# "org.gnome.Terminal.desktop"
|
||||
];
|
||||
};
|
||||
"org/gnome/desktop/session" = {
|
||||
# how long until considering a session idle (triggers e.g. screen blanking)
|
||||
idle-delay = 900;
|
||||
};
|
||||
"org/gnome/desktop/interface" = {
|
||||
text-scaling-factor = 1.25;
|
||||
};
|
||||
"org/gnome/desktop/media-handling" = {
|
||||
# don't auto-mount inserted media
|
||||
automount = false;
|
||||
automount-open = false;
|
||||
};
|
||||
};
|
||||
# idle power savings
|
||||
"org/gnome/settings-deamon/plugins/power" = {
|
||||
idle-brigthness = 50;
|
||||
sleep-inactive-ac-type = "nothing";
|
||||
sleep-inactive-battery-timeout = 5400; # seconds
|
||||
phosh = {
|
||||
# TODO: figure out where the display zoom = 1.5 is stored
|
||||
# "org/gnome/desktop/interface" = {
|
||||
# text-scaling-factor = 1.5;
|
||||
# };
|
||||
};
|
||||
"org/gnome/shell" = {
|
||||
favorite-apps = [
|
||||
"org.gnome.Nautilus.desktop"
|
||||
"firefox.desktop"
|
||||
"kitty.desktop"
|
||||
# "org.gnome.Terminal.desktop"
|
||||
];
|
||||
};
|
||||
"org/gnome/desktop/session" = {
|
||||
# how long until considering a session idle (triggers e.g. screen blanking)
|
||||
idle-delay = 900;
|
||||
};
|
||||
"org/gnome/desktop/interface" = {
|
||||
text-scaling-factor = 1.25;
|
||||
};
|
||||
"org/gnome/desktop/media-handling" = {
|
||||
# don't auto-mount inserted media
|
||||
automount = false;
|
||||
automount-open = false;
|
||||
};
|
||||
};
|
||||
}).${gui};
|
||||
|
||||
programs.firefox = lib.mkIf (gui != null) {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user