You are not logged in.

#501 2012-04-15 20:21:30

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Show off your Dwm configuration!

Crosspost from the monthly thread:

Here's my laptop as it looks now. Not much visible changes though. Biggest under-the-hood one is that I ditched conky & dzen2 and replaced that with a pure bash statusbar. Was some fun project, although I depended heavily on existing status scripts.

Dirty:
tZGUwNQ

Clean:
tZGUwOA


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

#502 2012-04-15 20:39:19

n1x4
Member
From: Chernobyl
Registered: 2012-02-17
Posts: 149
Website

Re: Show off your Dwm configuration!

OK100 wrote:

@n1x4: 7inch is the size of whole netbook or only screen?

The screen is 7in.

The dims for the entire book are 5 1/2" x 8 1/2"


||github||

Offline

#503 2012-04-15 21:19:31

chamber
Member
From: ~/
Registered: 2012-03-29
Posts: 279

Re: Show off your Dwm configuration!

Unia wrote:

Still got my DWM going:

http://ompldr.org/tZDBuYg

This is awesomeness.


meh

Offline

#504 2012-04-16 10:56:22

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Show off your Dwm configuration!

chamber wrote:
Unia wrote:

Still got my DWM going:

http://ompldr.org/tZDBuYg

This is awesomeness.

Thanks! big_smile


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

#505 2012-04-22 18:11:43

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Show off your Dwm configuration!

Crosspost from the monthly thread:

Small update to my DWM: I removed the layout icons patch and added the viewontag patch (when moving a client to tag x, switch to tag x too). I haven't decided yet if viewontag is a keeper as it sometimes gets in my way.

tZGgxZQ


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

#506 2012-04-22 19:47:34

kuraku
Member
Registered: 2012-01-03
Posts: 202

Re: Show off your Dwm configuration!

@Unia
May i suggest gnome-colors noble icon sets for that purple dwm? smile

Offline

#507 2012-04-22 20:00:36

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Show off your Dwm configuration!

kuraku wrote:

@Unia
May i suggest gnome-colors noble icon sets for that purple dwm? smile

Yes you may, but currently I am happy with my Faenza smile Would get a bit too purple otherwise big_smile


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

#508 2012-04-25 19:29:42

w0ng
Member
From: Australia
Registered: 2009-06-04
Posts: 88
Website

Re: Show off your Dwm configuration!

Giving my statusbar a vim-powerline appearance.
font -> https://github.com/w0ng/dwm/blob/master/terminus2.bdf
config.h -> https://github.com/w0ng/dwm/blob/master/config.h
statusbar -> https://github.com/w0ng/bin/blob/master/dwm-statusbar

tZGlpeg

Last edited by w0ng (2012-04-25 20:22:24)

Offline

#509 2012-04-25 19:32:19

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Show off your Dwm configuration!

Offline

#510 2012-04-25 20:02:44

wolfcore
Member
From: California
Registered: 2012-03-06
Posts: 137

Re: Show off your Dwm configuration!

Very nicely done, I love how the theme is prevalent throughout big_smile

Offline

#511 2012-04-26 03:07:07

Shrak
Member
Registered: 2011-07-14
Posts: 12

Re: Show off your Dwm configuration!

Offline

#512 2012-04-28 13:40:08

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: Show off your Dwm configuration!

How can you display your fonts like that? It's not xfontsel for sure.


Github -- My terminal font Envypn

Offline

#513 2012-04-28 16:12:32

w0ng
Member
From: Australia
Registered: 2009-06-04
Posts: 88
Website

Re: Show off your Dwm configuration!

^xorg-xfd

Offline

#514 2012-04-30 09:44:58

geniuz
Member
Registered: 2010-04-10
Posts: 127

Re: Show off your Dwm configuration!

Awesome font! I'm trying to get your font working in the DWM statusbar, but I'm not having too much luck. I've installed the font succesfully (following Lokaltog's tutorial), which I confirmed because the font is displayed correctly in URxvt, but in the DWM statusbar none of the icons are showing up. For instance, in my .xinitrc where I set the DWM statusbar, if I put the following lines:

a=$(echo -e "\xC6")
xsetroot -name "$a ....."

Nothing shows up. Not the correct symbol (i.e. the pacman logo) and not even everything following the $a, whatever that might be. More or less the same is true for the rest of the bar (i.e. the workspaces and tiling text). I've included my config.h thus far below:

/* See LICENSE file for copyright and license details. */
#include <X11/XF86keysym.h> 

/* appearance */
static const char font[]            = "-*-terminus2-medium-r-*-*-12-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#839496";
static const char normbgcolor[]     = "#002b36";
static const char normfgcolor[]     = "#839496";
static const char selbordercolor[]  = "#268bd2";
static const char selbgcolor[]      = "#839496";
static const char selfgcolor[]      = "#002b36";
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 */

