This repo is a fork of dwm - an extremely fast, small, and dynamic window manager for X.
In order to build dwm you need the Xlib
header files.
This fork is dependent on KODO repo (my dotfiles repo).
make && sudo make install
Add the following line to your .xinitrc to start dwm using startx:
exec dwm
In order to display status info in the bar, you can do something like this in your .xinitrc:
while xsetroot -name "`date` `uptime | sed 's/.*,//'`"
do
sleep 1
done &
exec dwm
Quite nice status bar can be found in KODO repo (my dotfiles repo). Just look into bin/bin/set-dwm-status-bar
file.
The configuration of dwm is done by creating a custom config.h and (re)compiling the source code.
My keybindings (need to setup KODO to make them work):
MODKEY
-WIN
MODKEY + d
- spawnrofi
indmenu
mode with all instaled programsMODKEY + Enter
- spawnst
terminal (see my fork ofst
)MODKEY + i
- show list of glyphiconsMODKEY + p
- show power menu (lock, restart dwm statusbar, suspend, reboot, power off)MODKEY + u
- run system and programs updatesMODKEY + n
- run network managerMODKEY + w
- show current weather indunst
notificationALT + TAB
- switch active progrms iside tag- bunch of multimedia keys (vol up/down, etc.)
Following patches are already applied:
- modified activetagindicatorbar - bar above tag instead of square dot
- notitle - remove title
- pertag - keep layout per tag
- ru gaps - gaps between tiles
- status2d - enable colors in status bar
- systray - enable systray
To apply another patch use following command:
git apply -3 --ignore-whitespace /path/to/patch.diff
But be careful. When patch modifies config.def.h
copy these changes to config.h
and reset state of first file:
git reset HEAD config.def.h
git checkout -- config.def.h
Then repeat installation process.
Add upstream
to original repo:
git remote add upstream git://git.suckless.org/dwm
Every time you want to sync type:
git fetch upstream
git checkout master
git merge upstream/master
This brings your master
branch into sync with the upstream repository, without losing your local changes.
For reference check this github article
Then repeat installation process.