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

View file

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