You are not logged in.

#276 2011-04-07 06:50:51

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Show off your Dwm configuration!

I was really wanting to have color in my status bar using conky and the default dwm status bar, and had come across this solution, but found that it was more demanding on my cpu than I would have liked (conky's man warns of this), but figured out that the problem was really with the interval, and that this could easily be fixed by changing his solution to something like this:

${execi 10000 echo -e \\x04}

This works great because you aren't really looking to update the color except when making a modification to conky, and then you would update it manually anyway.  I thought I would share this since I saw a couple of other posts from people wanting to do the same thing.

screenshot dirty

screenshot clean

dwm + statuscolors, fancybar, fibonacci, attachabove, uselessgap

conkyrc:

out_to_console yes
out_to_x no
background no
update_interval 5
total_run_times 0
use_spacer none

TEXT

${execi 10000 echo -e \\x04}CPU1${execi 10000 echo -e \\x01} ${cpu cpu1}% @ ${freq cpu1}MHz ${hwmon temp 1}c ${execi 10000 echo -e \\x04}CPU2${execi 10000 echo -e \\x01} ${cpu cpu2}% @ ${freq cpu2}MHz ${hwmon temp 3}c ${execi 10000 echo -e \\x04}Mem${execi 10000 echo -e \\x01} $mem ${execi 10000 echo -e \\x04}Net${execi 10000 echo -e \\x01} ${wireless_essid wlan0} ${wireless_link_qual_perc wlan0}% ${downspeed wlan0} ${upspeed wlan0} ${execi 10000 echo -e \\x04}Vol${execi 10000 echo -e \\x01} $mixer% ${execi 10000 echo -e \\x04}Bat${execi 10000 echo -e \\x01} ${battery_percent BAT1}% | ${time %a %b %d %I:%M%P}

I laugh, yet the joke is on me

Offline

#277 2011-04-08 09:04:56

Starblade
Member
Registered: 2009-01-05
Posts: 6

Re: Show off your Dwm configuration!

Giving dwm another try and loving it so far. ty to OK100 for making his files available. They helped a lot.

* Inconsolata font.
* Conky used in the bar.
* Arch Suede wallpaper.
* Lich colors.

tODYzdA

Offline

#278 2011-04-08 11:08:02

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

Re: Show off your Dwm configuration!

muffinss wrote:
OK100 wrote:

dwm on eeepc with some patches:
- cycle
- pango
- uselessgaps
- nbstack
- pertag2
- push
- pidgin layout
- scratchpad

clean:
http://dl.dropbox.com/u/15563529/clean.png

"busy":
http://dl.dropbox.com/u/15563529/busy.png

How did you guys get stalonetray into dwm top bar like that? I've been trying to figure out how but don't know =/

Tray on screenshots is fbpanel-dwm from AUR, but now I'm using a patch that adds tray directly into dwm. You can find it in my dwm repo.

Offline

#279 2011-04-11 02:18:33

Haptic
Member
Registered: 2009-09-03
Posts: 149

Re: Show off your Dwm configuration!

Mine's not too elegant, bit at least it looks pretty clean. I still get a gap at the bottom when there are 2 urxvts stacked even with the patched version, but it doesn't bother me enough for me to do something about it.

Dirty:
tODdvcA

Clean:
tODdvcQ

Last edited by Haptic (2011-04-11 02:20:49)

Offline

#280 2011-04-11 02:28:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Show off your Dwm configuration!

Haptic wrote:

I still get a gap at the bottom when there are 2 urxvts stacked even with the patched version, but it doesn't bother me enough for me to do something about it.

Have you tried resizehints?

static const Bool resizehints  = False; /*  True means respect size hints in tiled resizals */

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#281 2011-04-11 02:30:59

Haptic
Member
Registered: 2009-09-03
Posts: 149

Re: Show off your Dwm configuration!

That worked. ha.

Offline

#282 2011-04-12 10:21:06

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: Show off your Dwm configuration!

Trying out a different look.

Clean:
tODg5MA

Dirty:
tODg4eA


You're just jealous because the voices only talk to me.

Offline

#283 2011-04-23 19:11:50

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

Re: Show off your Dwm configuration!

ss_thumb.png

12 months of dwm <3, really don't know what I'd do without it!

confs @ http://www.meyithi.com/dots/nb/


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

Offline

#284 2011-05-01 23:40:57

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: Show off your Dwm configuration!

a bit late to the game, but do you have the wallpaper? also: how did you make the statusbar?

Offline

#285 2011-05-02 12:37:03

aleks223
Member
Registered: 2010-03-27
Posts: 178
Website

Re: Show off your Dwm configuration!

el mariachi wrote:

a bit late to the game, but do you have the wallpaper? also: how did you make the statusbar?

It's from simpledesktops http://simpledesktops.com/browse/

Search it there.

Offline

#286 2011-05-02 14:07:17

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: Show off your Dwm configuration!

Thanks! Awesome site, I din't know about it.

Offline

#287 2011-05-03 16:03:17

rezza
Member
From: Edinburgh, uk
Registered: 2004-07-08
Posts: 237

Re: Show off your Dwm configuration!

Not particularly exciting. Just my work desktop, I switched when gnome hit version 3.


2011-05-03-165306_1680x1050_thumb_scrot.png

Last edited by rezza (2011-05-04 08:23:07)

Offline

#288 2011-05-08 19:00:54

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

Re: Show off your Dwm configuration!

New setup (mainly statusbar):
2011-05-08-202252_800x480_scrot.png_thumb.png2011-05-08-202311_800x480_scrot.png_thumb.png2011-05-08-202829_800x480_scrot.png_thumb.png
I still use tray (fbpanel-dwm from AUR) but it's set to autohide smile

Last edited by OK100 (2011-05-08 19:02:59)

Offline

#289 2011-05-08 19:10:16

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: Show off your Dwm configuration!

What menu is that? is it set to right-click?

I'm looking for a way of having a statusbar with icons and info about which netcfg profile is active, like the one tvale uses. He seems to be afk though sad

Offline

#290 2011-05-09 13:53:12

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

Re: Show off your Dwm configuration!

el mariachi wrote:

What menu is that? is it set to right-click?

Menu is mygtkmenu from AUR and I set this script, which generates menu in config.h to desktop right-click: https://github.com/ok100/configs/blob/m … gtkmenu.py
See my github for more details.

Offline

#291 2011-05-09 20:47:28

vanvalium
Member
From: Austria
Registered: 2010-10-09
Posts: 86

Re: Show off your Dwm configuration!

nice! I'll totally steal that script, a menu was always missing for me

Offline

#292 2011-05-10 10:33:18

cf8
Member
From: Russia
Registered: 2008-10-21
Posts: 83

Re: Show off your Dwm configuration!

also have a look at xmenud, its a similar menu app

Offline

#293 2011-05-10 13:14:59

vanvalium
Member
From: Austria
Registered: 2010-10-09
Posts: 86

Re: Show off your Dwm configuration!

Thanks, but mygtkmenu seems enough.
I also ditched the python-script as automatic menus aren't necessary for me and tend to get to clustered with useless apps.

I'm looking for a way of having a statusbar with icons and info about which netcfg profile is active, like the one tvale uses. He seems to be afk though sad

https://bbs.archlinux.org/viewtopic.php?id=74742
could that work? (says it works with dzen)

Offline

#294 2011-05-10 13:29:29

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: Show off your Dwm configuration!

thanks vanvalium, but I'm looking for something even more simple.
like this:https://bbs.archlinux.org/viewtopic.php?pid=901283#p901283

Offline

#295 2011-05-13 01:21:10

inch
Member
Registered: 2010-12-21
Posts: 49

Re: Show off your Dwm configuration!

OK100 wrote:

2011-05-08-202829_800x480_scrot.png_thumb.png
I still use tray (fbpanel-dwm from AUR) but it's set to autohide smile

Do you care to share the name of the file manager in the right bottom of the screenshot?

edit: thank you

Last edited by inch (2011-05-17 23:03:34)

Offline

#296 2011-05-13 14:16:24

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

Re: Show off your Dwm configuration!

inch wrote:
OK100 wrote:

http://dl.dropbox.com/u/15563529/Thumbnails/2011-05-08-202829_800x480_scrot.png_thumb.png
I still use tray (fbpanel-dwm from AUR) but it's set to autohide smile

Do you care to share the name of the file manager in the right bottom of the screenshot?

It's mc, with menu, command line and keybar turned off.

Offline

#297 2011-05-15 19:23:04

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: Show off your Dwm configuration!

I'm having trouble compiling this. I don't know C so I'm asking for some help.

my config.h

/* See LICENSE file for copyright and license details. */

/* appearance */
static const char font[]            = "-windows-montecarlo-medium-r-normal-*-11-110-72-72-c-60-microsoft-cp1252";
static const char normbordercolor[] = "#cccccc";
static const char normbgcolor[]     = "#ffffff";
static const char normfgcolor[]     = "#336699";
static const char selbordercolor[]  = "#ffffff";
static const char selbgcolor[]      = "#336699";
static const char selfgcolor[]      = "#ffffff";
static const unsigned int borderpx  = 2;        /* 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 */

static const Rule rules[] = {
    /* class      instance    title       tags mask     isfloating   monitor */
    { "Gimp",     NULL,       NULL,       0,            True,        -1 },
};

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

#include "nbstack.c"

static const Layout layouts[] = {
    /* symbol arrange function */
    { "=2]",  ntile   },    /* first entry is default */
    { "><>",  NULL    },    /* no layout function means floating behavior */
    { "[M]",  monocle },
    { "T2T",  nbstack },
};

/* tagging */
static const Tag tags[] = {
  /* name       layout        mfact   nmaster */
  { "term",     &layouts[0],  -1,     -1 },
  { "web",      &layouts[2],  -1,     -1 },
  { "im",       &layouts[1],   0.75,  -1 },
  { "torrent",  &layouts[2],  -1      -1 },
  { "media",    &layouts[1],  -1      -1 },
};

/* 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 *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[]  = { "urxvtc", NULL };
static const char *wwwcmd[] = { "www", NULL };
static const char *homecmd[] = { "pcmanfm", NULL };
static const char *quitcmd[] = { "sudo","halt", NULL };
static const char *rebootcmd[] = { "sudo","reboot", NULL };
static const char *yawn[] = { "sudo","s2ram","-f", NULL };
static const char *voldowncmd[] = { "amixer", "-q", "set", "Master", "2dB-",  NULL };

static Key keys[] = {
    /* modifier                     key        function        argument */
    { 0,                            XF86XK_AudioLowerVolume,  spawn,          {.v = voldowncmd } },
    { MODKEY,                       XK_r,      spawn,          {.v = dmenucmd } },
    { MODKEY,                       XK_e,      spawn,          {.v = termcmd } },
    { MODKEY,                         XK_w,      spawn,           {.v = wwwcmd } },
    { MODKEY,                         XK_n,      spawn,           {.v = homecmd } },
    { MODKEY,                       XK_b,      togglebar,      {0} },
    { MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
    { MODKEY,                       XK_k,      focusstack,     {.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_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 } },
    { MODKEY|ShiftMask,             XK_q,        spawn           {.v = quitcmd } },
    { MODKEY|ShiftMask,                 XK_r,        spawn           {.v = rebootcmd } },
    { MODKEY|ShiftMask,                 XK_y,        spawn           {.v = yawn } },
    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_c,       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} },
};

