mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-13 08:02:40 +02:00
feat: update for gtk/x11/xwayland
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./creative.nix
|
./creative.nix
|
||||||
|
./gtk.nix
|
||||||
./immutable-file.nix
|
./immutable-file.nix
|
||||||
./media.nix
|
./media.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.pointerCursor = {
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Classic";
|
||||||
|
size = 24;
|
||||||
|
gtk.enable = true;
|
||||||
|
x11.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# set dpi for 4k monitor
|
||||||
|
xresources.properties = {
|
||||||
|
# dpi for Xorg's font
|
||||||
|
"Xft.dpi" = 162;
|
||||||
|
# or set a generic dpi
|
||||||
|
"*.dpi" = 162;
|
||||||
|
};
|
||||||
|
|
||||||
|
# gtk's theme settings, generate files:
|
||||||
|
# 1. ~/.gtkrc-2.0
|
||||||
|
# 2. ~/.config/gtk-3.0/settings.ini
|
||||||
|
# 3. ~/.config/gtk-4.0/settings.ini
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
font = {
|
||||||
|
name = "Roboto";
|
||||||
|
package = pkgs.roboto;
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||||
|
|
||||||
|
iconTheme = {
|
||||||
|
name = "Papirus-Dark";
|
||||||
|
package = pkgs.papirus-icon-theme;
|
||||||
|
};
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
# https://github.com/catppuccin/gtk
|
||||||
|
name = "Catppuccin-Macchiato-Compact-Pink-dark";
|
||||||
|
package = pkgs.catppuccin-gtk.override {
|
||||||
|
# https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/data/themes/catppuccin-gtk/default.nix
|
||||||
|
accents = [ "pink" ];
|
||||||
|
size = "compact";
|
||||||
|
variant = "mocha";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -17,23 +17,6 @@
|
|||||||
};
|
};
|
||||||
home.file.".config/hypr/themes".source = "${catppuccin-hyprland}/themes";
|
home.file.".config/hypr/themes".source = "${catppuccin-hyprland}/themes";
|
||||||
|
|
||||||
# gtk's theme settings, generate files:
|
|
||||||
# 1. ~/.gtkrc-2.0
|
|
||||||
# 2. ~/.config/gtk-3.0/settings.ini
|
|
||||||
# 3. ~/.config/gtk-4.0/settings.ini
|
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
theme = {
|
|
||||||
# https://github.com/catppuccin/gtk
|
|
||||||
name = "Catppuccin-Macchiato-Compact-Pink-dark";
|
|
||||||
package = pkgs.catppuccin-gtk.override {
|
|
||||||
# https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/data/themes/catppuccin-gtk/default.nix
|
|
||||||
accents = [ "pink" ];
|
|
||||||
variant = "mocha";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# music player - mpd
|
# music player - mpd
|
||||||
home.file.".config/mpd" = {
|
home.file.".config/mpd" = {
|
||||||
source = ./mpd;
|
source = ./mpd;
|
||||||
@@ -57,16 +40,4 @@
|
|||||||
"WLR_EGL_NO_MODIFIRES" = "1";
|
"WLR_EGL_NO_MODIFIRES" = "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
# this is for xwayland
|
|
||||||
# set dpi for 4k monitor
|
|
||||||
xresources.properties = {
|
|
||||||
"Xft.dpi" = 162;
|
|
||||||
};
|
|
||||||
|
|
||||||
# set Xcursor.theme & Xcursor.size in ~/.Xresources automatically
|
|
||||||
home.pointerCursor = {
|
|
||||||
name = "Qogir-dark";
|
|
||||||
package = pkgs.qogir-theme;
|
|
||||||
size = 64;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,18 +44,4 @@
|
|||||||
"__GLX_VENDOR_LIBRARY_NAME" = "nvidia";
|
"__GLX_VENDOR_LIBRARY_NAME" = "nvidia";
|
||||||
};
|
};
|
||||||
|
|
||||||
# set dpi for 4k monitor
|
|
||||||
xresources.properties = {
|
|
||||||
# dpi for Xorg's font
|
|
||||||
"Xft.dpi" = 162;
|
|
||||||
# or set a generic dpi
|
|
||||||
"*.dpi" = 162;
|
|
||||||
};
|
|
||||||
|
|
||||||
# set Xcursor.theme & Xcursor.size in ~/.Xresources automatically
|
|
||||||
home.pointerCursor = {
|
|
||||||
name = "Qogir-dark";
|
|
||||||
package = pkgs.qogir-theme;
|
|
||||||
size = 64;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user