custom build of dwm tailored for SCDF
Below is a list of the patches currently in use.
Our patchset includes the dwm-xresources
patch that allows us to expose variables to be configured with Xresources.
The intended way to use this is to create ~/.local/dwm/autostart.sh
with the following:
#!/bin/sh
# You can use `/bin/bash` or `/usr/bin/env bash` depending on your needs; but POSIX-SH is often enough for these.
xrdb -merge ~/.Xresources
# Other init commands can go here
After that you can add the following to your ~/.Xresources
, note that the values displayed are the defaults dwm will fall back to if not set:
! dwm colors
! Default background color.
dwm.normbgcolor: #222222
! Default border color
dwm.normbordercolor: #444444
! Default foreground color
dwm.normfgcolor: #bbbbbb
! Selected background color (used for tag indicators and bar of active monitor)
dwm.selbgcolor: #eeeeee
! Selected border color (use for border of active window)
dwm.selbordercolor: #005577
! Selected foreground color (used for text on tag indicators & bar)
dwm.selfgcolor: #005577
! other vars
! Font to use for the bar
dwm.font: "sans:size=10"
! Font to use for dmenu (you likely want to use the above value)
dwm.dmenufont: "sans:size=10"
! Width of window borders in px
dwm.borderpx: 1
! Amount of pixels away from a border to snap it to it
dwm.snap: 16
! Whether to show the bar by default (0 = false, 1 = true)
dwm.showbar: 1
! Whether the bar should be placed on top (0 = false, 1 = true)
dwm.topbar: 1
dwm.layoutaxis: 3
dwm.resizehints: 0
dwm.mfact: 0.6
If you are on arch you can either choose to add My custom repository to your pacman.conf
and install the pre-compiled version that way or download this repository and install like any other AUR package using the instructions below.
git clone https://github.com/Scraft161/SCDF-dwm
cd SCDF-dwm
makepkg -si
After this SCDF-dwm should be installed.
If you wish to make any changes however please look at our Manual installation section.
tl;dr: you can get the standard SCDF setup with the following commands:
git clone https://github.com/Scraft161/SCDF-dwm
cd SCDF-dwm
./configure
./patch.sh
cd src/dwm-6.5
sudo make clean install
We recommend people only use the manual installation if they do not run arch linux or wish to make changes to the default setup.
First clone and prepare the repository.
git clone https://github.com/Scraft161/SCDF-dwm
cd SCDF-dwm
./configure
This will download all the assets used for building DWM.
After running configure
you can then either choose to manually patch everything or use patch.sh
.
patch.sh
is a simple shell script that applies patches from a list, you can modify the list to include or exclude patches; but you will most likely need to manually apply patches if you deviate from the default setup.
After running patch.sh
in it's default state you will now have the source to the standard SCDF-dwm which you can further modify to suit your needs.
When you are done modifying you can then cd
into src/dwm-6.5
and run sudo make clean install
to build and install dwm.