You are not logged in.

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.
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

Still got my DWM going:
This is awesomeness.
meh
Offline

Unia wrote:Still got my DWM going:
This is awesomeness.
Thanks! 
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

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.
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
@Unia
May i suggest gnome-colors noble icon sets for that purple dwm? 

@Unia
May i suggest gnome-colors noble icon sets for that purple dwm?
Yes you may, but currently I am happy with my Faenza  Would get a bit too purple otherwise
 Would get a bit too purple otherwise 
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

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
Last edited by w0ng (2012-04-25 20:22:24)
All configs @ https://github.com/w0ng
Offline

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
http://ompldr.org/tZGlpNg
Looks nice!
Offline

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
http://ompldr.org/tZGlpNg
Very nicely done, I love how the theme is prevalent throughout 
Offline
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
Awesome idea, lol.
Offline

Offline
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
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

Crosspost from monthly:
Changes from my old screenshot are an extended patch (first one I made  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
 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  ) 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
) 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  )
)
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
Offline

Offline

OK100 wrote:How did you get that "openbox-type" menu?
It's mygtkmenu. Check his github.
Offline

n1x4 wrote:OK100 wrote:How did you get that "openbox-type" menu?
It's mygtkmenu. Check his github.
Yes 
Offline

Possible switch to dwm soon:
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
Anyone using irrsi and have a ready-to-use solution for Alt + Number ( window switching in irssi, workspace switching in dwm ) problem ?
Offline
you can bind the Modkey to Mod4Mask in config.h or change it for your Terminal.
Offline

Offline