style: patch vesktop
This commit is contained in:
parent
a2f7998f1a
commit
4ce1b5aedf
5 changed files with 32 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
discordIcon = lib.readFile ../../pkgs/assets/discord.svg;
|
||||
discordSplash = lib.readFile ../../pkgs/assets/peepoLeave.gif.base64;
|
||||
vesktop = pkgs.vesktop.overrideAttrs (oldAttrs: {
|
||||
desktopItems = lib.optional pkgs.stdenv.hostPlatform.isLinux (
|
||||
(lib.head oldAttrs.desktopItems).override {
|
||||
|
|
@ -11,6 +13,22 @@ let
|
|||
desktopName = "Discord";
|
||||
}
|
||||
);
|
||||
|
||||
patches = oldAttrs.patches ++ [
|
||||
../../pkgs/patches/splash.patch
|
||||
];
|
||||
|
||||
# Change Splash
|
||||
preConfigure = ''
|
||||
echo "${discordSplash}" | base64 -d > static/peepo.gif
|
||||
'';
|
||||
|
||||
# Change Icon
|
||||
postInstall = ''
|
||||
rm -rf $out/share/icons/hicolor/*
|
||||
mkdir -p $out/share/icons/hicolor/scalable/apps
|
||||
echo '${discordIcon}' > $out/share/icons/hicolor/scalable/apps/vesktop.svg
|
||||
'';
|
||||
});
|
||||
in
|
||||
{
|
||||
|
|
|
|||
1
pkgs/assets/discord.svg
Normal file
1
pkgs/assets/discord.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg fill="#7289da" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><rect height="512" rx="15%" width="512"/><path d="m346 392-21-25c41-11 57-39 57-39-52 49-194 51-249 0 0 0 14 26 56 39l-23 25c-70-1-97-48-97-48 0-104 46-187 46-187 47-33 90-33 90-33l3 4c-58 16-83 42-83 42 68-46 208-42 263 0 1-1-33-28-86-42l5-4s43 0 90 33c0 0 46 83 46 187 0 0-27 47-97 48z" fill="#fff"/><ellipse cx="196" cy="279" rx="33" ry="35"/><ellipse cx="312" cy="279" rx="33" ry="35"/></svg>
|
||||
|
After Width: | Height: | Size: 474 B |
1
pkgs/assets/peepoLeave.gif.base64
Normal file
1
pkgs/assets/peepoLeave.gif.base64
Normal file
File diff suppressed because one or more lines are too long
11
pkgs/patches/splash.patch
Normal file
11
pkgs/patches/splash.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- ./static/views/splash.html 2025-01-15 20:11:12.826658667 +0800
|
||||
+++ ./static/views/splash.html 2025-01-15 20:48:43.222988653 +0800
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="wrapper">
|
||||
<img
|
||||
draggable="false"
|
||||
- src="../shiggy.gif"
|
||||
+ src="../peepo.gif"
|
||||
alt="shiggy"
|
||||
role="presentation"
|
||||
/>
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
nodePackages_latest.vscode-json-languageserver
|
||||
bash-language-server
|
||||
tailwindcss-language-server
|
||||
vscode-langservers-extracted
|
||||
gopls
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue