Set whatsapp appearance based on scheme variant
This commit is contained in:
parent
56cdefd666
commit
6077814878
|
@ -205,19 +205,26 @@
|
|||
fill_shape=false
|
||||
'';
|
||||
# WhatsApp config
|
||||
"whatsapp-for-linux/settings.conf" = {
|
||||
force = true;
|
||||
text = ''
|
||||
[web]
|
||||
allow-permissions=true
|
||||
hw-accel=2
|
||||
"whatsapp-for-linux/settings.conf" =
|
||||
let
|
||||
inherit (config.lib.stylix.scheme) variant;
|
||||
in
|
||||
{
|
||||
force = true;
|
||||
text = ''
|
||||
[web]
|
||||
allow-permissions=true
|
||||
hw-accel=2
|
||||
|
||||
[general]
|
||||
notification-sounds=true
|
||||
close-to-tray=true
|
||||
start-in-tray=true
|
||||
'';
|
||||
};
|
||||
[general]
|
||||
notification-sounds=true
|
||||
close-to-tray=true
|
||||
start-in-tray=true
|
||||
|
||||
[appearance]
|
||||
prefer-dark-theme=${if variant == "dark" then "true" else "false"}
|
||||
'';
|
||||
};
|
||||
# Teams config
|
||||
"teams-for-linux/config.json" = {
|
||||
force = true;
|
||||
|
|
Loading…
Reference in a new issue