You are not logged in.
i would like to have icons for tag names in dwm. i tried with fonts but it dosn`t work. any idea how to do that?
There is a brief tutorial on the first page of this thread from lokaltog. What isn't working? I made some fonts with icons if you want to try them (terminusmod and tamsynmod). I noticed you use terminus 16. Terminusmod has a 14 and tamsynmod is only 15 for now. Or you can copy some of my icons into your font. It should work (they are the same width). I had to draw mine with bdfedit. I can't figure out how to draw with gbdfed (it crashes when I try to bring up the editor? - maybe you can figure it out). I then cut and pasted the ones I drew into the new font with gbdfed. Just saving it with bdfedit seems to loose some of the original properties. Hope that helps.
Offline
And after making my own fonts or using your fonts and after runing fc-cache -vf and restarting X i can`t use those fonts. They are in Xorg font folder but i cant use them
Offline
You'll have to add something like
xset +fp /usr/share/fonts/local
xset fp rehash
to your .xinitrc
Offline
aperently rebooting solved it
now it`s working.
only one stupit question, where is in tamsynmod the arch logo? on wich key?
Offline
Here's a link to that thread https://bbs.archlinux.org/viewtopic.php?id=129275 . It has a screenshot of the icons.
Offline
thx. i owe you a beer
Offline
Here's a useful trick I discovered while making my DWM statusbar script:
If you're using @stlarch's Tamsynmod font and also want to use some Unicode symbols that the default "fixed" font supports, then specify both fonts in your DWM font definition:
static const char font[] = "-*-tamsynmod-medium-r-*-*-14-*-*-*-*-*-*-*"
","
"-*-fixed-medium-r-*-*-14-*-*-*-*-*-*-*";
Cheers.
Offline
Hello dwm hackers!
Does anybody know how to make dwm to switch to the tag where application is started according to the config "Rules"? viewontag patch works only with already started applications. And there is hint for applications that are launched via dmenu. But these two methods do not suit for applications started through command line or file type associations from file managers. How to do that kind of "shifting"?
Offline
what version of dwm are you using?
Arch64/DWM || My Dropbox referral link
Offline
I'm using dwm 5.9 with several patches.
Offline
you see, dwm 5.9 already has that feature that I find annoying..
Arch64/DWM || My Dropbox referral link
Offline
you see, dwm 5.9 already has that feature that I find annoying..
http://hg.suckless.org/dwm/rev/40ea9ad70440
It is good news for me, but I've tried both vanilla dwm 5.9 and dwm-hg with no avail, no shifting occurs. How should I enable that feature?
Offline
Here is the latest menu patch for dwm-hg, tested and works under Xephyr.
Fancy colors code path isn't tested, but should work.
https://gist.github.com/1293166
If you want to use it with 5.9 instead of hq, just add the motionnotify part manually.
(if someone does this, do kindly post patch for that.)
Some changes such,
- Calculate text width with TEXTW for non XFT fonts,
- Use menu width instead text length for determining mouse area,
- Draw separators using lines, instead of characters.
Offline
Here is the latest menu patch for dwm-hg, tested and works under Xephyr.
Fancy colors code path isn't tested, but should work.http://ompldr.org/vYnNlYg
https://gist.github.com/1293166If you want to use it with 5.9 instead of hq, just add the motionnotify part manually.
(if someone does this, do kindly post patch for that.)Some changes such,
- Calculate text width with TEXTW for non XFT fonts,
- Use menu width instead text length for determining mouse area,
- Draw separators using lines, instead of characters.
Thank you, now I can start from scratch again with dwm (Libreoffice started for its self randomly).
Offline
Can somebody modify pertag2 patch for dwm 6.0? I tried to hand-patch it, but some code is very different in 6.0 (nmaster is now in vanilla dwm).
https://raw.github.com/ok100/dwm/b28137 … rtag2.diff
Offline
I'm using this (pertag2+nbstack) for dwm-hg which ATM is the same as 6.0 release, but it doesn't have a patch for config.h..
Arch64/DWM || My Dropbox referral link
Offline
^^ Thanks, your patch works.
And another thing, tilemovemouse also doesn't work:
==> Starting build()...
patching file dwm.c
patching file dwm.c
patching file dwm.c
Hunk #1 succeeded at 120 (offset 2 lines).
Hunk #2 succeeded at 189 (offset 2 lines).
Hunk #3 succeeded at 769 (offset -7 lines).
Hunk #4 succeeded at 815 (offset -7 lines).
patching file config.mk
patching file dwm.c
Hunk #1 succeeded at 101 (offset 2 lines).
Hunk #2 succeeded at 764 (offset -16 lines).
Hunk #3 succeeded at 1684 (offset 68 lines).
Hunk #4 succeeded at 2130 (offset 98 lines).
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -O2 -I. -I/usr/include -I/usr/include/X11 -DVERSION="6.0" -DXINERAMA
LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
CC = cc
CC dwm.c
In file included from config.h:167:0,
from dwm.c:303:
tilemovemouse.c: In function ‘tilemovemouse’:
tilemovemouse.c:32:2: warning: implicit declaration of function ‘ptrtomon’ [-Wimplicit-function-declaration]
tilemovemouse.c:32:8: warning: assignment makes pointer from integer without a cast [enabled by default]
tilemovemouse.c:60:5: warning: implicit declaration of function ‘INRECT’ [-Wimplicit-function-declaration]
dwm.c: At top level:
dwm.c:932:1: warning: ‘focusmon’ defined but not used [-Wunused-function]
dwm.c:1393:1: warning: ‘quit’ defined but not used [-Wunused-function]
dwm.c:1756:1: warning: ‘tagmon’ defined but not used [-Wunused-function]
dwm.c:1800:1: warning: ‘togglebar’ defined but not used [-Wunused-function]
CC -o dwm
dwm.o: In function `tilemovemouse':
dwm.c:(.text+0x4d3c): undefined reference to `ptrtomon'
dwm.c:(.text+0x5006): undefined reference to `INRECT'
collect2: ld returned 1 exit status
make: *** [dwm] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Offline
You can find details about ptrtomon => recttomon and INRECT => INTERSECT here.
I don't use that patch so good luck with that.
Arch64/DWM || My Dropbox referral link
Offline
I'm not sure about these two lines:
if((m = ptrtomon(c->x + c->w / 2, c->y + c->h / 2)) != selmon) {
changed to:
if((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) {
else if(INRECT(x, y, d->x, d->y, d->w+2*borderpx, d->h+2*borderpx)){
changed to:
else if(INTERSECT(x, y, d->w+2*borderpx, d->h+2*borderpx, m)){
Now it compiles, but don't work (windows moves randomly, and flickers while moving).
Last edited by OK100 (2012-04-05 19:42:14)
Offline
Well, anybody who shied away from dwm because of floating window oddities and fullscreen games crapping out need no longer worry, dwm 6 seems to have sorted it! Tried some games that were problematic before and they work just fine now.
Fiddling with uselessgaps and statuscolors for 6.0 atm.
Offline
Finally! I'll try it right away!
Supermeatboy still goes bananas in fullscreen I'm using jokerboy's patches
Last edited by el mariachi (2011-12-20 14:25:48)
Offline
^^^ Here is updated patch if anyone is interested:
https://github.com/ok100/dwm/blob/maste … ovemouse.c
Last edited by OK100 (2011-12-20 15:58:19)
Offline
Finally! I'll try it right away!
Supermeatboy still goes bananas in fullscreen I'm using jokerboy's patches
Try using one patch at a time to identify the patch which is causing that issue. Feel free to give some feedback regarding this, maybe someone will find a fix for your issue.
Arch64/DWM || My Dropbox referral link
Offline
Finally! I'll try it right away!
Supermeatboy still goes bananas in fullscreen I'm using jokerboy's patches
Meh, that's a shame
Games I've tested fullscreen so far that crapped out on 5.9
Amnesia-tdd
ScummVM
Mupen64plus
Dolphin-Emu
All seem fine now.
As for patching, my usual non coder approach of trying to wedge in patches that won't patch manually isn't working too well at all, I guess some functions have been totally reworked and some patches will need the same treatment.
Offline