You are not logged in.

#1 2013-04-17 20:09:30

Farehe
Member
Registered: 2013-04-17
Posts: 5

DWM config.h "Walkthrough?"

Hey all,
I'm pretty new to Linux in general, and am looking for help with configuring DWM. I'd like to start Unia's configs (https://github.com/Unia/DWM), but I don't know if there are any prerequisites he has that I do not. When comparing his config.h and my vanilla one, there are some major differences.

For example, this is his how his appearance looks:

/* appearance */
static const char font[] = "Ubuntu Mono:size=9:antialias=true:hinting=true"; /*:rgba=rgb:hintstyle=hintsfull:lcdfilter=lcdlight:dpi=96";*/
#define NUMCOLORS 4
static const char colors[NUMCOLORS][ColLast][9] = {
    /* border foreground background */
    { "#BDBDBD", "#8C8C8C", "#0A1724" },
    { "#4A90D9", "#4A90D9", "#0A1724" },
    { "#DC322F", "#DC322F", "#0A1724" },
    { "#16596A", "#16596A", "#0A1724" },
};

static const unsigned int borderpx = 1; /* Border pixel of windows */
static const unsigned int snap = 2; /* Snap pixel */
static const unsigned int minwsz = 20; /* Minimal heigt of a client for smfact */
static const char chatclient[] = "jente_etnej - Skype™"; /* Name of chat client for chatlayout */
static const char clock_fmt[] = "%a %d %b, %R"; /* Clock format on the bar */
static const char clsymbol[] = "×"; /* Symbol for close button */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */

And this is mine:

/* appearance */
static const char font[]            = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#444444";
static const char normbgcolor[]     = "#222222";
static const char normfgcolor[]     = "#bbbbbb";
static const char selbordercolor[]  = "#005577";
static const char selbgcolor[]      = "#005577";
static const char selfgcolor[]      = "#eeeeee";
static const unsigned int borderpx  = 1;        /* border pixel of windows */
static const unsigned int snap      = 32;       /* snap pixel */
static const Bool showbar           = True;     /* False means no bar */
static const Bool topbar            = True;     /* False means bottom bar */

Where should I start?

Offline

#2 2013-04-17 20:40:31

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,352
Website

Re: DWM config.h "Walkthrough?"

Start with a vanilla config; attempting to work from a patched one will likely only introduce a level of complexity that will hinder your understanding of the basic concepts.


There is a tutorial on the suckless wiki: using that and playing with the defaults is where you should start.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2013-04-17 21:03:20

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,474
Website

Re: DWM config.h "Walkthrough?"

Why didn't you just send me a message? wink I can certainly help you get up and running, but it's better if you try yourself first and learn whilst doing so.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#4 2013-04-17 23:33:39

Farehe
Member
Registered: 2013-04-17
Posts: 5

Re: DWM config.h "Walkthrough?"

Unia wrote:

Why didn't you just send me a message? wink I can certainly help you get up and running, but it's better if you try yourself first and learn whilst doing so.

I didn't want to bother you, haha.

But if you could help me out, that'd be great. Just a few pointers to get me running in the right direction to a good looking setup.

Is there a preferred place I can message you?

Offline

#5 2013-04-17 23:45:14

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,474
Website

Re: DWM config.h "Walkthrough?"

You can use this forum to send me an email and we'll go from there.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#6 2013-04-18 02:58:37

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: DWM config.h "Walkthrough?"

No offense to Unia--who's put a lot of work into that config, and contributed some nice custom patches to the Arch community and suckless.org--but I'm with jwr on this one.  Start by reading this, configure some custom keybindings and your colorscheme, and then start looking into patches and the statusbar.  Diving into a highly customized configuration right away is like stomping on the accelorator before you've found the steering wheel.

Offline

Board footer

Powered by FluxBB