2020-10-20 15:40:57 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2019-10-19 12:55:35 +02:00
|
|
|
|
2020-03-21 16:46:18 +01:00
|
|
|
let
|
2020-10-03 16:49:18 +02:00
|
|
|
left = "h";
|
|
|
|
down = "j";
|
|
|
|
up = "k";
|
2020-03-21 16:46:18 +01:00
|
|
|
right = "l";
|
2020-10-03 16:49:18 +02:00
|
|
|
in {
|
2020-10-20 15:40:57 +02:00
|
|
|
dconf.settings = with lib.hm.gvariant; {
|
2019-10-19 12:55:35 +02:00
|
|
|
"org/gnome/shell" = {
|
2021-10-23 12:36:21 +02:00
|
|
|
disable-user-extensions = false;
|
2019-10-19 12:55:35 +02:00
|
|
|
enabled-extensions = [
|
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
|
2020-02-27 19:14:39 +01:00
|
|
|
"appindicatorsupport@rgcjonas.gmail.com"
|
2023-01-12 23:50:21 +01:00
|
|
|
"gnomebedtime@ionutbortis.gmail.com"
|
2019-10-19 12:55:35 +02:00
|
|
|
];
|
2023-04-12 20:59:05 +02:00
|
|
|
favorite-apps = [ "org.gnome.Nautilus.desktop" "mullvadbrowser.desktop" ];
|
2020-03-12 15:15:07 +01:00
|
|
|
};
|
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
|
|
|
};
|
2022-03-29 21:26:59 +02:00
|
|
|
"org/gnome/desktop/interface" = { color-scheme = "prefer-dark"; };
|
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" = {
|
2020-10-20 15:40:57 +02:00
|
|
|
sources = map mkTuple [ [ "xkb" "gb" ] [ "ibus" "mozc-jp" ] ];
|
2020-10-03 16:49:18 +02:00
|
|
|
xkb-options = [ "compose:ralt" ];
|
2020-05-22 18:01:25 +02:00
|
|
|
};
|
2020-03-21 16:46:18 +01:00
|
|
|
|
2020-10-03 16:49:18 +02:00
|
|
|
"org/gnome/desktop/app-folders" = {
|
|
|
|
folder-children = [ "Office" "Utilities" ];
|
2020-03-21 16:46:18 +01:00
|
|
|
};
|
2020-10-03 16:49:18 +02: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" = {
|
2020-10-03 16:49:18 +02:00
|
|
|
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" = {
|
2020-10-03 16:49:18 +02:00
|
|
|
close = [ "<Super>q" ];
|
|
|
|
minimize = [ "<Super>comma" ];
|
2021-03-26 00:47:11 +01:00
|
|
|
maximize = [ ];
|
|
|
|
unmaximize = [ ];
|
2020-10-03 16:49:18 +02:00
|
|
|
toggle-maximized = [ "<Super>m" ];
|
2022-02-10 23:16:56 +01:00
|
|
|
toggle-fullscreen = [ "<Super>f" ];
|
|
|
|
toggle-on-all-workspaces = [ "<Super>p" ];
|
2020-03-21 16:46:18 +01:00
|
|
|
|
2022-02-10 23:16:56 +01:00
|
|
|
switch-to-workspace-left =
|
|
|
|
[ "<Primary><Super>Left" "<Primary><Super>${left}" ];
|
|
|
|
switch-to-workspace-right =
|
|
|
|
[ "<Primary><Super>Right" "<Primary><Super>${right}" ];
|
|
|
|
switch-to-workspace-down = [ ];
|
|
|
|
switch-to-workspace-up = [ ];
|
2020-03-21 16:46:18 +01:00
|
|
|
|
2022-02-10 23:16:56 +01:00
|
|
|
move-to-workspace-left = [ "<Shift><Super>Left" "<Shift><Super>${left}" ];
|
|
|
|
move-to-workspace-right =
|
|
|
|
[ "<Shift><Super>Right" "<Shift><Super>${right}" ];
|
2021-03-26 00:47:11 +01:00
|
|
|
move-to-workspace-down = [ ];
|
2022-02-10 23:16:56 +01:00
|
|
|
move-to-workspace-up = [ ];
|
2021-03-26 00:47:11 +01:00
|
|
|
|
|
|
|
move-to-monitor-left = [ ];
|
|
|
|
move-to-monitor-right = [ ];
|
|
|
|
move-to-monitor-up = [ ];
|
|
|
|
move-to-monitor-down = [ ];
|
2020-03-21 16:46:18 +01:00
|
|
|
};
|
|
|
|
"org/gnome/mutter/keybindings" = {
|
2020-10-03 16:49:18 +02:00
|
|
|
toggle-tiled-left = [ ];
|
|
|
|
toggle-tiled-right = [ ];
|
2020-03-21 16:46:18 +01:00
|
|
|
};
|
2022-02-08 23:55:02 +01:00
|
|
|
"org/gnome/settings-daemon/plugins/color" = {
|
|
|
|
night-light-enabled = true;
|
|
|
|
night-light-last-coordinates = mkTuple [ 53.2593 10.4 ];
|
|
|
|
night-light-temperature = mkUint32 3700;
|
|
|
|
};
|
2020-03-21 16:46:18 +01:00
|
|
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
2020-10-03 16:49:18 +02:00
|
|
|
screensaver = [ "<Super>Escape" ];
|
|
|
|
home = [ "<Super>f" ];
|
|
|
|
email = [ "<Super>e" ];
|
|
|
|
www = [ "<Super>b" ];
|
2021-03-26 00:47:11 +01:00
|
|
|
terminal = [ "<Super>t" ];
|
2020-10-03 16:49:18 +02:00
|
|
|
rotate-video-lock-static = [ ];
|
2020-03-21 16:46:18 +01:00
|
|
|
};
|
2023-01-12 23:50:21 +01:00
|
|
|
"org/gnome/shell/extensions/bedtime-mode" = {
|
|
|
|
ondemand-button-location = "menu";
|
|
|
|
automatic-schedule = true;
|
2023-04-09 21:31:47 +02:00
|
|
|
schedule-start-hours = 23;
|
2023-01-12 23:50:21 +01:00
|
|
|
schedule-end-hours = 6;
|
|
|
|
};
|
2019-10-19 12:55:35 +02:00
|
|
|
};
|
|
|
|
}
|