nixos-config/home/desktop/gnome.nix

90 lines
2.7 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2019-10-19 12:55:35 +02:00
2020-03-21 16:46:18 +01:00
let
left = "h";
down = "j";
up = "k";
2020-03-21 16:46:18 +01:00
right = "l";
in {
dconf.settings = with lib.hm.gvariant; {
2019-10-19 12:55:35 +02:00
"org/gnome/shell" = {
enabled-extensions = [
2020-03-12 15:15:07 +01:00
"user-theme@gnome-shell-extensions.gcampax.github.com"
2020-03-12 15:41:59 +01:00
"pop-shell@system76.com"
2020-03-21 16:46:18 +01:00
"native-window-placement@gnome-shell-extensions.gcampax.github.com" # works better with pop-shell
"appindicatorsupport@rgcjonas.gmail.com"
2019-10-19 12:55:35 +02:00
];
favorite-apps = [ "org.gnome.Nautilus.desktop" "firefox.desktop" ];
2020-03-12 15:15:07 +01:00
};
2021-05-12 23:11:14 +02:00
"org/gnome/shell/extensions/user-theme" = { name = "Adwaita-dark"; };
2020-03-12 15:41:59 +01:00
"org/gnome/shell/extensions/pop-shell" = {
tile-by-default = true;
2021-03-26 00:47:11 +01:00
snap-to-grid = true;
smart-gaps = true;
show-title = false;
active-hint = false;
2020-03-12 15:41:59 +01:00
};
2021-05-12 23:11:14 +02:00
"org/gnome/desktop/sound" = { theme-name = "freedesktop"; };
2020-05-22 18:01:25 +02:00
"org/gnome/desktop/input-sources" = {
sources = map mkTuple [ [ "xkb" "gb" ] [ "ibus" "mozc-jp" ] ];
xkb-options = [ "compose:ralt" ];
2020-05-22 18:01:25 +02:00
};
2020-03-21 16:46:18 +01:00
"org/gnome/desktop/app-folders" = {
folder-children = [ "Office" "Utilities" ];
2020-03-21 16:46:18 +01:00
};
"org/gnome/desktop/app-folders/folders/Office" = {
name = "Office";
translate = true;
categories = [ "Office" ];
};
"org/gnome/desktop/app-folders/folders/Utilities" = {
name = "Utilities";
translate = true;
categories = [ "Utility" "X-GNOME-Utilities" "System" ];
};
# key bindings for pop-shell
"org/gnome/mutter/wayland/keybindings" = { restore-shortcuts = [ ]; };
2020-03-21 16:46:18 +01:00
"org/gnome/shell/keybindings" = {
open-application-menu = [ ];
toggle-message-tray = [ "<Super>v" ];
2021-03-26 00:47:11 +01:00
toggle-overview = [ ];
2020-03-21 16:46:18 +01:00
};
"org/gnome/desktop/wm/keybindings" = {
close = [ "<Super>q" ];
minimize = [ "<Super>comma" ];
2021-03-26 00:47:11 +01:00
maximize = [ ];
unmaximize = [ ];
toggle-maximized = [ "<Super>m" ];
2020-03-21 16:46:18 +01:00
switch-to-workspace-left = [ ];
switch-to-workspace-right = [ ];
2020-03-21 16:46:18 +01:00
2021-03-26 00:47:11 +01:00
move-to-workspace-up = [ ];
move-to-workspace-down = [ ];
move-to-monitor-left = [ ];
move-to-monitor-right = [ ];
move-to-monitor-up = [ ];
move-to-monitor-down = [ ];
2020-03-21 16:46:18 +01:00
switch-to-workspace-down =
[ "<Primary><Super>Down" "<Primary><Super>${down}" ];
2021-03-26 00:47:11 +01:00
switch-to-workspace-up = [ "<Primary><Super>Up" "<Primary><Super>${up}" ];
2020-03-21 16:46:18 +01:00
};
"org/gnome/mutter/keybindings" = {
toggle-tiled-left = [ ];
toggle-tiled-right = [ ];
2020-03-21 16:46:18 +01:00
};
"org/gnome/settings-daemon/plugins/media-keys" = {
screensaver = [ "<Super>Escape" ];
home = [ "<Super>f" ];
email = [ "<Super>e" ];
www = [ "<Super>b" ];
2021-03-26 00:47:11 +01:00
terminal = [ "<Super>t" ];
rotate-video-lock-static = [ ];
2020-03-21 16:46:18 +01:00
};
2019-10-19 12:55:35 +02:00
};
}