1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 20:17:45 +00:00

Make discord use Wayland

This commit is contained in:
RGBCube 2024-01-15 17:25:04 +03:00
parent c28ceb50f7
commit adb759f888
No known key found for this signature in database
3 changed files with 14 additions and 4 deletions

View file

@ -1,5 +1,7 @@
# Broken Stuff
- Discord does not use Wayland.
- QT theme doesn't work.
- Nushell custom prompt title does not work, as it gets

View file

@ -8,9 +8,17 @@
xdg.configFile."Vencord/settings/quickCss.css".text = theme.discordCss;
})
(desktopSystemPackages (with pkgs; [
(discord.override {
(desktopHomePackages (with pkgs; [
((discord-canary.override {
withOpenASAR = true;
withVencord = true;
})
}).overrideAttrs (old: with pkgs; {
libPath = old.libPath + ":${libglvnd}/lib";
nativeBuildInputs = old.nativeBuildInputs ++ [ makeWrapper ];
postFixup = ''
wrapProgram $out/opt/DiscordCanary/DiscordCanary \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
'';
}))
]))

View file

@ -103,7 +103,7 @@
bind = SUPER+ALT, RETURN, exec, kitty
bind = SUPER , RETURN, exec, ghostty --gtk-single-instance=true
bind = SUPER , W , exec, firefox
bind = SUPER , D , exec, discord
bind = SUPER , D , exec, discordcanary
bind = SUPER , M , exec, thunderbird
bind = SUPER , T , exec, thunar
bind = SUPER , C , exec, hyprpicker --autocopy