Fix gtk and cursor theme
All checks were successful
Cachix / build (elendel) (push) Successful in 2m51s
Cachix / build (kholinar) (push) Successful in 8m7s
Cachix / build (marabethia) (push) Successful in 4m27s

This commit is contained in:
Charlotte Van Petegem 2025-04-26 18:21:10 +02:00
parent 17471e92c3
commit 0415c86f9f
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
2 changed files with 51 additions and 64 deletions

View file

@ -30,7 +30,6 @@ let
export GDK_SCALE=1
export GDK_DPI_SCALE=1
export MOZ_ENABLE_WAYLAND=1
export XCURSOR_SIZE=24
export _JAVA_AWT_WM_NONREPARENTING=1
if [ "$DBUS_SESSION_BUS_ADDRESS" ]; then
export DBUS_SESSION_BUS_ADDRESS
@ -152,7 +151,7 @@ let
riverctl focus-follows-cursor normal
riverctl hide-cursor when-typing enabled
riverctl set-cursor-warp on-output-change
riverctl xcursor-theme Catppuccin-Latte-Light-Cursors 24
riverctl xcursor-theme ${config.home-manager.users.charlotte.home.pointerCursor.name} ${toString config.home-manager.users.charlotte.home.pointerCursor.size}
riverctl keyboard-layout -variant altgr-intl -options compose:caps us

View file

@ -1,5 +1,8 @@
{ config, lib, pkgs, ... }:
let
gtkTheme = pkgs.colloid-gtk-theme.override { themeVariants = [ "orange" ]; colorVariants = [ "light" "dark" ]; sizeVariants = [ "compact" ]; tweaks = [ "catppuccin" ]; };
in
{
options.chvp.graphical.theme.enable = lib.mkOption {
default = false;
@ -39,15 +42,16 @@
home.packages = [
pkgs.catppuccin-cursors.latteLight
# Also install dark mode to profile for darkman
(pkgs.catppuccin-gtk.override { size = "compact"; variant = "frappe"; })
gtkTheme
];
home.file = {
".icons/default/index.theme".text = ''
[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=catppuccin-latte-light-cursors
'';
home.pointerCursor = {
enable = true;
package = pkgs.catppuccin-cursors.latteLight;
dotIcons.enable = true;
gtk.enable = true;
x11.enable = true;
name = "catppuccin-latte-light-cursors";
size = 24;
};
dconf.settings."org/gnome/desktop/wm/preferences".button-layout = "";
gtk = {
@ -57,16 +61,7 @@
name = "Noto Sans";
size = 10;
};
gtk2.extraConfig = ''
gtk-cursor-theme-name = "catppuccin-latte-light-cursors"
gtk-cursor-theme-size = 24
'';
gtk3 = {
extraConfig = {
gtk-cursor-theme-name = "catppuccin-latte-light-cursors";
gtk-cursor-theme-size = 24;
};
extraCss = ''
gtk3.extraCss = ''
/* No (default) titlebar on wayland */
headerbar.titlebar.default-decoration {
background: transparent;
@ -84,13 +79,7 @@
box-shadow: none;
}
'';
};
gtk4 = {
extraConfig = {
gtk-cursor-theme-name = "catppuccin-latte-light-cursors";
gtk-cursor-theme-size = 24;
};
extraCss = ''
gtk4.extraCss = ''
/* No (default) titlebar on wayland */
headerbar.titlebar.default-decoration {
background: transparent;
@ -108,14 +97,13 @@
box-shadow: none;
}
'';
};
iconTheme = {
package = pkgs.libsForQt5.breeze-icons;
name = "breeze";
};
theme = {
package = pkgs.catppuccin-gtk.override { size = "compact"; variant = "latte"; };
name = "Catppuccin-Latte-Compact-Blue-Light";
package = gtkTheme;
name = "Colloid-Orange-Light-Compact-Catppuccin";
};
};
qt = {
@ -140,7 +128,7 @@
emacsclient --eval "(chvp--dark-mode)"
'';
gtk = ''
${pkgs.glib}/bin/gsettings set org.gnome.desktop.interface gtk-theme Catppuccin-Frappe-Compact-Blue-Dark
${pkgs.glib}/bin/gsettings set org.gnome.desktop.interface gtk-theme Colloid-Orange-Dark-Compact-Catppuccin
'';
river = ''
riverctl background-color 0x626880
@ -165,7 +153,7 @@
emacsclient --eval "(chvp--light-mode)"
'';
gtk = ''
${pkgs.glib}/bin/gsettings set org.gnome.desktop.interface gtk-theme Catppuccin-Latte-Compact-Blue-Light
${pkgs.glib}/bin/gsettings set org.gnome.desktop.interface gtk-theme Colloid-Orange-Light-Compact-Catppuccin
'';
river = ''
riverctl background-color 0xacb0be