Skip to content

Documented dotfiles of my DWM setup, written fully from scratch.

Notifications You must be signed in to change notification settings

ilhamisbored/dwm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dwm 6.2

  • Personal build of DWM
  • Built and tested on Void Linux

List of DWM Patches

  • autostart
  • fullgaps
  • actualfullscreen
  • colorbar
  • barpadding
  • resizecorners

Dependencies

  • make
  • conky
  • pango
  • pango-devel
  • pkg-config
  • automake
  • autoconf
  • xorg-util-macros
  • libtool
  • libXext-devel
  • harfbuzz-devel
  • libXcursor-devel
  • libX11-devel
  • libXrender-devel
  • libXft
  • libXft-bgra (https://github.com/uditkarode/libxft-bgra)
  • libXft-devel
  • libXinerama
  • libXinerama-devel
  • libX11-devel
  • fontconfig
  • fontconfig-devel
  • freetype-devel
  • pamixer
  • brightnessctl
  • gcc
  • Every other dependency that are included with the previously stated.

Installation of DWM

  • Clone this repository, git clone https://github.com/ilhamisbored/dwm-dotfiles in your home directory.
  • cd into the dwm-dotfiles directory after git cloning the repository.
  • cd into the dwm directory.
  • Run chmod +x autostart.sh to make the autostart file an executable
  • Run sudo make clean install, under the assumption that you installed the required dependencies.

Conky

Installation of dwmblocks

  • Install acpi
  • cd into the dwmblocks directory
  • Run the sudo make clean install command.
  • cd into the scripts directory and run chmod +x * to make the scripts executable
  • For Void users, download my script for the updates block. Link: https://github.com/ilhamisbored/xbps-updates
  • Installation commands are in the xbps-updates GitHub repository..
  • For non-Void users, find out your distro's update checking command and edit the updates block.

Installation of st

  • cd into the st directory
  • Run the sudo make clean install command

Patches

As you can see in this repo, my build of DWM has many QoL patches.

If you wish to remove a patch/add more patches, install patch from your distro's pkg manager. To remove a patch:

  1. patch -R < patch-name.diff
  2. correct any errors that may happen
  3. rm config.h
  4. sudo make clean install

To add a patch

  1. patch -Np1 < patch-name.diff
  2. correct any errors that may happen
  3. rm config.h
  4. sudo make clean install

Starting it from a Display Manager (GDM, SDDM, etc;)

Create a .desktop file in /usr/share/xsessions/

[Desktop Entry]

Name=dwm

Comment=Dynamic Window Manager

Exec=dwm

Type=Application

Note

I personally am using scrot, st, and rofi. If you wish to use something else, you can edit the config.def.h file to replace rofi with any other run launcher, terminal, screenshot manager etc. of your choice.

Required Fonts

Source Code Pro (https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/SourceCodePro.zip)

SFMono Nerd Font Ligaturized (https://github.com/shaunsingh/SFMono-Nerd-Font-Ligaturized)

  • Clone both of the directories.
  • Paste them in ~/.local/share/fonts (create the directory if you don't have it by running mkdir ~/.local/share/fonts.
  • Move contents of the SFMono-Nerd-Font directory into ~/.local/share/fonts.
  • Run unzip *.zip (Install the package if you do not have it installed).

Hotkeys

I'm using most of the default hotkeys, with a few changes here and there.

  1. The modkey is the Super/Windows/Command key.
  2. Mod + Space opens rofi
  3. Mod + W closes focused application
  4. Printscreen opens the snip screenshot mode for scrot
  5. Mod + Printscreen takes a screenshot of the entire screen
  6. Mod + Shift + Q kills the current dwm process

Recompiling

Go through the Installation step again.

Post Installation

  • Move all the files from the dwm-dotfiles directory into the ~/.config/ directory except for conkyrc.
  • Make sure to create a symlink of ~/.config/dwm in your home directory for the autostart patch to work. ln -sf ~/.config/dwm ~/.dwm

About

Documented dotfiles of my DWM setup, written fully from scratch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published