/* tagging */
static const char *tags[] = { "file", "web", "misc", "work", "matlab" };

static const Rule rules[] = {
	/* class      instance    title       tags mask     isfloating   monitor */
	{ "Gimp",     NULL,       NULL,       0,            True,        -1 },
	{ "Firefox",  NULL,       NULL,       1 << 1,       False,       -1 },
	{ "com-mathworks-util-PostVMInit", NULL, NULL, 1 << 4, True,	 -1 },
	{ "MATLAB",   NULL, 	  NULL,       1 << 4,       True,	 -1 },
	{ "Zathura",  NULL, 	  NULL,       1 << 3,       False,	 -1 },
};

/* layout(s) */
static const float mfact      = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster      = 1;    /* number of clients in master area */
static const Bool resizehints = False; /* True means respect size hints in tiled resizals */

static const Layout layouts[] = {
	/* symbol     arrange function */
	{ "\xC9",     tile },    /* first entry is default */
	{ "[F]",      NULL },    /* no layout function means floating behavior */
	{ "[M]",      monocle },
};

/* key definitions */
#define MODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
	{ MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
	{ MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
	{ MODKEY|ShiftMask,             KEY,      tag,            {.ui = 1 << TAG} }, \
	{ MODKEY|ControlMask|ShiftMask, KEY,      toggletag,      {.ui = 1 << TAG} },

/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }

/* commands */
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[]  = { "urxvt", NULL };
static const char *shutdowncmd[] = { "sudo", "shutdown", "-h", "now", NULL };
static const char *rebootcmd[] = { "sudo", "shutdown", "-r", "now", NULL };

static Key keys[] = {
	/* modifier                     key        function        argument */
	{ MODKEY,                       XK_space,  spawn,          {.v = dmenucmd } },
	{ MODKEY|ShiftMask,             XK_t, 	   spawn,          {.v = termcmd } },
	{ MODKEY|ControlMask,           XK_F4, 	   spawn,          {.v = shutdowncmd } },
	{ MODKEY|ControlMask,           XK_F2, 	   spawn,          {.v = rebootcmd } },
	{ MODKEY,                       XK_b,      togglebar,      {0} },
	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
	{ MODKEY,                       XK_i,      incnmaster,     {.i = +1 } },
	{ MODKEY,                       XK_d,      incnmaster,     {.i = -1 } },
	{ MODKEY,                       XK_h,      setmfact,       {.f = -0.05} },
	{ MODKEY,                       XK_l,      setmfact,       {.f = +0.05} },
	{ MODKEY,                       XK_Return, zoom,           {0} },
	{ MODKEY,                       XK_Tab,    view,           {0} },
	{ MODKEY,             		XK_q,      killclient,     {0} },
	{ MODKEY,           		XK_t,      setlayout,      {.v = &layouts[0]} },
	{ MODKEY,           		XK_f,      setlayout,      {.v = &layouts[1]} },
	{ MODKEY,           		XK_m,      setlayout,      {.v = &layouts[2]} },
	{ MODKEY,			XK_g,      setlayout,	   {.v = &layouts[3]} },
	{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },
	{ MODKEY|ShiftMask,             XK_0,      tag,            {.ui = ~0 } },
	{ MODKEY,                       XK_comma,  focusmon,       {.i = -1 } },
	{ MODKEY,                       XK_period, focusmon,       {.i = +1 } },
	{ MODKEY|ShiftMask,             XK_comma,  tagmon,         {.i = -1 } },
	{ MODKEY|ShiftMask,             XK_period, tagmon,         {.i = +1 } },
	TAGKEYS(                        XK_1,                      0)
	TAGKEYS(                        XK_2,                      1)
	TAGKEYS(                        XK_3,                      2)
	TAGKEYS(                        XK_4,                      3)
	TAGKEYS(                        XK_5,                      4)
	{ MODKEY|ShiftMask,             XK_BackSpace,   quit,      {0} },
};

/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
	/* click                event mask      button          function        argument */
	{ ClkLtSymbol,          0,              Button1,        setlayout,      {0} },
	{ ClkLtSymbol,          0,              Button3,        setlayout,      {.v = &layouts[2]} },
	{ ClkWinTitle,          0,              Button2,        zoom,           {0} },
	{ ClkStatusText,        0,              Button2,        spawn,          {.v = termcmd } },
	{ ClkClientWin,         MODKEY,         Button1,        movemouse,      {0} },
	{ ClkClientWin,         MODKEY,         Button2,        togglefloating, {0} },
	{ ClkClientWin,         MODKEY,         Button3,        resizemouse,    {0} },
	{ ClkTagBar,            0,              Button1,        view,           {0} },
	{ ClkTagBar,            0,              Button3,        toggleview,     {0} },
	{ ClkTagBar,            MODKEY,         Button1,        tag,            {0} },
	{ ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
};

Again, instead of showing the character belonging to the hex value \xC9 (i.e. the tiling symbol in the font) for the tiling layout, it simply shows nothing. What strikes me the most is that some other characters do work. For instance,  if I change \xC9 or \xC6 to \x01 (a diamond symbol), it does work as expected. I'm kind of out of ideas about what I could be doing wrong, so I hope somebody can shed some light on this for me. Thanks!

Edit:
I fixed it myself, by setting my locale to en_US ISO-8859-1. Forgot this step after I did a complete re-installation of Arch a while ago.

Last edited by geniuz (2012-04-30 14:14:54)

Offline

#515 2012-05-06 16:59:02

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Show off your Dwm configuration!

Crosspost from monthly:

Changes from my old screenshot are an extended patch (first one I made big_smile though most credit should go to OK100 from the Arch boards since he has helped me with *cough* most * cough* (read: all)). When in monocle layout, it now also counts the windows and displays an icon (I drew those cool) with the number of windows. Also, stlarch made a font which consists solely of icons. You can see it in my statusbar; the icons are a tad bigger than the ones in the ohsnap.icons font. Not sure which I like better, but we'll see. Lastly, I have edited the Ambiance GTK2 a little and I'm still working on the GTK3 version. (gtk 3.2 -> 3.4 broke it mad)

tZG44Zg


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

#516 2012-05-16 16:10:25

ahammel
Member
Registered: 2012-05-01
Posts: 23

Re: Show off your Dwm configuration!

I use a rock-simple layout with a few home-brewed notification utils in a conky | dzen2 tray.

Clean:
VAk8O.jpg

Busy:
vn22l.jpg


Laptop: Arch+i3                    Personal file sever: Slackware                   Work PC: Fedora+wmii
Work file sever: FreeBSD       Work application server: Scientific Linux

I'm an addict.

Offline

#517 2012-05-18 11:49:11

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Show off your Dwm configuration!

Crosspost from the monthly's:

Something new and light! Detailed information can be found on Deviantart, just click the thumbnail wink

tZHNsaA


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

#518 2012-05-27 01:56:52

n1x4
Member
From: Chernobyl
Registered: 2012-02-17
Posts: 149
Website

Re: Show off your Dwm configuration!

How did you get that "openbox-type" menu?


||github||

Offline

#519 2012-05-27 12:11:49

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Show off your Dwm configuration!

n1x4 wrote:

How did you get that "openbox-type" menu?

It's mygtkmenu. Check his github.

Offline

#520 2012-05-27 12:59:42

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Show off your Dwm configuration!

Šaran wrote:
n1x4 wrote:

How did you get that "openbox-type" menu?

It's mygtkmenu. Check his github.

Yes smile

Offline

#521 2012-05-27 13:40:49

n1x4
Member
From: Chernobyl
Registered: 2012-02-17
Posts: 149
Website

Re: Show off your Dwm configuration!

OK100 wrote:
Šaran wrote:
n1x4 wrote:

How did you get that "openbox-type" menu?

It's mygtkmenu. Check his github.

Yes smile


Got it, thanks.


||github||

Offline

#522 2012-05-30 00:02:36

woddfellow2
Member
From: USA
Registered: 2010-04-05
Posts: 113
Website

Re: Show off your Dwm configuration!

Possible switch to dwm soon:

http://ompldr.org/vZTA4aQ

Patches:

  • dwm-5.7.2-attachaside.diff

  • dwm-6.0-bstack.diff

(Also, add "    break;" at the end of the if statement with {} in applyrules() in dwm.c to get the rules/"other" tag to work properly.)

config.h:

/* woddfellow2's dwm Config
   by woddfellow2 | http://wlair.us.to/ */

#include "banish.c"
#include "bstack.c"
#include "bstackhoriz.c"

// Appearance ------------------------------------------------------------------
static const char font[] = "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*";

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 = 0;
static const unsigned int snap = 16;

static const Bool showbar = False;
static const Bool topbar = True;

// Tagging ---------------------------------------------------------------------
static const char *tags[] =
{
	"term",
	"www",
	"gvim",
	"img",
	"video",
	"gimp",
	"vm",
	"prevue",
	"other"
};

static const Rule rules[] =
{
	{ "URxvt", NULL, NULL, 1 << 0, False, -1 },
	{ "Gimp", NULL, NULL, 1 << 5, True, -1 },
	{ "Firefox", NULL, NULL, 1 << 1, False, -1 },
	{ "Gvim", NULL, NULL, 1 << 2, False, -1 },
	{ "feh", NULL, NULL, 1 << 3, False, -1 },
	{ "Display", NULL, NULL, 1 << 3, False, -1 },
	{ "MPlayer", NULL, NULL, 1 << 4, False, -1 },
	{ "VirtualBox", NULL, NULL, 1 << 6, True, -1 },
	{ "UAE", NULL, NULL, 1 << 7, True, -1 },
	{ NULL, NULL, NULL, 1 << 8, False, -1 },
};

// Layouts ---------------------------------------------------------------------
static const float mfact = 0.50;
static const int nmaster = 1;
static const Bool resizehints = False;

static const Layout layouts[] =
{
	{ "[M]", monocle },
	{ "[]=", tile },
	{ "><>", NULL },
	{ "TTT", bstack },
	{ "===", bstackhoriz },
};

// Keybindings -----------------------------------------------------------------
#define MODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
	{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
	{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
	{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
	{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },

#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }

// Commands
static const char *dmenucmd[] =
{
	"dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb",
	selbgcolor, "-sf", selfgcolor, NULL
};
static const char *termcmd[] =
{
	"urxvt", NULL
};

static Key keys[] =
{
	{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
	{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
	{ MODKEY, XK_b, togglebar, {0} },
	{ MODKEY, XK_j, focusstack, {.i = +1 } },
	{ MODKEY, XK_k, focusstack, {.i = -1 } },
	{ MODKEY, XK_i, incnmaster, {.i = +1 } },
	{ MODKEY, XK_d, incnmaster, {.i = -1 } },
	{ MODKEY, XK_h, setmfact, {.f = -0.05} },
	{ MODKEY, XK_l, setmfact, {.f = +0.05} },
	{ MODKEY, XK_Return, zoom, {0} },
	{ MODKEY, XK_Tab, view, {0} },
	{ MODKEY|ShiftMask, XK_c, killclient, {0} },
	{ MODKEY, XK_m, setlayout, {.v = &layouts[0]} },
	{ MODKEY, XK_t, setlayout, {.v = &layouts[1]} },
	{ MODKEY, XK_f, setlayout, {.v = &layouts[2]} },
	{ MODKEY, XK_space, setlayout, {0} },
	{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
	{ MODKEY, XK_0, view, {.ui = ~0 } },
	{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
	{ MODKEY, XK_comma, focusmon, {.i = -1 } },
	{ MODKEY, XK_period, focusmon, {.i = +1 } },
	{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
	{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
	TAGKEYS(XK_1, 0)
	TAGKEYS(XK_2, 1)
	TAGKEYS(XK_3, 2)
	TAGKEYS(XK_4, 3)
	TAGKEYS(XK_5, 4)
	TAGKEYS(XK_6, 5)
	TAGKEYS(XK_7, 6)
	TAGKEYS(XK_8, 7)
	TAGKEYS(XK_9, 8)
	{ MODKEY|ShiftMask, XK_q, quit, {0} },

	// Custom Keybindings
	{ MODKEY, XK_Escape, spawn, SHCMD("xscreensaver-command -lock") },
	{ MODKEY|ShiftMask, XK_grave, spawn, 
		SHCMD("urxvt -e screen -c ~/.screenrc-startup-256color -dRR") },
	{ MODKEY, XK_x, banish, {0} },
	{ MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[3]} },
	{ MODKEY|ControlMask, XK_t, setlayout, {.v = &layouts[4]} },
};

// Mouse Bindings --------------------------------------------------------------
static Button buttons[] =
{
	{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
	{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
};

banish.c:

void banish()
{
	XWarpPointer(dpy, None, RootWindow(dpy, DefaultScreen(dpy)),
		0, 0, 0, 0, XDisplayWidth(dpy, DefaultScreen(dpy)),
		XDisplayHeight(dpy, DefaultScreen(dpy)));
}

1-Crawl 2-Cnfg 3-ATF 4-Exit ?

Offline

#523 2012-06-03 15:47:18

MinimalBoot
Member
Registered: 2012-05-01
Posts: 38

Re: Show off your Dwm configuration!

Anyone using irrsi and have a ready-to-use solution for Alt + Number ( window switching in irssi, workspace switching in dwm ) problem ?

Offline

#524 2012-06-03 15:59:19

Into the Pit
Member
Registered: 2010-09-04
Posts: 37

Re: Show off your Dwm configuration!

you can bind the Modkey to Mod4Mask in config.h or change it for your Terminal.

Offline

#525 2012-06-17 19:38:59

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

Re: Show off your Dwm configuration!

tZWRqZw

Offline

Board footer

Powered by FluxBB