l themes: make wayland compatible
This commit is contained in:
parent
c1ef7c79b6
commit
0156323836
@ -15,6 +15,7 @@
|
|||||||
${pkgs.coreutils}/bin/chown lass:users /var/theme/current_theme
|
${pkgs.coreutils}/bin/chown lass:users /var/theme/current_theme
|
||||||
${pkgs.xorg.xrdb}/bin/xrdb -merge /var/theme/config/xresources
|
${pkgs.xorg.xrdb}/bin/xrdb -merge /var/theme/config/xresources
|
||||||
${pkgs.procps}/bin/pkill -HUP xsettingsd
|
${pkgs.procps}/bin/pkill -HUP xsettingsd
|
||||||
|
${pkgs.glib}/bin/gsettings set org.gnome.desktop.interface gtk-theme "$(cat /var/theme/config/gtk-theme)"
|
||||||
else
|
else
|
||||||
echo "theme $1 not found"
|
echo "theme $1 not found"
|
||||||
fi
|
fi
|
||||||
@ -37,17 +38,25 @@ in {
|
|||||||
];
|
];
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
switch-theme
|
switch-theme
|
||||||
|
pkgs.dracula-theme
|
||||||
|
pkgs.gnome3.adwaita-icon-theme
|
||||||
];
|
];
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
|
"themes/light/gtk-theme".text = ''
|
||||||
|
Adwaita
|
||||||
|
'';
|
||||||
"themes/light/xsettings.conf".text = ''
|
"themes/light/xsettings.conf".text = ''
|
||||||
Net/ThemeName "Adwaita"
|
Net/ThemeName "Adwaita"
|
||||||
'';
|
'';
|
||||||
"themes/light/xresources".text = ''
|
"themes/light/xresources".text = ''
|
||||||
*background: #ffffff
|
*background: #ffffff
|
||||||
*foreground: #000000
|
*foreground: #000000
|
||||||
'';
|
'';
|
||||||
|
"themes/dark/gtk-theme".text = ''
|
||||||
|
Dracula
|
||||||
|
'';
|
||||||
"themes/dark/xsettings.conf".text = ''
|
"themes/dark/xsettings.conf".text = ''
|
||||||
Net/ThemeName "Adwaita-dark"
|
Net/ThemeName "Dracula"
|
||||||
'';
|
'';
|
||||||
"themes/dark/xresources".text = ''
|
"themes/dark/xresources".text = ''
|
||||||
*background: #000000
|
*background: #000000
|
||||||
|
Loading…
Reference in New Issue
Block a user