building suckless’s dwm

https://dwm.suckless.org/patches/attachaside/ https://dwm.suckless.org/patches/inplacerotate/

https://dwm.suckless.org/patches/systray/ https://dwm.suckless.org/patches/pertag/

tar xzf dwm-6.6.tar.gz
cd dwm-6.6/
patch -p1 < ../dwm-attachaside-6.6.diff
patch -p1 < ../dwm-inplacerotate-6.2.diff
cp -i config.def.h config.h
vi config.h

eventually switch to another terminal emulator in case st term doesn’t satisfy you (scrollback sometimes fails to work donno why)

static const char *termcmd[]  = { "terminator", NULL };

and add those

static const char *scrots[]     = { "/home/USER/bin/scrot-select.bash", NULL };
static const char *scrotw[]     = { "/home/USER/bin/scrot-focused.bash", NULL };
static const char *lockcmd[]    = { "xtrlock", NULL };
static const char *downbright[] = { "sudo", "brightnessctl", "-q", "s", "51-", NULL };
static const char *upbright[]   = { "sudo", "brightnessctl", "-q", "s", "+51", NULL };
static const char *mutevol[]    = { "amixer", "-D", "pulse", "set", "Master", "toggle", NULL };
static const char *downvol[]    = { "amixer", "-D", "pulse", "set", "Master", "10%-", NULL };
static const char *upvol[]      = { "amixer", "-D", "pulse", "set", "Master", "10%+", NULL };

within static const Key keys add those

{ MODKEY,              XK_s,      spawn,      {.v = scrots } },
{ MODKEY,              XK_f,      spawn,      {.v = scrotw} },
{ MODKEY,              XK_x,      spawn,      {.v = lockcmd } },
{ MODKEY,              XK_q,      killclient,     {0} },
{ MODKEY,              XK_F7,     spawn,      {.v = downbright } },
{ MODKEY,              XK_F8,     spawn,      {.v = upbright } },
{ MODKEY,              XK_F9,     spawn,      {.v = mutevol } },
{ MODKEY,              XK_F11,    spawn,      {.v = downvol } },
{ MODKEY,              XK_F12,    spawn,      {.v = upvol   } },

and finally build the thing

make clean install
cd ../

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT