You are not logged in.

#626 2012-08-25 11:31:18

Paul-S
Member
From: Wales
Registered: 2008-02-04
Posts: 343

Re: Show off your Dwm configuration!

tZjhldg.jpg

tZjhkdw.jpg

Cheers
Paul-S

Last edited by Paul-S (2012-08-25 11:35:08)

Offline

#627 2012-08-26 06:20:07

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 3,424
Website

Re: Show off your Dwm configuration!

@ Paul-S

what's the bar you are using?

Offline

#628 2012-08-26 06:46:03

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,329
Website

Re: Show off your Dwm configuration!

As always, really nice.

I particularly like the font: does the zero bother you at all? That's why I use the {slashed,dotted} variant.

Also, after having a look through your github; have you looked at surfraw to handle all your custom searches?


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#629 2012-08-26 09:58:44

Paul-S
Member
From: Wales
Registered: 2008-02-04
Posts: 343

Re: Show off your Dwm configuration!

x33a the bar is dzen2 and conky.

jasonwryan I'd never really thought about the zero, so I guess it doesn't bother me. But surfraw is exactly what I been looking for the searches, thanks.

Cheers
Paul-S

Offline

#630 2012-08-28 16:27:13

simon.swe
Member
From: sverige
Registered: 2012-02-26
Posts: 148
Website

Re: Show off your Dwm configuration!

rlMHM

Offline

#631 2012-08-28 17:00:02

Prezioso
Member
Registered: 2011-01-17
Posts: 77

Re: Show off your Dwm configuration!

How do you get the < "like" in your bar? And what is it called :S

Offline

#632 2012-08-28 17:03:22

domac
Member
Registered: 2012-08-06
Posts: 102

Re: Show off your Dwm configuration!


domac [ git ]

Offline

#633 2012-08-28 17:10:31

Prezioso
Member
Registered: 2011-01-17
Posts: 77

Re: Show off your Dwm configuration!

domac, thnx!

Offline

#634 2012-09-23 03:22:49

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: Show off your Dwm configuration!

May be a little off topic, but is that vim on the left with the green N? If so, could you share your configuration for that bottom bar? Seems like the molokai (monokai) theme, so I already know that one ;D

Offline

#635 2012-09-23 09:24:54

kaptenen
Member
Registered: 2009-12-06
Posts: 266
Website

Re: Show off your Dwm configuration!

brandon88tube wrote:

May be a little off topic, but is that vim on the left with the green N? If so, could you share your configuration for that bottom bar? Seems like the molokai (monokai) theme, so I already know that one ;D

It's the plugin vim-powerline. smile

Offline

#636 2012-09-27 08:56:10

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,329
Website

Re: Show off your Dwm configuration!

8029022676_ac6e4a790a_t.jpg

...the usual.


# edit: now with bonus screencast http://www.youtube.com/watch?v=GQ5s6T25jCc


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#637 2012-10-01 21:35:19

JLloyd13
Member
From: halifax, nova scotia
Registered: 2012-06-24
Posts: 107

Re: Show off your Dwm configuration!

2012_10_01_182938_1280x1024_scrot.jpg

haven't gotten that far into customizing it yet, I'm only a recent convert smile

Offline

#638 2012-10-15 17:57:52

pks
Member
From: Germany
Registered: 2012-07-20
Posts: 110

Re: Show off your Dwm configuration!

Here's a new version of my desktop. I reworked my tag-bar which now displays the client-count for each tag. Additionally window titles are drawn centered now.

2012_10_15_195056_3080x1050_scrot.jpg

Offline

#639 2012-10-15 18:02:23

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,474
Website

Re: Show off your Dwm configuration!

pks wrote:

Here's a new version of my desktop. I reworked my tag-bar which now displays the client-count for each tag. Additionally window titles are drawn centered now.

http://s12.postimage.org/k2fagprl5/2012_10_15_195056_3080x1050_scrot.jpg

Can I see your patches?


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

#640 2012-10-15 18:05:08

pks
Member
From: Germany
Registered: 2012-07-20
Posts: 110

Re: Show off your Dwm configuration!

Unia wrote:
pks wrote:

Here's a new version of my desktop. I reworked my tag-bar which now displays the client-count for each tag. Additionally window titles are drawn centered now.

http://s12.postimage.org/k2fagprl5/2012_10_15_195056_3080x1050_scrot.jpg

Can I see your patches?

Here's a link to my Bitbucket repository. I didn't take care of any backwards compatibility but I guess some patches should be easily extractable from commit history.

Last edited by pks (2012-10-15 18:06:01)

Offline

#641 2012-10-18 10:48:26

ackt1c
Member
From: Visalia, California
Registered: 2012-10-10
Posts: 215

Re: Show off your Dwm configuration!

TM1Kl.png[replaced]
turned out nice, set BOTTOM_BAR_HEIGHT for conky. set dwm restart without exiting, still looking for ways to move tiles and set focus, and having trouble with XF86audio/.Xmodmap; but i'll figure it out.

moderator edit: Welcome to the forums. The image is too large. I have replaced it with a link for you this time. Please read Forum Etiquette: Pasting Pictures and Code and screenshot posting rules. Thanks. --fsckd

Last edited by ackt1c (2012-10-18 14:44:39)

Offline

#642 2012-10-18 11:30:21

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,474
Website

Re: Show off your Dwm configuration!

^ I recall seeing a patch once that enabled restart without exit. Are you using that, or are you using a loop to start DWM in? If it's the patch, can you share?

And here's what I use for volume. The keycodes can be found using xev:

static const char *volup[]    = { "amixer", "-q", "sset", "Master", "5%+", "unmute", NULL };
static const char *voldown[]  = { "amixer", "-q", "sset", "Master", "5%-", "unmute", NULL };
static const char *volmute[]  = { "amixer", "-q", "sset", "Master", "toggle", NULL };
...
    { 0,                            0x1008ff13,      spawn,          {.v = volup } },
    { 0,                            0x1008ff11,      spawn,          {.v = voldown } },
    { 0,                            0x1008ff12,      spawn,          {.v = volmute } },

EDIT: Oh, and you might wanna resize your screenshot to thumbnail size and link that to the bigger picture.

Last edited by Unia (2012-10-18 11:30:55)


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

#643 2012-10-18 14:23:18

ackt1c
Member
From: Visalia, California
Registered: 2012-10-10
Posts: 215

Re: Show off your Dwm configuration!

~/.xinitrc

if [ -f $HOME/.Xmodmap ]; then
    /usr/bin/xmodmap $HOME/.Xmodmap
fi

exec /bin/startdwm

/bin/startdwm

#!/bin/bash
#this file is called by .xinitrc to start some nice apps for dwm

conky -x 0 -y 0 -d 

feh --bg-scale /usr/share/wallpapers/garner.jpg

#set chromium as default browser
if [ -n "$DISPLAY" ]; then
     BROWSER=chromium
fi

while true; do
    # Log stderror to a file 
    dwm 2> ~/.dwm.log
    # No error logging
    #dwm >/dev/null 2>&1
    xsetroot -name "$(date +"%a %b %d %r")"
    sleep 1m
done

dwm

dwm respawns after 1 minute using alt + shft + Q
killall startdwm -> exit.

Still confused on those Volume Keys, with xev I found ~/.Xmodmap does define the correct key, they are just unresponsive. Maybe this means something

CC dwm.c
dwm.c: In function ‘keypress’:
dwm.c:1087:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]

Last edited by ackt1c (2012-10-18 14:58:47)

Offline

#644 2012-10-18 15:00:03

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,474
Website

Re: Show off your Dwm configuration!

Ah so you don't use the patch. Ok smile

I don't know why you are using Xmodmap. I don't use that and my keys work fine. Just run xev in your terminal, move the mouse in the white square it creates and press your volume buttons. Output will be similar to this:

KeyPress event, serial 29, synthetic NO, window 0x1200001,
    root 0xa8, subw 0x1200002, time 4160041, (30,48), root:(716,69),
    state 0x0, keycode 65 (keysym 0x20, space), same_screen YES,
    XLookupString gives 1 bytes: (20) " "
    XmbLookupString gives 1 bytes: (20) " "
    XFilterEvent returns: False

You will want the value keycode. Then just take my part of config.h and substitute those keycodes. It should work.
You can fix the warning using this patch: https://github.com/Unia/DWM-XFT/blob/ma … m_fix.diff I don't think it's causing this, though.

Lastly, makepkg is a part of ABS. I used ABS to get the source files for building DWM once. I moved those to a directory in my $HOME ($HOME/abs/dwm) and built and compile in there:

# abs community/dwm
$ cp -r /var/abs/community/dwm $HOME/abs/
$ cd $HOME/abs/dwm
.... edit and patch .....
$ makepkg -g >> PKGBUILD
$ makepkg -o
$ makepkg -efi

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

#645 2012-10-18 15:43:24

ackt1c
Member
From: Visalia, California
Registered: 2012-10-10
Posts: 215

Re: Show off your Dwm configuration!

#include <X11/XF86keysym.h>
static const char *volup[]    = { "amixer", "-q", "sset", "Master", "5%+", "unmute", NULL };
static const char *voldown[]  = { "amixer", "-q", "sset", "Master", "5%-", "unmute", NULL };
static const char *volmute[]  = { "amixer", "-q", "sset", "Master", "toggle", NULL };
static Key keys[] = {
	{ 0,                            XF86XK_AudioRaiseVolume,      spawn,        {.v = volup } },
	{ 0,                            XF86XK_AudioLowerVolume,      spawn,        {.v = voldown } },
	{ 0,                            XF86XK_AudioMute,      spawn,        {.v = volmute } },

Works, now just for moving these tiles and setting focus.

Last edited by ackt1c (2012-10-18 16:13:14)

Offline

#646 2012-10-18 20:45:08

ivoarch
Member
From: the six feet under the ground
Registered: 2011-03-31
Posts: 436

Re: Show off your Dwm configuration!

@unia   
try this patch

void                                                                                                                          
+restart(const Arg *arg) {                                                                                                     
+       if (arg->v) {                                                                                                          
+              execvp(((char **)arg->v)[0], (char **)arg->v);                                                                  
+       } else {                                                                                                               
+              execlp("dwm", "dwm", NULL);                                                                                     
+       }                                                                                                                      
+}                                                                                                                             
+                                                                                                                              
+                                                                                                                              
+void                             

in config.h

{ MODKEY|ShiftMask,             XK_r,      restart,        {0} },  

Last edited by ivoarch (2012-10-18 20:47:50)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#647 2012-10-18 21:23:01

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,474
Website

Re: Show off your Dwm configuration!

^ Oh, thanks. It was actually just out of curiosity smile I think the loop is simpler and just as effective.


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

#648 2012-10-18 23:42:48

JLloyd13
Member
From: halifax, nova scotia
Registered: 2012-06-24
Posts: 107

Re: Show off your Dwm configuration!

2012_10_18_203336_1280x1024_scrot.png
2012_10_18_203657_1280x1024_scrot.png

I am switching back and forth between dwm and openbox daily, but anyway here is dwm. at the moment just looking around for a better icon theme to go with the brown and improve the lua code in conky as it is a little leaky

Offline

#649 2012-10-18 23:56:56

ackt1c
Member
From: Visalia, California
Registered: 2012-10-10
Posts: 215

Re: Show off your Dwm configuration!

Finally got http://lists.suckless.org/dev/att-11661/dwm-xkblib.diff
in ~/.dwm/src/dwm-6.0 and

patch -p1 < dwm-x*

worked. The others I tried all failed; but now I can't killall startdwm and exit to bash successfully, just blanks, but that's a fglrx/x problem sad

JLloyd13: Have you seen Clearlooks? Many color variations.

Last edited by ackt1c (2012-10-19 02:34:45)

Offline

#650 2012-10-19 00:04:43

JLloyd13
Member
From: halifax, nova scotia
Registered: 2012-06-24
Posts: 107

Re: Show off your Dwm configuration!

ackt1c wrote:

Finally got http://lists.suckless.org/dev/att-11661/dwm-xkblib.diff
in ~/.dwm/src/dwm-6.0 and

patch -p1 < dwm-x*

worked. The others I tried all failed.

JLloyd13: Have you seen Clearlooks? Many color variations.

that is indeed the gtk theme I'm using, a clearlooks color variation, so yeah, i've seen it smile I was talking about the icons (right now just using the ugly gnome ones) trying out some more icons right now

Offline

Board footer

Powered by FluxBB