Skip to content

Commit

Permalink
feat: gnome home-manager configs for theming cursors and more
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarrio committed Oct 4, 2023
1 parent 4e6532d commit 1f1ef40
Showing 1 changed file with 172 additions and 3 deletions.
175 changes: 172 additions & 3 deletions home-manager/_mixins/desktop/gnome.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,172 @@
_: {

}
{ config, lib, pkgs, ... }:
with lib.hm.gvariant;
{
dconf.settings = {
"com/github/stsdc/monitor/settings" = {
background-state = true;
indicator-state = true;
indicator-cpu-state = false;
indicator-gpu-state = false;
indicator-memory-state = false;
indicator-network-download-state = true;
indicator-network-upload-state = true;
indicator-temperature-state = true;
};

"desktop/ibus/panel" = {
show-icon-on-systray = false;
use-custom-font = true;
custom-font = "Work Sans 10";
};

"desktop/ibus/panel/emoji" = {
font = "JoyPixels 16";
};

# "net/launchpad/plank/docks/dock1" = {
# alignment = "center";
# hide-mode = "window-dodge";
# icon-size = 48;
# pinned-only = false;
# position = "left";
# theme = "Transparent";
# };

"org/gnome/desktop/datetime" = {
automatic-timezone = true;
};

"org/gnome/desktop/input-sources" = {
xkb-options = [ "grp:alt_shift_toggle" "caps:none" ];
};

"org/gnome/desktop/interface" = {
clock-format = "24h";
color-scheme = "prefer-dark";
cursor-size = 24;
cursor-theme = "adwaita";
document-font-name = "Work Sans 12";
font-name = "Work Sans 12";
gtk-theme = "org.gnome.theme";
gtk-enable-primary-paste = true;
icon-theme = "adwaita";
monospace-font-name = "FiraCode Nerd Font Medium 13";
text-scaling-factor = 1.0;
};

"org/gnome/desktop/session" = {
idle-delay = lib.hm.gvariant.mkUint32 7200;
};

# "org/gnome/desktop/sound" = {
# theme-name = "elementary";
# };

"org/gnome/desktop/wm/keybindings" = {
switch-to-workspace-left = [ "<Primary><Alt>Left" ];
switch-to-workspace-right = [ "<Primary><Alt>Right" ];
};

"org/gnome/desktop/wm/preferences" = {
audible-bell = false;
button-layout = ":minimize,maximize,close";
num-workspaces = 8;
titlebar-font = "Work Sans Semi-Bold 12";
workspace-names = [ "Web" "Work" "Chat" "Code" "Virt" "Cast" "Fun" "Stuff" ];
};

"org/gnome/GWeather" = {
temperature-unit = "centigrade";
};

"org/gnome/mutter" = {
workspaces-only-on-primary = false;
dynamic-workspaces = false;
};


"org/gnome/mutter/keybindings" = {
toggle-tiled-left = [ "<Super>Left" ];
toggle-tiled-right = [ "<Super>Right" ];
};

# "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/custom0" = {
# binding = "<Super>e";
# command = "io.elementary.files -n ~/";
# name = "io.elementary.files -n ~/";
# };

"org/gnome/settings-daemon/plugins/power" = {
power-button-action = "interactive";
sleep-inactive-ac-timeout = 0;
sleep-inactive-ac-type = "nothing";
};

#"org/gnome/settings-daemon/plugins/xsettings" = {
# overrides = "{\'Gtk/DialogsUseHeader\': <0>, \'Gtk/ShellShowsAppMenu\': <0>, \'Gtk/EnablePrimaryPaste\': <1>, \'Gtk/DecorationLayout\': <\':minimize,maximize,close,menu\'>, \'Gtk/ShowUnicodeMenu\': <0>}";
#};

"org/gtk/gtk4/Settings/FileChooser" = {
clock-format = "24h";
};

"org/gtk/Settings/FileChooser" = {
clock-format = "24h";
};
};

gtk = {
enable = true;
cursorTheme = {
name = "adwaita";
package = pkgs.gnome.adwaita-icon-theme;
size = 24;
};

font = {
name = "Work Sans 12";
package = pkgs.work-sans;
};

gtk2 = {
configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
extraConfig = ''
gtk-application-prefer-dark-theme=1
'';
};

gtk3 = {
extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
};

gtk4 = {
extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
};

iconTheme = {
name = "adwaita";
package = pkgs.gnome.adwaita-icon-theme;
};

theme = {
name = "org.gnome.theme";
package = pkgs.numix-solarized-gtk-theme;
};
};

home.pointerCursor = {
package = pkgs.gnome.adwaita-icon-theme;
name = "adwaita";
size = 24;
gtk.enable = true;
x11.enable = true;
};
}

0 comments on commit 1f1ef40

Please sign in to comment.