189 lines
8.6 KiB
Nix
189 lines
8.6 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
config = lib.mkIf config.mtxyz.graphical {
|
|
home.packages = (with pkgs.gnome; [
|
|
gnome-tweaks dconf-editor
|
|
]) ++ (with pkgs.gnomeExtensions; [
|
|
tiling-assistant appindicator app-icons-taskbar arcmenu
|
|
]);
|
|
|
|
xsession = {
|
|
enable = true;
|
|
windowManager.command = "${pkgs.gnome.gnome-session}/bin/gnome-session";
|
|
};
|
|
|
|
home.pointerCursor = {
|
|
name = "Adwaita";
|
|
package = pkgs.vanilla-dmz;
|
|
gtk.enable = true;
|
|
x11.enable = true;
|
|
size = 24;
|
|
};
|
|
|
|
xdg.enable = true;
|
|
xdg.configFile = {
|
|
"tiling-assistant/layouts.json" = {
|
|
source = ./layouts.json;
|
|
};
|
|
};
|
|
|
|
gtk.enable = true;
|
|
qt = {
|
|
enable = true;
|
|
platformTheme = "gnome";
|
|
style.name = "adwaita";
|
|
};
|
|
|
|
dconf.settings = (with lib.home-manager.hm.gvariant; {
|
|
"org/gnome/shell" = {
|
|
disable-user-extensions = false;
|
|
enabled-extensions = [
|
|
"gsconnect@andyholmes.github.io"
|
|
"tiling-assistant@leleat-on-github"
|
|
"appindicatorsupport@rgcjonas.gmail.com"
|
|
"arcmenu@arcmenu.com"
|
|
"aztaskbar@aztaskbar.gitlab.com"
|
|
"workspace-indicator@gnome-shell-extensions.gcampax.github.com"
|
|
];
|
|
disabled-extensions = [];
|
|
favorite-apps = [
|
|
"firefox.desktop"
|
|
"neovide.desktop"
|
|
"org.gnome.Nautilus.desktop"
|
|
"org.wezfurlong.wezterm.desktop"
|
|
];
|
|
};
|
|
"org/gnome/mutter" = {
|
|
center-new-windows = true;
|
|
edge-tiling = false;
|
|
};
|
|
"org/gnome/desktop/sound".allow-volume-above-100-percent = true;
|
|
"org/gnome/settings-daemon/plugins/media-keys".custom-keybindings = [
|
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
|
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/"
|
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/"
|
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/"
|
|
];
|
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
|
binding = "<Super>Return";
|
|
command = "wezterm";
|
|
name = "Wezterm";
|
|
};
|
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
|
binding = "<Super>e";
|
|
command = "neovide";
|
|
name = "Neovide";
|
|
};
|
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" = {
|
|
binding = "<Super>f";
|
|
command = "nautilus";
|
|
name = "Files";
|
|
};
|
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3" = {
|
|
binding = "<Super>w";
|
|
command = "firefox";
|
|
name = "Browser";
|
|
};
|
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4" = {
|
|
binding = "<Shift><Super>w";
|
|
command = "chromium";
|
|
name = "Other Browser";
|
|
};
|
|
"org/gnome/shell/extensions/tiling-assistant" = {
|
|
active-window-hint = 1;
|
|
active-window-hint-color = "rgb(53,132,228)";
|
|
adapt-edge-tiling-to-favorite-layout = true;
|
|
center-window = [ "<Super>c" ];
|
|
default-move-mode = 2;
|
|
dynamic-keybinding-behavior = 2;
|
|
dynamic-keybinding-behaviour = 2;
|
|
enable-advanced-experimental-features = true;
|
|
favorite-layouts = [ "-1" "-1" "-1" ];
|
|
import-layout-examples = false;
|
|
last-version-installed = 42;
|
|
restore-window = [ "<Shift><Super>Down" ];
|
|
search-popup-layout = [ "<Super>v" ];
|
|
show-layout-panel-indicator = true;
|
|
tile-bottom-half = [ "<Super>Down" ];
|
|
tile-bottom-half-ignore-ta = [];
|
|
tile-bottomleft-quarter = [];
|
|
tile-bottomleft-quarter-ignore-ta = [];
|
|
tile-bottomright-quarter = [];
|
|
tile-bottomright-quarter-ignore-ta = [];
|
|
tile-edit-mode = [];
|
|
tile-left-half = [ "<Super>Left" ];
|
|
tile-left-half-ignore-ta = [];
|
|
tile-maximize = [ "<Shift><Super>Up" ];
|
|
tile-maximize-horizontally = [];
|
|
tile-maximize-vertically = [];
|
|
tile-right-half = [ "<Super>Right" ];
|
|
tile-right-half-ignore-ta = [];
|
|
tile-top-half = [ "<Super>Up" ];
|
|
tile-top-half-ignore-ta = [];
|
|
tile-topleft-quarter = [];
|
|
tile-topleft-quarter-ignore-ta = [];
|
|
tile-topright-quarter = [];
|
|
tile-topright-quarter-ignore-ta = [];
|
|
toggle-always-on-top = [ "<Super>space" ];
|
|
toggle-tiling-popup = [];
|
|
};
|
|
"org/gnome/shell/extensions/arcmenu" = {
|
|
activate-on-hover=true;
|
|
application-shortcuts-list=[["Settings" "org.gnome.Settings" "org.gnome.Settings.desktop"] ["Tweaks" "org.gnome.tweaks" "org.gnome.tweaks.desktop"] ["WezTerm" "org.wezfurlong.wezterm" "org.wezfurlong.wezterm.desktop"] ["Activities Overview" "view-fullscreen-symbolic" "ArcMenu_ActivitiesOverview"]];
|
|
arc-menu-icon=71;
|
|
arcmenu-extra-categories-links=[(mkTuple [3 true]) (mkTuple [0 false]) (mkTuple [1 true]) (mkTuple [2 true]) (mkTuple [4 false])];
|
|
arcmenu-extra-categories-links-location="Top";
|
|
button-padding=-1;
|
|
context-menu-shortcuts=[["Extensions" "org.gnome.Extensions" "org.gnome.Extensions.desktop"] ["ArcMenu Settings" "application-x-addon-symbolic" "ArcMenu_Settings"] ["Panel Extension Settings" "application-x-addon-symbolic" "ArcMenu_PanelExtensionSettings"] ["Separator" "list-remove-symbolic" "ArcMenu_Separator"] ["Power Options" "system-shutdown-symbolic" "ArcMenu_PowerOptions"] ["Activities Overview" "view-fullscreen-symbolic" "ArcMenu_ActivitiesOverview"]];
|
|
custom-menu-button-icon-size=26.0;
|
|
default-menu-view="Frequent_Apps";
|
|
directory-shortcuts-list=[["Home" "user-home-symbolic" "ArcMenu_Home"] ["Projects" "folder-symbolic" "~/Projects"] ["Downloads" ". GThemedIcon folder-download-symbolic folder-symbolic folder-download folder" "ArcMenu_Downloads"] ["Pictures" ". GThemedIcon folder-pictures-symbolic folder-symbolic folder-pictures folder" "ArcMenu_Pictures"]];
|
|
disable-recently-installed-apps=true;
|
|
disable-user-avatar=true;
|
|
enable-horizontal-flip=false;
|
|
enable-standlone-runner-menu=true;
|
|
extra-categories=[(mkTuple [0 false]) (mkTuple [1 true]) (mkTuple [2 true]) (mkTuple [3 false]) (mkTuple [4 false])];
|
|
hide-overview-on-startup=true;
|
|
max-search-results=10;
|
|
menu-background-color="rgba(48,48,49,0.98)";
|
|
menu-border-color="rgb(60,60,60)";
|
|
menu-button-appearance="Icon";
|
|
menu-button-icon="Menu_Icon";
|
|
menu-foreground-color="rgb(223,223,223)";
|
|
menu-item-active-bg-color="rgb(25,98,163)";
|
|
menu-item-active-fg-color="rgb(255,255,255)";
|
|
menu-item-hover-bg-color="rgb(21,83,158)";
|
|
menu-item-hover-fg-color="rgb(255,255,255)";
|
|
menu-layout="Mint";
|
|
menu-separator-color="rgba(255,255,255,0.1)";
|
|
mint-extra-buttons=[["Firefox" "web-browser-symbolic" "firefox.desktop"] ["Text Editor" "text-editor-symbolic" "neovide.desktop"] ["Terminal" "utilities-terminal-symbolic" "org.wezfurlong.wezterm.desktop"] ["Files" "system-file-manager-symbolic" "org.gnome.Nautilus.desktop"] ["Settings" "org.gnome.Settings" "org.gnome.Settings.desktop"] ["Separator" "list-remove-symbolic" "ArcMenu_Separator"] ["Suspend" "media-playback-pause-symbolic" "ArcMenu_Suspend"] ["Power Off..." "system-shutdown-symbolic" "ArcMenu_PowerOff"]];
|
|
multi-monitor=true;
|
|
pinned-app-list=["Firefox" "web-browser-symbolic" "firefox.desktop" "Text Editor" "text-editor-symbolic" "neovide.desktop" "Terminal" "utilities-terminal-symbolic" "org.wezfurlong.wezterm.desktop" "Files" "system-file-manager-symbolic" "org.gnome.Nautilus.desktop" "Settings" "org.gnome.Settings" "org.gnome.Settings.desktop"];
|
|
power-options=[(mkTuple [0 true]) (mkTuple [4 true]) (mkTuple [2 true]) (mkTuple [3 true]) (mkTuple [1 false]) (mkTuple [5 false]) (mkTuple [6 false]) (mkTuple [7 false])];
|
|
prefs-visible-page=0;
|
|
runner-menu-custom-hotkey=["<Super>r"];
|
|
search-entry-border-radius=(mkTuple [true 25]);
|
|
search-provider-open-windows=true;
|
|
vert-separator=false;
|
|
};
|
|
"org/gnome/shell/extensions/aztaskbar" = {
|
|
favorites=true;
|
|
icon-size=24;
|
|
icon-style="REGULAR";
|
|
isolate-monitors=true;
|
|
main-panel-height=(mkTuple [true 36]);
|
|
panel-on-all-monitors=true;
|
|
scroll-action="NO_ACTION";
|
|
show-apps-button=(mkTuple [false 0]);
|
|
show-panel-activities-button=false;
|
|
};
|
|
});
|
|
};
|
|
}
|