Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS injection not working. #10

Open
hisbaan opened this issue Jun 23, 2021 · 1 comment
Open

CSS injection not working. #10

hisbaan opened this issue Jun 23, 2021 · 1 comment

Comments

@hisbaan
Copy link

hisbaan commented Jun 23, 2021

Hi there,

It doesn't seem like my CSS injection is working and as far as I can see, this isn't to do with my system or my config as it was working earlier before the package updated (AUR). This is happening on both of my Arch machines.

Edit: This is also happening from the script cloned directly from this repo.

I ran discocss in the terminal and this was the output:

/usr/bin/discord
Discord 0.0.15
Starting app.
Starting updater.
[Modules] Modules initializing
[Modules] Distribution: remote
[Modules] Host updates: enabled
[Modules] Module updates: enabled
[Modules] Module install path: /home/hisbaan/.config/discord/0.0.15/modules
[Modules] Module installed file path: /home/hisbaan/.config/discord/0.0.15/modules/installed.json
[Modules] Module download path: /home/hisbaan/.config/discord/0.0.15/modules/pending
libva error: /usr/lib/dri/i965_drv_video.so init failed
[Modules] No updates to install
[Modules] Checking for host updates.
[Modules] Host is up to date.
[Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
[Modules] No module updates available.

The following is my config file:

/* start flavours */
:root {
  --base00: #1e2127;
  --base01: #282c34;
  --base02: #353b45;
  --base03: #3e4451;
  --base04: #545862;
  --base05: #abb2bf;
  --base06: #b6bdca;
  --base07: #d9dde5;
  --base08: #e06c75;
  --base09: #d19a66;
  --base0A: #e5c07b;
  --base0B: #98c379;
  --base0C: #56b6c2;
  --base0D: #62afef;
  --base0E: #bd93f9;
  --base0F: #be5046;

  --base00-rgb: 30, 33, 39;
  --base01-rgb: 40, 44, 52;
  --base02-rgb: 53, 59, 69;
  --base03-rgb: 62, 68, 81;
  --base04-rgb: 84, 88, 98;
  --base05-rgb: 171, 178, 191;
  --base06-rgb: 182, 189, 202;
  --base07-rgb: 217, 221, 229;
  --base08-rgb: 224, 108, 117;
  --base09-rgb: 209, 154, 102;
  --base0A-rgb: 229, 192, 123;
  --base0B-rgb: 152, 195, 121;
  --base0C-rgb: 86, 182, 194;
  --base0D-rgb: 98, 175, 239;
  --base0E-rgb: 189, 147, 249;
  --base0F-rgb: 190, 80, 70;

  --base00-r: 30;
  --base00-g: 33;
  --base00-b: 39;
  --base01-r: 40;
  --base01-g: 44;
  --base01-b: 52;
  --base02-r: 53;
  --base02-g: 59;
  --base02-b: 69;
  --base03-r: 62;
  --base03-g: 68;
  --base03-b: 81;
  --base04-r: 84;
  --base04-g: 88;
  --base04-b: 98;
  --base05-r: 171;
  --base05-g: 178;
  --base05-b: 191;
  --base06-r: 182;
  --base06-g: 189;
  --base06-b: 202;
  --base07-r: 217;
  --base07-g: 221;
  --base07-b: 229;
  --base08-r: 224;
  --base08-g: 108;
  --base08-b: 117;
  --base09-r: 209;
  --base09-g: 154;
  --base09-b: 102;
  --base0A-r: 229;
  --base0A-g: 192;
  --base0A-b: 123;
  --base0B-r: 152;
  --base0B-g: 195;
  --base0B-b: 121;
  --base0C-r: 86;
  --base0C-g: 182;
  --base0C-b: 194;
  --base0D-r: 98;
  --base0D-g: 175;
  --base0D-b: 239;
  --base0E-r: 189;
  --base0E-g: 147;
  --base0E-b: 249;
  --base0F-r: 190;
  --base0F-g: 80;
  --base0F-b: 70;
}
/* end flavours */

.theme-dark {
    --header-primary: var(--base06);
    --header-secondary: var(--base05);
    --text-normal: var(--base07);
    --text-muted: var(--base05);
    --text-link: var(--base0E);
    --channels-default: var(--base05);
    --interactive-normal: var(--base05);
    --interactive-hover: var(--base06);
    --interactive-active: var(--base05);
    --interactive-muted: var(--base01);
    --background-primary: var(--base00);
    --background-secondary: var(--base01);
    --background-secondary-alt: var(--base01);
    --background-tertiary: var(--base01);
    --background-accent: var(--base01);
    --background-floating: var(--base00);
    --background-mobile-primary: var(--background-primary);
    --background-mobile-secondary: var(--background-secondary);
    --background-modifier-hover: rgba(var(--base00-rgb),0.5);
    --background-modifier-active: rgba(var(--base00-rgb),0.9);
    --background-modifier-selected: rgba(var(--base00-rgb),0.9);
    --background-modifier-accent: hsla(0,0%,100%,0.06);
    --background-mentioned: rgba(var(--base09-rgb), 0.05);
    --background-mentioned-hover: rgba(var(--base09-rgb),0.08);
    --background-message-hover: rgba(4,4,5,0.07);
    --background-help-warning: rgba(var(--base09-rgb),0.1);
    --background-help-info: rgba(0,176,244,0.1);
    --scrollbar-thin-thumb: var(--base00);
    --scrollbar-thin-track: transparent;
    --scrollbar-auto-thumb: var(--base01);
    --scrollbar-auto-track: var(--base00);
    --scrollbar-auto-scrollbar-color-thumb: var(--base01);
    --scrollbar-auto-scrollbar-color-track: var(--base00);

    /* --elevation-stroke: 0 0 0 1px rgba(4,4,5,0.15); */
    /* --elevation-low: 0 1px 0 rgba(4,4,5,0.2),0 1.5px 0 rgba(6,6,7,0.05),0 2px 0 rgba(4,4,5,0.05); */
    /* --elevation-medium: 0 4px 4px rgba(0,0,0,0.16); */
    /* --elevation-high: 0 8px 16px rgba(0,0,0,0.24); */
    --elevation-stroke: 0 0 0 1px rgba(4,4,5,0.15);
    --elevation-low: 0 0 0 rgba(4,4,5,0.2),0 0 0 rgba(6,6,7,0.05),0 0 0 rgba(4,4,5,0.05);
    --elevation-medium: 0 4px 4px rgba(0,0,0,0.16);
    --elevation-high: 0 8px 16px rgba(0,0,0,0.24);

    --logo-primary: var(--base07);
    --focus-primary: var(--base0E);
    --radio-group-dot-foreground: #8ea1e1;
    --guild-header-text-shadow: 0 1px 1px rgba(0,0,0,0.4);
    --channeltextarea-background: var(--base01);
    --activity-card-background: var(--base01);
    --textbox-markdown-syntax: var(--base05);

    /* --deprecated-card-bg: rgba(32,34,37,0.6); */
    /* --deprecated-card-editable-bg: rgba(32,34,37,0.3); */
    --deprecated-store-bg: var(--base00);
    /* --deprecated-quickswitcher-input-background: #72767d; */
    /* --deprecated-quickswitcher-input-placeholder: hsla(0,0%,100%,0.3); */
    /* --deprecated-text-input-bg: rgba(0,0,0,0.1); */
    /* --deprecated-text-input-border: rgba(0,0,0,0.3); */
    /* --deprecated-text-input-border-hover: #040405; */
    /* --deprecated-text-input-border-disabled: #202225; */
    /* --deprecated-text-input-prefix: #dcddde; */
}

Thanks in advance for any help :)

@marie-haskova
Copy link

marie-haskova commented Nov 20, 2022

I encountered the same thing.
fixed it by using the one from the repo instead of the AUR one and adding sudo on the beggining of line 13 of the script
hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants