You are not logged in.
Offline
@ Paul-S
what's the bar you are using?
Offline
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?
Offline
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
Offline
How do you get the < "like" in your bar? And what is it called :S
Offline
You may have a look at http://archlinux.me/w0ng/2012/05/01/dwm … statusbar/ Prezioso.
domac [ git ]
Offline
domac, thnx!
Offline
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
pks 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.
Offline
Offline
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
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
[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
^ 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
~/.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
Ah so you don't use the patch. Ok
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
#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
@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)
Offline
^ Oh, thanks. It was actually just out of curiosity 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
Offline
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
JLloyd13: Have you seen Clearlooks? Many color variations.
Last edited by ackt1c (2012-10-19 02:34:45)
Offline
Finally got http://lists.suckless.org/dev/att-11661/dwm-xkblib.diff
in ~/.dwm/src/dwm-6.0 andpatch -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 I was talking about the icons (right now just using the ugly gnome ones) trying out some more icons right now
Offline