Move gnome settings to dconf
This commit is contained in:
parent
ee4895917f
commit
58794095e3
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
mkTuple: {
|
||||
"org/gnome/shell/extensions/pop-shell" = {
|
||||
tile-move-down-global=["<Alt><Shift>j"];
|
||||
tile-move-up-global=["<Alt><Shift>k"];
|
||||
|
@ -40,4 +40,52 @@
|
|||
"org/gnome/desktop/interface" = {
|
||||
show-battery-percentage=true;
|
||||
};
|
||||
|
||||
"org/gnome/shell" = {
|
||||
favorite-apps=["org.gnome.Nautilus.desktop"];
|
||||
};
|
||||
"org/gnome/desktop/input-sources" = {
|
||||
show-all-sources=true;
|
||||
sources=[
|
||||
(mkTuple ["xkb" "us+3l"])
|
||||
(mkTuple ["xkb" "us"])
|
||||
];
|
||||
};
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
num-workspaces=5;
|
||||
};
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
minimize=["<Alt>comma"];
|
||||
switch-to-workspace-left=[];
|
||||
switch-to-workspace-right=[];
|
||||
maximize=[];
|
||||
unmaximize=[];
|
||||
move-to-monitor-up=[];
|
||||
move-to-monitor-down=[];
|
||||
move-to-monitor-left=[];
|
||||
move-to-monitor-right=[];
|
||||
switch-to-workspace-down=[];
|
||||
switch-to-workspace-up=[];
|
||||
toggle-fullscreen=["<Alt>m"];
|
||||
close=["<Alt>q"];
|
||||
switch-to-workspace-1=["<Alt>1"];
|
||||
switch-to-workspace-2=["<Alt>2"];
|
||||
switch-to-workspace-3=["<Alt>3"];
|
||||
switch-to-workspace-4=["<Alt>4"];
|
||||
switch-to-workspace-5=["<Alt>5"];
|
||||
move-to-workspace-1=["<Alt><Shift>1"];
|
||||
move-to-workspace-2=["<Alt><Shift>2"];
|
||||
move-to-workspace-3=["<Alt><Shift>3"];
|
||||
move-to-workspace-4=["<Alt><Shift>4"];
|
||||
move-to-workspace-5=["<Alt><Shift>5"];
|
||||
};
|
||||
"org/gnome/shell/keybindings" = {
|
||||
open-application-menu=[];
|
||||
toggle-message-tray=[];
|
||||
toggle-overview=[];
|
||||
};
|
||||
"org/gnome/mutter/keybindings" = {
|
||||
toggle-tiled-left=[];
|
||||
toggle-tiled-right=[];
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{pkgs, lib, ...}: {
|
||||
home.sessionVariables = {
|
||||
NNN_FIFO = "/tmp/nnn.fifo";
|
||||
LANG = "en_US.UTF-8";
|
||||
|
@ -122,7 +122,7 @@
|
|||
maxCacheTtl = 180; # Seconds
|
||||
pinentryFlavor = "gnome3";
|
||||
};
|
||||
dconf.settings = import ./dconf.nix;
|
||||
dconf.settings = import ./dconf.nix lib.hm.gvariant.mkTuple;
|
||||
home.stateVersion = "22.11";
|
||||
targets.genericLinux.enable = true;
|
||||
}
|
55
nixos.nix
55
nixos.nix
|
@ -63,60 +63,7 @@ let systemInformation = import ./system/system-information.nix; in
|
|||
|
||||
# Enable the GNOME Desktop Environment.
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.desktopManager.gnome = {
|
||||
enable = true;
|
||||
extraGSettingsOverrides = ''
|
||||
# Favorite apps in gnome-shell
|
||||
# [org.gnome.shell]
|
||||
# favorite-apps=['org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop']
|
||||
|
||||
[org.gnome.desktop.input-sources]
|
||||
show-all-sources=true
|
||||
sources=[('xkb', 'us'), ('xkb', 'us+3l')]
|
||||
|
||||
[org.gnome.desktop.wm.preferences]
|
||||
num-workspaces=5
|
||||
|
||||
[org.gnome.desktop.wm.keybindings]
|
||||
# Pop shell bindings
|
||||
minimize=['<Alt>comma']
|
||||
switch-to-workspace-left=@as []
|
||||
switch-to-workspace-right=@as []
|
||||
maximize=@as []
|
||||
unmaximize=@as []
|
||||
move-to-monitor-up=@as []
|
||||
move-to-monitor-down=@as []
|
||||
move-to-monitor-left=@as []
|
||||
move-to-monitor-right=@as []
|
||||
switch-to-workspace-down=@as []
|
||||
switch-to-workspace-up=@as []
|
||||
toggle-fullscreen=['<Alt>m']
|
||||
close=['<Alt>q']
|
||||
switch-to-workspace-1=@as ['<Alt>1']
|
||||
switch-to-workspace-2=@as ['<Alt>2']
|
||||
switch-to-workspace-3=@as ['<Alt>3']
|
||||
switch-to-workspace-4=@as ['<Alt>4']
|
||||
switch-to-workspace-5=@as ['<Alt>5']
|
||||
move-to-workspace-1=@as ['<Alt><Shift>1']
|
||||
move-to-workspace-2=@as ['<Alt><Shift>2']
|
||||
move-to-workspace-3=@as ['<Alt><Shift>3']
|
||||
move-to-workspace-4=@as ['<Alt><Shift>4']
|
||||
move-to-workspace-5=@as ['<Alt><Shift>5']
|
||||
|
||||
[org.gnome.shell.keybindings]
|
||||
open-application-menu=@as []
|
||||
toggle-message-tray=@as []
|
||||
toggle-overview=@as []
|
||||
|
||||
[org.gnome.mutter.keybindings]
|
||||
toggle-tiled-left=@as []
|
||||
toggle-tiled-right=@as []
|
||||
'';
|
||||
extraGSettingsOverridePackages = [
|
||||
pkgs.gsettings-desktop-schemas # for org.gnome.desktop
|
||||
pkgs.gnome.gnome-shell # for org.gnome.shell
|
||||
];
|
||||
};
|
||||
services.xserver.desktopManager.gnome.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
|
|
Loading…
Reference in a new issue