You are not logged in.
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.
No more dragging floating windows to the centre of the screen!
In short, dwm is awesome and getting better all of the time.
config.h, diffs, dots and wall @ http://www.meyithi.com/dots/dt
Offline
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.pngNo more dragging floating windows to the centre of the screen!
http://www.meyithi.com/dots/dt/dwm2t.pngIn 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
Offline
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
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)
Offline
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
I'm back to DWM, thanks to Jokerboy and his patched DWM - thank you, very much!
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
Happy camper here
* 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
Last edited by Onyros (2012-02-24 10:03:58)
Offline
Thumbnails please...
Offline
dwm here also,
There are no foreign lands. It is the traveler only who is foreign. --R.L Stevenson
Offline
dwm here also,
Very nice, can I have those colors?
Offline
Dwm with push, gaplessgrid, statuscolors and uselessgap
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
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
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
http://fallenunia.deviantart.com/art/Ge … -287331661
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
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
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
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
Long time I posted my desktop CLI based.
DWM (6.0) 4 Life.
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
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
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
ga01f4733 wrote:dwm here also,
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
@fsckd: Ok I see.
@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)
Offline
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