You are not logged in.

#451 2012-02-08 22:34:50

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: Show off your Dwm configuration!

I've used dwm for about 2 years now, I don't code but hate bloat and unnecessary GUI's, tend to use CLI apps and prefer coreutils to file manegers so it made sense.  I was pretty happy, some inconveniences but lately the inconveniences have been dropping like flies.  dwm-6.0 really improved EWMH so fullscreen media apps and such don't misbehave and and little patches like this (thanks JokerBoy) are popping up and making life a lot easier, so much so I'd call dwm (with a few patches) in it's current state perfect for my needs.

Anyways

Tiling, using dwm 5.9's tile function so uselessgaps has consistent gap sizes.  I don't use nmaster and no other improvements have been stripped out so all is good.
dwm1t.png

No more dragging floating windows to the centre of the screen!
dwm2t.png

In short, dwm is awesome and getting better all of the time.

config.h, diffs, dots and wall @  http://www.meyithi.com/dots/dt


The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#452 2012-02-08 23:25:03

cirnOS
Member
Registered: 2010-03-01
Posts: 107

Re: Show off your Dwm configuration!

Meyithi wrote:

I've used dwm for about 2 years now, I don't code but hate bloat and unnecessary GUI's, tend to use CLI apps and prefer coreutils to file manegers so it made sense.  I was pretty happy, some inconveniences but lately the inconveniences have been dropping like flies.  dwm-6.0 really improved EWMH so fullscreen media apps and such don't misbehave and and little patches like this (thanks JokerBoy) are popping up and making life a lot easier, so much so I'd call dwm (with a few patches) in it's current state perfect for my needs.

Anyways

Tiling, using dwm 5.9's tile function so uselessgaps has consistent gap sizes.  I don't use nmaster and no other improvements have been stripped out so all is good.
http://www.meyithi.com/dots/dt/dwm1t.png

No more dragging floating windows to the centre of the screen!
http://www.meyithi.com/dots/dt/dwm2t.png

In short, dwm is awesome and getting better all of the time.

config.h, diffs, dots and wall @  http://www.meyithi.com/dots/dt


I like that screenshot. Did you achieve colors on the right side of the bar with the statuscolors patch?

Offline

#453 2012-02-08 23:37:51

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: Show off your Dwm configuration!

cirnOS wrote:

I like that screenshot. Did you achieve colors on the right side of the bar with the statuscolors patch?

Yup, the 5.9 patch works fine in 6.0.


The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#454 2012-02-09 00:18:43

cirnOS
Member
Registered: 2010-03-01
Posts: 107

Re: Show off your Dwm configuration!

Meyithi wrote:
cirnOS wrote:

I like that screenshot. Did you achieve colors on the right side of the bar with the statuscolors patch?

Yup, the 5.9 patch works fine in 6.0.


I was never able to apply that patch correctly, but I have stlarch's config that has it applied so I may toy with that later.

Offline

#455 2012-02-09 10:43:44

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

Re: Show off your Dwm configuration!

Test this from Jokerboy if the previous doesn't work:
http://hg.punctweb.ro/dwm/src/6000621a4 … olors.diff
Currently using it.

Last edited by Ypnose (2012-02-09 10:44:17)


Github -- My terminal font Envypn

Offline

#456 2012-02-10 02:52:44

cirnOS
Member
Registered: 2010-03-01
Posts: 107

Re: Show off your Dwm configuration!

Ypnose wrote:

Test this from Jokerboy if the previous doesn't work:
http://hg.punctweb.ro/dwm/src/6000621a4 … olors.diff
Currently using it.

Alright, thanks.

Offline

#457 2012-02-24 04:07:06

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 296

Re: Show off your Dwm configuration!

I'm back to DWM, thanks to Jokerboy and his patched DWM - thank you, very much!

Clean

Dirty

Statusbar info is from a script I cooked up with bits and pieces from a few places. Weather is accuweather one liner piped into the bar.

I was using Awesome and Fluxbox before, but with these patches, I have almost* everything I need... at a much lighter weight big_smile

Happy camper here smile


* almost = I use wbar and make it auto-hide by making it transparent when not focused. I wanted it to be accessible on all tags, but so that when I hover it even on a "monocled" (not fullscreen) application it would come up. The thing is that when I choose "Run over Desktop", it only appears on one tag and has that ugly ass border around it. Any way to circumvent that behaviour on wbar's part? I just want it to behave a little more like Mac OS X's dock.

edit: Sorry, jason, removed the previews wink

Last edited by Onyros (2012-02-24 10:03:58)

Offline

#458 2012-02-24 04:24:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,147
Website

Re: Show off your Dwm configuration!