the error:

dwm build options:
CC dwm.c
CFLAGS   = -march=native -O2 -pipe -std=c99 -pedantic -Wall -O2 -I. -I/usr/include -I/usr/include/X11 -pthread -I/usr/include/freetype2 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DVERSION="5.8.2" -DXINERAMA
LDFLAGS  = -Wl,--hash-style=gnu -Wl,--as-needed -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama -pthread -lpangoxft-1.0 -lpangoft2-1.0 -lXft -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  
CC       = cc
In file included from dwm.c:292:0:
config.h:69:34: error: ‘XF86XK_AudioLowerVolume’ undeclared here (not in a function)
dwm.c: In function ‘initfont’:
dwm.c:1032:20: warning: variable ‘font_extents’ set but not used [-Wunused-but-set-variable]
dwm.c: At top level:
dwm.c:1546:1: warning: ‘setnmaster’ defined but not used [-Wunused-function]
dwm.c:1535:1: warning: ‘incnmaster’ defined but not used [-Wunused-function]
config.h:62:20: warning: ‘quitcmd’ defined but not used [-Wunused-variable]
config.h:63:20: warning: ‘rebootcmd’ defined but not used [-Wunused-variable]
config.h:64:20: warning: ‘yawn’ defined but not used [-Wunused-variable]
make: *** [dwm.o] Error 1

thanks!

Offline

#298 2011-05-15 19:59:09

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: Show off your Dwm configuration!

You have to add this before you define media keys:

#include "X11/XF86keysym.h"

Other errors mean you should clean the code -- aka. remove / comment parts you don't use.

Last edited by bohoomil (2011-05-15 19:59:33)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#299 2011-05-15 20:11:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Show off your Dwm configuration!

el mariachi wrote:

I'm having trouble compiling this. I don't know C so I'm asking for some help.

This isn't a support thread (that's why it's in Screenshots smile ), and the beauty of dwm's code is that even without knowing C, you can figure most of it out...

Where each of the errors occurs, just review the relevant lines in config.h and you will see what is wrong. No commas after spawn, for example...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#300 2011-05-15 20:30:30

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: Show off your Dwm configuration!

Thanks I didn't notice the missing commas *facepalm*

And sorry for posting this here...

I'll contribute in a correct way in the future wink

Offline

Board footer

Powered by FluxBB