guglicap / wal-discord

Generate Discord css from pywal colors
MIT License
91 stars 6 forks source link

How to install #2

Closed marc0tjevp closed 6 years ago

marc0tjevp commented 6 years ago

What are the exact steps to install this, I don't understand the wiki that well. At this point I have cloned the repo and have Discord + Betterdiscord installed.

guglicap commented 6 years ago

Thanks for the feedback.

At this point all you need to do is symlink the wal-discord script to somewhere in your $PATH.

For example, here's my $PATH:

~ % echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:/home/goo/bin/links
~ % 

in my case, I would symlink wal-discord to /home/goo/bin/links by running ln -s /absolute/path/to/repo/wal-discord /home/goo/bin/links

if your $PATH doesn't include a folder in your $HOME directory you can symlink it to any of the other folders in $PATH, /usr/local/bin for example, so the command would become sudo ln -s /absolute/path/to/repo/wal-discord /usr/local/bin

you should then be able to run wal-discord without any problems.

Don't run the script like /absoulte/path/to/repo/wal-discord as that's the cause of #1 and I'm currently working on solving it.

Note: some terminal emulators must be restarted after symlinking.

marc0tjevp commented 6 years ago

Thanks for the reply. I am now able to run wal-discord. Maybe I still did something wrong but the files in ~/.config/wal-discord seem to be broken (Link (broken) (inode/symlink)), which gives me this output

Error: File to import not found or unreadable: colors.scss.
        on line 1 of .config/wal-discord/backend.scss
        from line 1 of .config/wal-discord/master.scss
>> @import 'colors.scss';

   ^
marc0tjevp commented 6 years ago

It seems like symlink colors.scss is broken. It's parent folder is /home/marco/.config/wal-discord, but the folder is empty.

guglicap commented 6 years ago

colors.scss should point to $HOME/.cache/wal/colors.scss

please post the output of ls -l /home/marco/.config/wal-discord

marc0tjevp commented 6 years ago
drwx------ 2 marco marco  4096 May 23 19:13 backends
lrwxrwxrwx 1 marco marco    17 May 23 19:13 backend.scss -> backends/wal.scss
lrwxrwxrwx 1 marco marco    34 May 23 19:13 colors.scss -> /home/marco/.cache/wal/colors.scss
-rw-rw-r-- 1 marco marco 10904 May 23 19:13 master.scss

There is no wal folder in my .cache folder.

guglicap commented 6 years ago

that's weird, it should work. does /home/marco/.cache/wal/ exist? if not, then your wal installation might be doing something different. maybe try running wal again.

EDIT:

what's your wal version? you can find out by running wal -v also please post the output of echo $XDG_CACHE_DIR

marc0tjevp commented 6 years ago

I tried reinstalling wall, I'm on version 3.0.0. The script runs now and creates the style.css file in .cache/wal-discord/. I used @import "file:///home/marco/.cache/wal-discord/style.css"; in the Custom CSS tab but nothing seems to change, the file is populated tho. echo $XDG_CACHE_DIR outputs a blank line.

guglicap commented 6 years ago

Hmm, it seems like you're right. I think I must have messed up something while testing it so that it was still loading beautifuldiscord css somehow and so I thought it was working.

I'll look into creating a way to generate a BetterDiscord theme.

guglicap commented 6 years ago

Closing this as I added a way to generate a BetterDiscord theme, if you encounter problems with that please open another issue.