Thumbnails please...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#459 2012-02-24 09:32:05

ga01f4733
Member
From: bcn, Catalonia
Registered: 2008-12-05
Posts: 117

Re: Show off your Dwm configuration!


There are no foreign lands. It is the traveler only who is foreign. --R.L Stevenson

Offline

#460 2012-02-24 19:46:48

cirnOS
Member
Registered: 2010-03-01
Posts: 107

Re: Show off your Dwm configuration!

Very nice, can I have those colors?

Offline

#461 2012-02-25 03:03:05

schalox
Member
From: Finland
Registered: 2011-05-10
Posts: 21

Re: Show off your Dwm configuration!

Dwm with push, gaplessgrid, statuscolors and uselessgap smile
http://img41.imageshack.us/img41/920/scrot1.png
http://img542.imageshack.us/img542/861/scrot2.png

config.h

/* See LICENSE file for copyright and license details. */
/* patches */
#include "push.c"
#include "gaplessgrid.c"

/* statuscolors */
#define NUMCOLORS           3           /* need at least 3 */
static const char colors[NUMCOLORS][ColLast][8] = {
    /* border   foreground  background */
    { "#333333", "#666666", "#000000" },  /* 0 = normal */
    { "#666666", "#cccccc", "#000000" },  /* 1 = selected */
    { "#000000", "#628c62", "#000000" },  /* 2 = green */
    /* add more here */
};

/* uselessgap */
static const unsigned int gappx     = 4;        /* gap pixel between windows */

/* appearance */
static const char font[]            = "-xos4-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*";
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 */

/* tagging */
static const char *tags[] = { "cli", "web", "gui", "media", "null" };

static const Rule rules[] = {
    /* class      instance    title         tags mask     isfloating   monitor */
    { "Firefox",  NULL,       NULL,         1 << 1,       False,       -1 },
    { "Easytag",  NULL,       NULL,         1 << 2,       False,       -1 },
    { "Epdfview", NULL,       NULL,         1 << 2,       False,       -1 },
    { "MPlayer",  NULL,       NULL,         1 << 3,       True,        -1 },
    { "sxiv",     NULL,       NULL,         1 << 3,       False,       -1 },
};

/* layout(s) */
static const float mfact      = 0.50; /* 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 */
    { "[]=",      tile },
    { "><>",      NULL },    /* no layout function means floating behavior */
    { "[M]",      monocle },
    { "###",      gaplessgrid },    /* first entry is default */
};

/* key definitions */
#define MODKEY Mod1Mask
#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 *browsercmd[]     = { "firefox", NULL };
static const char *dmenucmd[]       = { "dmenu_run", "-fn", font, "-nb", colors[0][ColBG], "-nf", colors[0][ColFG],"-sb", colors[1][ColBG], "-sf", colors[1][ColFG], NULL };
static const char *mpdctrlcmd[]     = { "/home/schalox/.bin/dmenu-mpc", NULL };
static const char *tmuxcmd[]        = { "urxvtc", "-e", "tmux", "attach", NULL };
static const char *termcmd[]        = { "urxvtc", NULL };

static const char *mpdtoggle[]      = { "mpc", "-q", "toggle", NULL };
static const char *mpdstop[]        = { "mpc", "-q", "stop", NULL };
static const char *mpdnext[]        = { "mpc", "-q", "next", NULL };
static const char *mpdprev[]        = { "mpc", "-q", "prev", NULL };

static const char *volmute[]        = { "amixer", "-q", "set", "Front", "toggle", NULL };
static const char *vollower[]       = { "amixer", "-q", "set", "Master", "2%-", NULL };
static const char *volraise[]       = { "amixer", "-q", "set", "Master", "2%+", NULL };

static const char *logoutcmd[]      = { "killall", "startdwm", NULL };
static const char *rebootcmd[]      = { "sudo", "shutdown", "-r", "now", NULL };
static const char *shutdowncmd[]    = { "sudo", "shutdown", "-h", "now", NULL };
static const char *suspendcmd[]     = { "sudo", "pm-suspend", NULL };

