dwm官网:https://dwm.suckless.org/
dwm是一个简洁的平铺式窗口管理器
配置简单,使用便捷,没有多少依赖,占用内存非常小
总之dwm正合口味
安装方法
首先在官网下载dwm.tar.gz并解压
得到这些东西:
BUGS config.mk drw.h dwm.c dwm.png Makefile...
我们主要来编辑config.h来进行一些配置和编辑config.mk来正确编译
对config.h来说,只要略微阅读官网文档即可配置,详见https://dwm.suckless.org/customisation/
我觉得原设定除了firefox的tags mask以外,就没什么需要了
改了一下selbordercolor, selbgcolor, selfgcolor, topbar,就是状态栏的边界、背景和字体颜色还有底部状态栏
注意dmenu还是在顶部,要改底部的话应该在dmenu那里配置
cp config.def.h config.h
// config.h
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char *fonts[] = {
"monospace:size=10"
};
static const char dmenufont[] = "monospace:size=10";
static const char normbordercolor[] = "#444444";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#bbbbbb";
static const char selbordercolor[] = "#000000"; // "#005577";
static const char selbgcolor[] = "#669999"; // "#005577";
static const char selfgcolor[] = "#000000"; // "#eeeeee";
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 0; // 1; /* 0 means bottom bar */
/* tagging */