theme: start configuring darkman
This commit is contained in:
parent
2fc2459a15
commit
ae17a6efc6
3 changed files with 46 additions and 5 deletions
|
@ -152,7 +152,7 @@ let
|
|||
configure_touchpads tap enabled
|
||||
configure_touchpads scroll-method two-finger
|
||||
|
||||
${pkgs.dbus}/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XCURSOR_SIZE QT_QPA_PLATFORM_THEME QT_STYLE_OVERRIDE QT_PLUGIN_PATH QTWEBKIT_PLUGIN_PATH
|
||||
${pkgs.dbus}/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XCURSOR_SIZE QT_QPA_PLATFORM_THEME QT_STYLE_OVERRIDE QT_PLUGIN_PATH QTWEBKIT_PLUGIN_PATH GDK_PIXBUF_MODULE_FILE XDG_DATA_DIRS GIO_EXTRA_MODULES PATH
|
||||
systemctl --user start river-session.target
|
||||
systemctl --user start tray.target
|
||||
'';
|
||||
|
|
|
@ -73,11 +73,9 @@ in
|
|||
belgium-eid
|
||||
cookie-autodelete
|
||||
decentraleyes
|
||||
firefox-color
|
||||
ff2mpv
|
||||
keepassxc-browser
|
||||
multi-account-containers
|
||||
stylus
|
||||
ublock-origin
|
||||
vue-js-devtools
|
||||
zotero-connector
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
};
|
||||
|
||||
config = lib.mkIf config.chvp.graphical.theme.enable {
|
||||
chvp.base.zfs.homeLinks = [{ path = ".config/qt5ct"; type = "cache"; }];
|
||||
chvp.base.zfs.homeLinks = [
|
||||
{ path = ".config/qt5ct"; type = "cache"; }
|
||||
{ path = ".config/qt6ct"; type = "cache"; }
|
||||
];
|
||||
fonts = {
|
||||
fontDir.enable = true;
|
||||
fontconfig = {
|
||||
|
@ -32,7 +35,11 @@
|
|||
|
||||
programs.dconf.enable = true;
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.catppuccin-cursors.latteLight ];
|
||||
home.packages = [
|
||||
pkgs.catppuccin-cursors.latteLight
|
||||
# Also install dark mode to profile for darkman
|
||||
(pkgs.catppuccin-gtk.override { size = "compact"; variant = "frappe"; })
|
||||
];
|
||||
home.file = {
|
||||
".icons/default/index.theme".text = ''
|
||||
[Icon Theme]
|
||||
|
@ -76,6 +83,42 @@
|
|||
package = pkgs.lightly-qt;
|
||||
};
|
||||
};
|
||||
services.darkman = {
|
||||
enable = true;
|
||||
settings = {
|
||||
lat = 51.0;
|
||||
lng = 3.7;
|
||||
usegeoclue = false;
|
||||
dbusserver = true;
|
||||
portal = true;
|
||||
};
|
||||
darkModeScripts = {
|
||||
emacs = ''
|
||||
emacsclient --eval "(setq catppuccin-flavor 'frappe)"
|
||||
emacsclient --eval "(load-theme 'catppuccin :no-confirm)"
|
||||
'';
|
||||
gtk = ''
|
||||
${pkgs.glib}/bin/gsettings set org.gnome.desktop.interface gtk-theme Catppuccin-Frappe-Compact-Blue-Dark
|
||||
'';
|
||||
qt = ''
|
||||
sed -i "s/Latte/Frappe/" ~/.config/qt5ct/qt5ct.conf
|
||||
sed -i "s/Latte/Frappe/" ~/.config/qt6ct/qt6ct.conf
|
||||
'';
|
||||
};
|
||||
lightModeScripts = {
|
||||
emacs = ''
|
||||
emacsclient --eval "(setq catppuccin-flavor 'latte)"
|
||||
emacsclient --eval "(load-theme 'catppuccin :no-confirm)"
|
||||
'';
|
||||
gtk = ''
|
||||
${pkgs.glib}/bin/gsettings set org.gnome.desktop.interface gtk-theme Catppuccin-Latte-Compact-Blue-Light
|
||||
'';
|
||||
qt = ''
|
||||
sed -i "s/Frappe/Latte/" ~/.config/qt5ct/qt5ct.conf
|
||||
sed -i "s/Frappe/Latte/" ~/.config/qt6ct/qt6ct.conf
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue