You are not logged in.

#476 2012-02-27 16:33:58

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

Re: Show off your Dwm configuration!

I don't know exactly, but most probably this is a locale setting.


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

#477 2012-02-27 20:28:11

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

Re: Show off your Dwm configuration!

Beats me.. It works on my desktop but it's hard telling what's on there..lol I use it basically for testing grounds on things before I add to laptop.
I figured out the '--->' issue was just a c/p error with nano... Here's the output now.

[n1x4@LongBow ~][15:22:46] 
 

EDIT: Well, it didn't add the little circles with ?s in them... but it has those for the └─■ and ┌─.

Last edited by n1x4 (2012-02-27 20:29:35)


||github||

Offline

#478 2012-03-05 23:06:34

beardyjay
Member
Registered: 2012-03-05
Posts: 2

Re: Show off your Dwm configuration!

Onyros wrote:

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

Clean

Dirty

*snip*

Love it!

In your "dirty" screenshot, what is the layout used for centering a terminal on the top layer?

Offline

#479 2012-03-06 10:29:57

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: Show off your Dwm configuration!

That would be scratchpad.

Offline

#480 2012-03-06 11:35:56

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

Re: Show off your Dwm configuration!

Exactly smile "nicknamed" scratchy by JokerBoy for extra cool factor. (Reminds me of the Itchy & Scratchy Show, too)

Offline

#481 2012-03-06 12:59:47

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: Show off your Dwm configuration!

It's made by lolilolicon. I just updated it for dwm 6.0 and fixed a bug which affects multi monitor setups. smile

Offline

#482 2012-03-06 13:32:47

beardyjay
Member
Registered: 2012-03-05
Posts: 2

Re: Show off your Dwm configuration!

Thanks for that Onyros and jokerboy! :-)

Offline

#483 2012-03-11 19:11:25

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

Re: Show off your Dwm configuration!

New desk this month. Still dwm 6.0.

Clean:
b3313cd47b.png

Busy:
f2c3fa41b8.png


Github -- My terminal font Envypn

Offline

#484 2012-03-12 19:58:50

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

Re: Show off your Dwm configuration!

Still got my DWM going:

tZDBuYg


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

#485 2012-03-13 05:27:41

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

Re: Show off your Dwm configuration!

Still very much a work in progress:
UkWJ4.png

Last edited by wolfcore (2012-03-13 15:04:34)

Offline

#486 2012-03-13 05:33:49

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

Re: Show off your Dwm configuration!

Please resize your image to fit with the guidelines: http://wiki.archlinux.org/index.php/For … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#487 2012-03-16 19:23:53

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

Re: Show off your Dwm configuration!

dwm-6.0
statuscolors, push, cycle, attachaside, bstack, gaplessgrid, pertag, noborder
tZDFwaw

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

/* appearance */
static const char font[]            = "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*";
#define NUMCOLORS 9 
static const char colors[NUMCOLORS][ColLast][9] = {
  // border foreground background
  { "#292929", "#888888", "#151515" }, // 0 = normal (grey on black)
  { "#fad07a", "#e8e8d3", "#151515" }, // 1 = selected (white on black)
  { "#cf6a4c", "#151515", "#fad07a" }, // 2 = urgent (black on yellow)
  { "#292929", "#cf6a4c", "#151515" }, // 3 = red
  { "#292929", "#99ad6a", "#151515" }, // 4 = green
  { "#292929", "#fad07a", "#151515" }, // 5 = yellow 
  { "#292929", "#8197bf", "#151515" }, // 6 = blue
  { "#292929", "#8787af", "#151515" }, // 7 = magenta
  { "#292929", "#668799", "#151515" }, // 8 = cyan
};
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 */

/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };

static const Rule rules[] = {
  /* class      instance    title       tags mask     isfloating   monitor */
  { "Gimp",     NULL,       NULL,       0,            True,        -1 },
  { "feh" ,     NULL,       NULL,       0,            True,        -1 },
  { "Xfd",      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      = 1;    /* number of clients in master area */
static const Bool resizehints = False; /* True means respect size hints in tiled resizals */

#include "bstack.c"
#include "gaplessgrid.c"
static const Layout layouts[] = {
  /* symbol     arrange function */
  { "[T]",      tile },    /* first entry is default */
  { "[F]",      NULL },    /* no layout function means floating behavior */
  { "[M]",      monocle },
  { "[b]",      bstack },
  { "[G]",      gaplessgrid },
};

/* 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", colors[0][ColBG], "-nf", colors[0][ColFG], "-sb", colors[1][ColBG], "-sf", colors[1][ColFG], NULL };
static const char *termcmd[]  = { "urxvt", NULL };
static const char *volupcmd[] = { "amixer", "-q", "set", "Master", "5%+", NULL };
static const char *voldncmd[] = { "amixer", "-q", "set", "Master", "5%-", NULL };
static const char *mpctog[] = { "ncmpcpp", "toggle", NULL };
static const char *mpcstop[] = { "ncmpcpp", "stop", NULL };
static const char *mpcprev[] = { "ncmpcpp", "prev", NULL };
static const char *mpcnext[] = { "ncmpcpp", "next", NULL };

#include "push.c"
static Key keys[] = {
  /* modifier                     key        function        argument */
  { MODKEY,                       XK_Insert, spawn,          {.v = mpctog } },
  { MODKEY,                       XK_Delete, spawn,          {.v = mpcstop } },
  { MODKEY,                       XK_Home,   spawn,          {.v = mpcprev } },
  { MODKEY,                       XK_End,    spawn,          {.v = mpcnext } },
  { MODKEY,                       XK_Prior,  spawn,          {.v = volupcmd } },
  { MODKEY,                       XK_Next,   spawn,          {.v = voldncmd } },
  { MODKEY,                       XK_o,      spawn,          {.v = dmenucmd } },
  { MODKEY|ShiftMask,             XK_Return, spawn,          {.v = termcmd } },
  { MODKEY|ControlMask,           XK_b,      togglebar,      {0} },
  { MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
  { MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
  { MODKEY|ShiftMask,             XK_j,      pushdown,       {0} },
  { MODKEY|ShiftMask,             XK_k,      pushup,         {0} },
  { 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_t,      setlayout,      {.v = &layouts[0]} },
  { MODKEY,                       XK_f,      setlayout,      {.v = &layouts[1]} },
  { MODKEY,                       XK_m,      setlayout,      {.v = &layouts[2]} },
  { MODKEY,                       XK_b,      setlayout,      {.v = &layouts[3]} },
  { MODKEY,                       XK_g,      setlayout,      {.v = &layouts[3]} },
  { 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,                       XK_p,      cycle,          {.i = -1 } },
  { MODKEY,                       XK_n,      cycle,          {.i = +1 } },
  { MODKEY|ShiftMask,             XK_p,      tagcycle,       {.i = -1 } },
  { MODKEY|ShiftMask,             XK_n,      tagcycle,       {.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} },
};

/* 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} },
};

Is there a way of fixing urxvt gaps when resizehints = True?
Solution on the wiki is out of date. Spoke to thestinger (maintainer of rxvt-unicode-patched) on #archlinux and he says that the layoutgaps patched was sent upstream to the community package a while ago.

Offline

#488 2012-03-17 02:37:07

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: Show off your Dwm configuration!

w0ng,
Stole your irssi theme. Thanks. smile Looks great.

Offline

#489 2012-03-17 09:15:20

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

Re: Show off your Dwm configuration!

^i stole it off of pbrisbin smile

updated my toolbar using embedded xbm icons http://ompldr.org/vZDF2dA

dwm-statusbar from jasonwryan's and dzen2's website

#!/bin/bash
# Status bar for dwm (see http://jasonwryan.com/)
# colors: \x01 grey; \x02 white; \x04 red; \x05 green; \x06 yellow; 
#         \x07 blue; \x08 magenta; \x09 cyan

print_song_info() {
  song_info="$(ncmpcpp --now-playing '{{{{%a - }%t}}|{%f}}' | head -c 60)"
  if [[ ! $song_info ]]; then
song_info="Not playing"
  fi
echo -e "\x08þ ${song_info}\x01"
}

print_mem_used() {
  mem_used="$(free -m | awk '/buffers\/cache/ {print $3}')"
  echo -e "${mem_used}M"
}


print_last_msg() {
  last_msg="$(cat ~/.irssi_pipe)"
  echo -e "\x06ú ${last_msg}\x01"
}

print_gmail_unread() {
  gmail_unread="$(find ~/.maildir/gmail/inbox/new -type f | wc -l)"
  echo -e "\x06ë $gmail_unread\x01 GM"
}

print_mq_unread() {
  mq_unread="$(find ~/.maildir/mq/inbox/new -type f | wc -l)"
  echo -e "\x06ë $mq_unread\x01 MQ"
}

print_volume() {
  volume="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
  echo -e "\x09Þ ${volume}%\x01"
}

print_datetime() {
  datetime="$(date "+%I:%M:%S %p")"
  echo -e "\x02ð $datetime\x01"
}



# network (see: http://dzen.geekmode.org/dwiki/doku.php?id=dzen:network-meter)
# cpu (see:https://bbs.archlinux.org/viewtopic.php?pid=661641#p661641)
rx_old=$(cat /sys/class/net/eth0/statistics/rx_bytes)
tx_old=$(cat /sys/class/net/eth0/statistics/tx_bytes)

while true; do
  # get new cpu idle and total usage
  eval $(awk '/^cpu /{print "cpu_idle_now=" $5 \
"; cpu_total_now=" $2+$3+$4+$5 }' /proc/stat)
  cpu_interval=$((cpu_total_now-${cpu_total_old:-0}))
  # calculate cpu usage (%)
  let cpu_used="100 * ($cpu_interval - ($cpu_idle_now-${cpu_idle_old:-0})) \
/ $cpu_interval"
  
  # get new rx/tx counts
  rx_now=$(cat /sys/class/net/eth0/statistics/rx_bytes)
  tx_now=$(cat /sys/class/net/eth0/statistics/tx_bytes)
  # calculate the rate (K) and total (M)
  let rx_rate=($rx_now-$rx_old)/1024
  let tx_rate=($tx_now-$tx_old)/1024
  let rx_total=$rx_now/1048576
  let tx_total=$tx_now/1048576

  # output vars
  print_cpu_used() { echo -e "\x07÷ ${cpu_used}%\x01"; }
  print_rx_rate() { echo -e "\x05á ${rx_rate}K\x01"; }
  print_rx_total() { echo -e "${rx_total}M"; }
  print_tx_rate() { echo -e "\x04ß ${tx_rate}K\x01"; }
  print_tx_total() { echo -e "${tx_total}M"; }

  # Pipe to status bar, not indented due to printing extra spaces/tabs
  xsetroot -name "[ $(print_song_info) ]\
[ $(print_cpu_used) $(print_mem_used) ]\
[ $(print_rx_rate) $(print_rx_total)  $(print_tx_rate) $(print_tx_total) ]\
[ $(print_last_msg) ]\
[ $(print_gmail_unread)  $(print_mq_unread) ]\
[ $(print_volume) ]\
[ $(print_datetime) ]"

  # reset old rates
  rx_old=$rx_now
  tx_old=$tx_now
  cpu_idle_old=$cpu_idle_now
  cpu_total_old=$cpu_total_now
  # loop stats every 1 second
  sleep 1
done

Offline

#490 2012-03-19 03:24:41

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

Re: Show off your Dwm configuration!

w0ng wrote:

^i stole it off of pbrisbin smile

updated my toolbar using embedded xbm icons http://ompldr.org/vZDF2dA

dwm-statusbar from jasonwryan's and dzen2's website

I like your config w0ng. Thanks for sharing your stuff.

Offline

#491 2012-03-19 15:14:41

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

Re: Show off your Dwm configuration!

w0ng wrote:

updated my toolbar using embedded xbm icons http://ompldr.org/vZDF2dA

Can you share a patch for xbm icons?

Offline

#492 2012-03-19 23:03:52

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

Re: Show off your Dwm configuration!

@OK100
I don't think there is one for the whole statusbar (only seen the xbm layout patch in the DWM Hackers Unite! thread).
I used Lokaltag's method to embed it into Terminus.
Cumbersome. Only works for a single font and a single fontsize.
Please let us know if there is an xbm statusbar patch out there somewhere.

Offline

#493 2012-03-27 16:15:42

Biowaste
Member
From: Denmark
Registered: 2010-06-22
Posts: 14
Website

Re: Show off your Dwm configuration!

Clean:
Ipgs5s.jpg
Messy:
W4OH0s.png
Config and dotfiles linked to on my home page. It's basically zenburn overdrive in terms of colours and dwm patched with pertag and scratchpad.
Linux history: Fluxbuntu (openbox) > Debian (LXDE) > Debian (awesome) > Arch Linux (awesome) > Arch Linux (dwm). I'd like to try out xmonad at some point.

Last edited by Biowaste (2012-03-27 16:24:52)

Offline

#494 2012-04-07 14:42:11

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

Re: Show off your Dwm configuration!

tZGFoYQ
tZGFoZw

Last edited by OK100 (2012-04-07 14:58:36)

Offline

#495 2012-04-08 10:14:32

DoctorSamulus
Member
Registered: 2010-11-04
Posts: 53

Re: Show off your Dwm configuration!

clean
offC4s.png
quasi-working
09U82s.png
no patches or anything extra, desktop threads are so much fun *_*

Offline

#496 2012-04-15 09:42:50

kuraku
Member
From: planet Earth
Registered: 2012-01-03
Posts: 202

Re: Show off your Dwm configuration!

Repatched dwm last night so i wanted to share desktop. It is pretty much the same always: i use same GTK theme that is edited to match my terminal and dwm colors. I find that his color scheme is looking fantastic when you use f.lux. Dwm patches i use:

- center floating;
- bstack;
- gapless grid;
- no title client on bar (maybe there is better way to do it and this was created with help from #dwm folks @irc.oftc);
- no mouse follow focus;
- status bar on all monitors;
- fix NetActiveWindow clients;
- attach normally;
- panel padding;
...

It is nothing new but i like it so much that i havent changed it for more than 9 months smile

clean:
pp1t4s.png

dirty (terminal):
A7tXBs.png

dirty (gui):
nXjJxs.png


Still searching for one patch that will do what i want and make dwm really great.

Offline

#497 2012-04-15 15:28:03

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

Re: Show off your Dwm configuration!

FInally got this 7in chinese no-name mini-netbook set up. They truly are a real POS but it works and using lightwieght programs it's not that bad..  Fit's in my pocket too...hah 333Mhz ArmV5 cpu and 102mb mem. It came with a 2g NAND but /usr and /var was filling it up pretty quick so I created a symlink to a 4g SD.

DWM
Dillo browser
urxvt
and all the other good tools to have for these things.

t-7in.png


t-yaa.png

irssi
t-irssi.png

dillo
t-dillo.png


||github||

Offline

#498 2012-04-15 17:52:43

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Show off your Dwm configuration!

n1x4 wrote:

FInally got this 7in chinese no-name mini-netbook set up. They truly are a real POS but it works and using lightwieght programs it's not that bad..  Fit's in my pocket too...hah 333Mhz ArmV5 cpu and 102mb mem. It came with a 2g NAND but /usr and /var was filling it up pretty quick so I created a symlink to a 4g SD.

DWM
Dillo browser
urxvt
and all the other good tools to have for these things.

Looks really nice. Who needs an ipad tongue

What did it cost?

Offline

#499 2012-04-15 18:33:19

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

Re: Show off your Dwm configuration!

Lol.. Yea, not an apple fan AT ALL!  When they first came out I beleive they were around $89 USD or so on ebay but I got this one for $50. It's not blazing fast or anything and compiling take quite a while (dwm took about 3-4 minutes and dillo took about an hour). Something else to mess around with I reckon wink


||github||

Offline

#500 2012-04-15 19:05:35

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

Re: Show off your Dwm configuration!

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

Offline

Board footer

Powered by FluxBB