static Key keys[] = {
    /* modifier         key        function        argument */
    { MODKEY|ShiftMask, XK_i,      incnmaster,     {.i = +1 } },
    { MODKEY|ShiftMask, XK_d,      incnmaster,     {.i = -1 } },
    { MODKEY|ShiftMask, XK_c,      killclient,     {0} },
    { MODKEY|ShiftMask, XK_0,      tag,            {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_comma,  tagmon,         {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon,         {.i = +1 } },
    { MODKEY|ShiftMask, XK_space,  togglefloating, {0} },
    { MODKEY|ShiftMask, XK_t,      setlayout,      {.v = &layouts[0]} },
    { MODKEY|ShiftMask, XK_f,      setlayout,      {.v = &layouts[1]} },
    { MODKEY|ShiftMask, XK_m,      setlayout,      {.v = &layouts[2]} },
    { MODKEY|ShiftMask, XK_g,      setlayout,      {.v = &layouts[3]} },
    { MODKEY|ShiftMask, XK_space,  setlayout,      {0} },
    { MODKEY,           XK_comma,  focusmon,       {.i = -1 } },
    { MODKEY,           XK_period, focusmon,       {.i = +1 } },
    { MODKEY,           XK_h,      setmfact,       {.f = -0.05} },
    { MODKEY,           XK_l,      setmfact,       {.f = +0.05} },
    { MODKEY,           XK_b,      togglebar,      {0} },
  /*{ MODKEY,           XK_Tab,    view,           {0} },*/
    { MODKEY,           XK_0,      view,           {.ui = ~0 } },
    { MODKEY,           XK_Return, zoom,           {0} },
    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)*/

  /* custom builtin */
    { MODKEY,           XK_Tab,    focusstack,     {.i = +1 } },
    { MODKEY|ShiftMask, XK_Tab,    focusstack,     {.i = -1 } },

  /* mpd */
    { 0,                0x1008ff14,spawn,          {.v = mpdtoggle } },
    { 0,                0x1008ff15,spawn,          {.v = mpdstop } },
    { 0,                0x1008ff16,spawn,          {.v = mpdprev } },
    { 0,                0x1008ff17,spawn,          {.v = mpdnext } },

  /* volume */
    { 0,                0x1008ff12,spawn,          {.v = volmute } },
    { 0,                0x1008ff11,spawn,          {.v = vollower } },
    { 0,                0x1008ff13,spawn,          {.v = volraise } },

  /* apps */
    { MODKEY,           XK_w,      spawn,          {.v = browsercmd } },
    { MODKEY,           XK_p,      spawn,          {.v = dmenucmd } },
    { MODKEY,           XK_m,      spawn,          {.v = mpdctrlcmd } },
    { MODKEY|ShiftMask, XK_t,      spawn,          {.v = termcmd } },
    { MODKEY,           XK_t,      spawn,          {.v = tmuxcmd } },

  /* shutdown etc */
    { MODKEY|ShiftMask, XK_r,      spawn,          {.v = rebootcmd } },
    { MODKEY|ShiftMask, XK_s,      spawn,          {.v = shutdowncmd } },
    { MODKEY|ShiftMask, XK_z,      spawn,          {.v = suspendcmd } },
    { MODKEY|ShiftMask, XK_q,      spawn,          {.v = logoutcmd } },
    { MODKEY,           XK_q,      quit,           {0} },

  /* push */
    { MODKEY|ShiftMask, XK_j,      pushdown,       {0} },
    { MODKEY|ShiftMask, XK_k,      pushup,         {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} },
};

Offline

#462 2012-02-25 03:14:04

ga01f4733
Member
From: bcn, Catalonia
Registered: 2008-12-05
Posts: 117

Re: Show off your Dwm configuration!

Glad you liked it cirnOs , I guess that's what you meant. 


config.h

 

/* appearance */
static const char font[]            = "-*-terminus-medium-r-*-*-14*-*-*-*-*-*-*";
static const char normbordercolor[] = "#2a2a2a";
static const char normbgcolor[]     = "#2a2a2a";
static const char normfgcolor[]     = "#888888";
static const char selbordercolor[]  = "#555555";
static const char selbgcolor[]      = "#000000";
static const char selfgcolor[]      = "#EFB900";
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 */

There are no foreign lands. It is the traveler only who is foreign. --R.L Stevenson

Offline

#463 2012-02-25 04:28:45

cirnOS
Member
Registered: 2010-03-01
Posts: 107

Re: Show off your Dwm configuration!

ga01f4733 wrote:

Glad you liked it cirnOs , I guess that's what you meant. 


config.h

 

/* appearance */
static const char font[]            = "-*-terminus-medium-r-*-*-14*-*-*-*-*-*-*";
static const char normbordercolor[] = "#2a2a2a";
static const char normbgcolor[]     = "#2a2a2a";
static const char normfgcolor[]     = "#888888";
static const char selbordercolor[]  = "#555555";
static const char selbgcolor[]      = "#000000";
static const char selfgcolor[]      = "#EFB900";
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 */

Yes. Thank you.

Offline

#464 2012-02-26 16:00:41

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

Re: Show off your Dwm configuration!

Long time I posted my desktop CLI based.

DWM (6.0) 4 Life.

Clean:
aecd415ec4.png

Busy:
ab0551e637.png

Last edited by Ypnose (2012-02-26 16:08:47)


Github -- My terminal font Envypn

Offline

#465 2012-02-26 17:41:23

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

Re: Show off your Dwm configuration!

What is that on the top part of your screen and how/where did you aquire it?
Thanks.


||github||

Offline

#466 2012-02-26 20:21:47

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

Re: Show off your Dwm configuration!

http://fallenunia.deviantart.com/art/Ge … -287331661

Description @ Deviantart wrote:

All that's left to do now is extend my dzen2/conky configuration as in "animated" images and clickable media buttons. I'm also not quite satisfied with the layout icons (they're not centered height-wise) but overall I'm quite satisfied.

I got all my patches working, although I might look into the pidgin layout once. List of patches:
01-dwm-6.0-+uselessgaps_-nmaster.diff
02-dwm-6.0-urgentcolor.diff
03-dwm-6.0-xbm_layout_icons.diff
04-dwm-6.0-bstack_without_nmaster.diff
05-dwm-6.0-gridmode.diff
06-dwm-6.0-pertag_initlayout.diff

Sorry for no thumbnail, omploader is down again roll


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

#467 2012-02-26 22:41:54

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

Re: Show off your Dwm configuration!

Current DWM, kind of plain jane ATM.
    -push
    -fibinoci

http://dl.dropbox.com/u/58127896/dwm.png

Unia, could you please post the PS1 line of your .bashrc please?

Last edited by n1x4 (2012-02-26 22:45:26)


||github||

Offline

#468 2012-02-27 11:21:15

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

Re: Show off your Dwm configuration!

n1x4 wrote:

Unia, could you please post the PS1 line of your .bashrc please?

Sure, here you go:

PS1='┌─[\u@\h \W]\[\e[0;32m\][${cwd}\t]\[\033[0m\] ${fill}\n\[\033[0m\]└─■ '

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

#469 2012-02-27 12:56:23

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,244

Re: Show off your Dwm configuration!

Ypnose wrote:

Long time I posted my desktop CLI based.

DWM (6.0) 4 Life.

Clean:
http://i.solidfiles.net/aecd415ec4.png

Busy:
http://i.solidfiles.net/ab0551e637.png

User examon asked:-

Whats that music player? I'm searching for cli based music player which can play some internet radio streams as well. Thx

To User examon, there's a difference between 'report' and 'reply'.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#470 2012-02-27 13:16:43

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

Re: Show off your Dwm configuration!

Didn't see examon's post, in this topic. What's happened ngoonee?


Github -- My terminal font Envypn

Offline

#471 2012-02-27 13:26:35

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Show off your Dwm configuration!

Ypnose, examon meant to reply to your post but instead accidentally clicked the report button and sent the post to the mods. Ngoonee copied examon's intended post above. This isn't a big deal. Stuff like this happens every now and then.

examon: no worries smile


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#472 2012-02-27 13:28:52

ga01f4733
Member
From: bcn, Catalonia
Registered: 2008-12-05
Posts: 117

Re: Show off your Dwm configuration!

n1x4 wrote:

What is that on the top part of your screen and how/where did you aquire it?
Thanks.

Hi,

Do you mean the dmenu, or the PS1?


There are no foreign lands. It is the traveler only who is foreign. --R.L Stevenson

Offline

#473 2012-02-27 13:32:11

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

Re: Show off your Dwm configuration!

@fsckd: Ok I see. smile

@examon: The player is Moc with a custom layout. You can play internet streams and local songs with this player. You should save streams into a file (with .m3u extension) and then open it in Moc (I'm doin' this).

Last edited by Ypnose (2012-02-27 13:36:46)


Github -- My terminal font Envypn

Offline

#474 2012-02-27 14:48:54

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

Re: Show off your Dwm configuration!

Thank you Unia.


ga01f4733 wrote:

Do you mean the dmenu, or the PS1?

The menu structure. I really like that!


||github||

Offline

#475 2012-02-27 16:28:40

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

Re: Show off your Dwm configuration!

Unia wrote:
n1x4 wrote:

Unia, could you please post the PS1 line of your .bashrc please?

Sure, here you go:

PS1='┌─[\u@\h \W]\[\e[0;32m\][${cwd}\t]\[\033[0m\] ${fill}\n\[\033[0m\]└─■ '

I know this kind of a dumb question and a bad explanation but this works just fine on my desktop but on my laptop I get "---->" "----+" type pf an output. What pkg do I need to install to get it looking like the above?


||github||

Offline

Board footer

Powered by FluxBB