Dynamic window manager customized to my taste
fd0413e628
This patch allows dwm to manage other status bars such as polybar/lemonbar without them needing to set override-redirect. For all intents and purposes, DWM treats this bar as if it were its own and as a result helps the status bar and DWM live in harmony. This has a few advantages * The bar does not block fullscreen windows * DWM makes room for the status bar, so windows do not overlap the bar * The bar can be hidden/killed and DWM will not keep an unsightly gap where the bar was * DWM receives EnterNotify events when your cursor enters the bar To use another status bar, set usealtbar to 1 in your config.h and set altbarclass to the class name (can be found using xprop) to the class name of your status bar. Also make sure that if your status bar will be displayed on top, topbar is set to 1 in your config, and if it will be displayed on bottom, topbar is set to 0. This patch does not support bars that are not docked at the top or at the bottom of your monitor. This verison of the patch fixes handling of polybar's tray. The patch is developed at https://github.com/mihirlad55/dwm-anybar Signed-off-by: Przemek Grondek <przemek@grondek.pl> |
||
---|---|---|
patches | ||
.editorconfig | ||
.gitignore | ||
config.def.h | ||
config.h | ||
config.mk | ||
drw.c | ||
drw.h | ||
dwm-msg.c | ||
dwm.1 | ||
dwm.c | ||
dwm.png | ||
ipc.c | ||
ipc.h | ||
IPCClient.c | ||
IPCClient.h | ||
LICENSE | ||
Makefile | ||
README | ||
transient.c | ||
util.c | ||
util.h | ||
yajl_dumps.c | ||
yajl_dumps.h |
dwm - dynamic window manager ============================ dwm is an extremely fast, small, and dynamic window manager for X. Requirements ------------ In order to build dwm you need the Xlib header files. Installation ------------ Edit config.mk to match your local setup (dwm is installed into the /usr/local namespace by default). Afterwards enter the following command to build and install dwm (if necessary as root): make clean install Running dwm ----------- Add the following line to your .xinitrc to start dwm using startx: exec dwm In order to connect dwm to a specific display, make sure that the DISPLAY environment variable is set correctly, e.g.: DISPLAY=foo.bar:1 exec dwm (This will start dwm on display :1 of the host foo.bar.) 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 Configuration ------------- The configuration of dwm is done by creating a custom config.h and (re)compiling the source code.