diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-25 22:52:20 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-25 23:00:44 -0700 |
| commit | 2f17e369400b9c895b3554008ab3efbc76255428 (patch) | |
| tree | 172c910e17f14bb8d0d7306fe527c2c79140df64 /roles/home/desktop/discord.nix | |
| parent | 10c984caf7067656990e5966b4626314f225755f (diff) | |
roles: home: migrate old home module to roles
Diffstat (limited to 'roles/home/desktop/discord.nix')
| -rw-r--r-- | roles/home/desktop/discord.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/roles/home/desktop/discord.nix b/roles/home/desktop/discord.nix new file mode 100644 index 0000000..d7c0254 --- /dev/null +++ b/roles/home/desktop/discord.nix @@ -0,0 +1,41 @@ +{ config, lib, pkgs, ... }: + +let + conversion = import ../../../util/color-conversion.nix { inherit lib; }; +in lib.mkIf config.home.roles.desktop.discord { + home.packages = with pkgs; [ + (discord.override { + withVencord = false; + withOpenASAR = false; + }) + vesktop + ]; + + xdg.configFile."Vencord/themes/nix.theme.css".text = let c = config.theme.colors; in '' + @import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/BasicBackground/BasicBackground.css); + + :root { + --transparencycolor: 0, 0, 0; + --transparencyalpha: 0.0; + --messagetransparency: 0.0; + --guildchanneltransparency: 0.15; + --chatinputtransparency: 0.0; + --memberlisttransparency: 0.15; + --settingsicons: 0; + /* A discord update messed up transparancy, and for now eyeballing it works fine */ + /* --background: rgba(0, 0, 0, 0.8); */ + --background: rgba(0, 0, 0, 0.55); + --backdrop: rgba(0, 0, 0, 0); + --version1_0_5: none; + + --accentcolor: ${conversion.hexToRGBString ", " c.accent}; + + --textbrightest: ${conversion.hexToRGBString ", " c.fg0}; + --textbrighter: ${conversion.hexToRGBString ", " c.fg1}; + --textbright: ${conversion.hexToRGBString ", " c.fg2}; + --textdark: ${conversion.hexToRGBString ", " c.fg3}; + --textdarker: ${conversion.hexToRGBString ", " c.fg4}; + --textdarkest: ${conversion.hexToRGBString ", " c.brightBlack}; + } + ''; +} |