hyprland portal on allegro

This commit is contained in:
Antoine Vaure 2024-12-22 21:16:10 +01:00
parent d5e01122e3
commit 5add4bae94
3 changed files with 74 additions and 40 deletions

39
ui.nix
View file

@ -42,7 +42,6 @@ in
xsession.enable = true;
fonts.fontconfig.enable = true;
fonts.fontconfig.defaultFonts = {
serif = [ "Gentium Plus" ];
@ -102,8 +101,6 @@ in
};
};
xdg = {
mimeApps.defaultApplications."TerminalEmulator" = "Alacritty.desktop";
};
@ -209,31 +206,35 @@ in
package = pkgs.inter;
name = "Inter";
};
theme = {
name = "Catppuccin-Latte-Compact-Pink-Light";
# name = "Catppuccin-Mocha-Compact-Pink-Dark";
package = pkgs.catppuccin-gtk.override {
accents = [ "pink" ];
size = "compact";
tweaks = [ ];
variant = "latte";
};
};
iconTheme = {
name = "Adwaita";
package = pkgs.adwaita-icon-theme;
};
# theme = {
# name = "Catppuccin-Latte-Compact-Pink-Light";
# # name = "Catppuccin-Mocha-Compact-Pink-Dark";
# package = pkgs.catppuccin-gtk.override {
# accents = [ "pink" ];
# size = "compact";
# tweaks = [ ];
# variant = "latte";
# };
# };
# iconTheme = {
# name = "Adwaita";
# package = pkgs.adwaita-icon-theme;
# };
cursorTheme = {
name = "Hackneyed";
package = pkgs.hackneyed;
};
};
services.darkman = {
services.darkman = let
reload-hyprland = ''
hyprctl reload
'';
in {
lightModeScripts = {
gtk-theme = ''
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'"
'';
'';
set-background = ''
rm -f ~/.local/share/bg/*
ln -rs ~/.local/share/bg-light.* ~/.local/share/bg/