Set hyprland theme directly from flake input

Set GTK env dynamically from config
This commit is contained in:
Evie Litherland-Smith 2023-09-07 09:22:22 +01:00
parent 42e17dd4c3
commit d774fca10c
2 changed files with 9 additions and 4 deletions

View file

@ -32,6 +32,10 @@
url = "github:catppuccin/gitui"; url = "github:catppuccin/gitui";
flake = false; flake = false;
}; };
catppuccin-hyprland = {
url = "github:catppuccin/hyprland";
flake = false;
};
catppuccin-zathura = { catppuccin-zathura = {
url = "github:catppuccin/zathura"; url = "github:catppuccin/zathura";
flake = false; flake = false;
@ -50,6 +54,7 @@
bat = "${catppuccin-bat}/Catppuccin-mocha.tmTheme"; bat = "${catppuccin-bat}/Catppuccin-mocha.tmTheme";
fish = "${catppuccin-fish}/themes/Catppuccin Mocha.theme"; fish = "${catppuccin-fish}/themes/Catppuccin Mocha.theme";
gitui = "${catppuccin-gitui}/theme/mocha.ron"; gitui = "${catppuccin-gitui}/theme/mocha.ron";
hyprland = "${catppuccin-hyprland}/themes/mocha.conf";
zathura = "${catppuccin-zathura}/src/catppuccin-mocha"; zathura = "${catppuccin-zathura}/src/catppuccin-mocha";
zsh = zsh =
"${catppuccin-zsh}/themes/catppuccin_mocha-zsh-syntax-highlighting.zsh"; "${catppuccin-zsh}/themes/catppuccin_mocha-zsh-syntax-highlighting.zsh";

View file

@ -1,4 +1,4 @@
{ pkgs, anyrun, ... }: { config, pkgs, anyrun, catppuccin-themes, ... }:
let let
anyrunPackage = anyrun.packages.${pkgs.system}.anyrun; anyrunPackage = anyrun.packages.${pkgs.system}.anyrun;
emacsPackage = pkgs.emacs29-pgtk; emacsPackage = pkgs.emacs29-pgtk;
@ -6,7 +6,7 @@ let
rofiPackage = pkgs.rofi-wayland; rofiPackage = pkgs.rofi-wayland;
swaylockPackage = pkgs.swaylock-effects; swaylockPackage = pkgs.swaylock-effects;
in '' in ''
source = ./macchiato.conf source = ${catppuccin-themes.hyprland}
source = ./extra.conf source = ./extra.conf
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
@ -14,8 +14,8 @@ in ''
env = XDG_SESSION_TYPE=wayland env = XDG_SESSION_TYPE=wayland
env = XDG_SESSION_DESKTOP=Hyprland env = XDG_SESSION_DESKTOP=Hyprland
env = GDK_BACKEND=wayland,x11 env = GDK_BACKEND=wayland,x11
env = GTK_THEME,Sweet-Dark env = GTK_THEME,${config.gtk.theme.name}
env = XCURSOR_THEME,Catppuccin-Macchiato-Dark-Cursors env = XCURSOR_THEME,${config.gtk.cursorTheme.name}
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24
env = QT_AUTO_SCREEN_SCALE_FACTOR=1 env = QT_AUTO_SCREEN_SCALE_FACTOR=1
env = QT_QPA_PLATFORM=wayland;xcb env = QT_QPA_PLATFORM=wayland;xcb