Early this year I made a mod that adds a Custom CSS to Slack inspired by Discord mods that do the same.
I was happy enough with how the mod worked to release it proper, but never got the blog for installing it done. Because of MacOS being stupid.
I am abandoning SlackMod, but it will keep working for a LONG time because of the way I made it.
The following is the blog I was never proud of enough to publish, going over how to install the mod.
If you are interested in the development process I have went through, take a look at my other blogs on the mod.
After a whole lot of work, I am finally happy enough to do an official release for the mod!
Slack Mod Prerequisites:
Slack Mod needs Python 3 and Git to work, if you already have those installed, click here to jump ahead
Installing Python 3:
Download the Python installer relevant to your OS and go through its setup process.
If you did that right, running
python3 --version in your console should output something like
Installing Git (if you dont already have it)
Download the git installer relevant to your OS and go through its setup process.
If you did that right, running
git --version in your console should output something like
git version X.XX.X
Installing Slack Mod
Downloading the mod
First, open a terminal and
cd to a directory you dont often delete everything and are ok with having ~14kb inside of.
Then, clone SlackMod into that directory:
git clone https://github.com/CodeF53/SlackMod
Installing needed Python libraries:
cd into the directory you cloned SlackMod into
Then, install the needed python libraries:
python3 -m pip install -r requirements.txt
Running Slack Mod
To start the mod, run the Python launch script in your SlackMod directory:
Doing this every time you want to launch Slack can be cumbersome, to make it easier you can make some launch scripts:
Making Launch Scripts:
Windows Launch Scripts:
slackmod.bat and click
Press the windows key, type
slack, then right click Slack and click
Open file location:
Click and drag
slackmod.bat - Shortcut to the folder you just opened.
Now, when you search "slack" in the windows search thing
slackmod.bat shows up.
Optional - Making it look a tad nicer:
If you dont want it to be called
slackmod.bat or want it to have a nice icon, follow this:
slackmod.bat - Shortcut, click
Rename, then type in whatever you want it to show up as:
Right click whatever you just renamed the shortcut to, click
Properties, then click
Then, paste the following into the bar below
Look for icons in this file:, making sure to replace it's old contents.
OK > Apply >
Putting it on the desktop:
Click your SlackMod shortcut, ctrl+c, click on your desktop, ctrl+v
MacOS Launch Scripts:
I am currently working on finding a neat way to make launch scripts on macos.
Currently, if you are on mac, you just have to live with closing slack manually and running the command.
Linux Launch Scripts:
Start by starting a superuser shell because we will be creating files where we need it:
Then, cd to wherever your distro stores
.desktop files for it's start menu, for manjaro this is
SlackMod.desktop with this command:
echo "[Desktop Entry] Type=Application Icon=slack Name=SlackMod Terminal=false Hidden=false Keywords=slack;slackmod Exec=python3 slack_launch.py Path=[path to your slackmod directory]" > SlackMod.desktop
Make sure to fill
Path=[path to your slackmod directory] with a valid path, for example:
Double check your work by trying to get the contents of the new desktop file
Your output should look like this:
Updating Slack Mod:
If you see that there have been new updates to the mod you want to try out, updating is pretty easy! Simply open a terminal in your SlackMod directory and run the following command:
Top comments (0)