You are not logged in.

#451 2011-11-12 14:44:16

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: DWM Hackers Unite! Share (or request) dwm patches.

lutherus wrote:

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

#452 2011-11-12 17:25:18

lutherus
Member
From: Croatia;Varaždin
Registered: 2011-03-17
Posts: 150

Re: DWM Hackers Unite! Share (or request) dwm patches.

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


I`m not a nerd.I`m a level 55   dwarf monk-psychic ninja ;-)

my github

Offline

#453 2011-11-12 17:48:48

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: DWM Hackers Unite! Share (or request) dwm patches.

You'll have to add something like

xset +fp /usr/share/fonts/local
xset fp rehash

to your .xinitrc

Offline

#454 2011-11-12 18:01:58

lutherus
Member
From: Croatia;Varaždin
Registered: 2011-03-17
Posts: 150

Re: DWM Hackers Unite! Share (or request) dwm patches.

aperently rebooting solved it tongue
now it`s working.
only one stupit question, where is in tamsynmod the arch logo? on wich key?


I`m not a nerd.I`m a level 55   dwarf monk-psychic ninja ;-)

my github

Offline

#455 2011-11-12 18:10:18

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: DWM Hackers Unite! Share (or request) dwm patches.

Here's a link to that thread https://bbs.archlinux.org/viewtopic.php?id=129275 . It has a screenshot of the icons.

Offline

#456 2011-11-12 18:36:51

lutherus
Member
From: Croatia;Varaždin
Registered: 2011-03-17
Posts: 150

Re: DWM Hackers Unite! Share (or request) dwm patches.

thx. i owe you a beer


I`m not a nerd.I`m a level 55   dwarf monk-psychic ninja ;-)

my github

Offline

#457 2011-11-20 21:07:10

sunaku
Member
From: /dev/tty
Registered: 2010-09-29
Posts: 140
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#458 2011-12-07 18:09:15

Next7
Member
Registered: 2011-12-07
Posts: 44

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#459 2011-12-07 18:24:45

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

what version of dwm are you using?

Offline

#460 2011-12-07 19:10:50

Next7
Member
Registered: 2011-12-07
Posts: 44

Re: DWM Hackers Unite! Share (or request) dwm patches.

I'm using dwm 5.9 with several patches.

Offline

#461 2011-12-07 19:13:11

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

you see, dwm 5.9 already has that feature that I find annoying..

http://hg.suckless.org/dwm/rev/40ea9ad70440

Offline

#462 2011-12-08 16:11:46

Next7
Member
Registered: 2011-12-07
Posts: 44

Re: DWM Hackers Unite! Share (or request) dwm patches.

JokerBoy wrote:

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

#463 2011-12-17 20:49:36

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: DWM Hackers Unite! Share (or request) dwm patches.

Here is the latest menu patch for dwm-hg, tested and works under Xephyr.
Fancy colors code path isn't tested, but should work.

vYnNlYg
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

#464 2011-12-17 22:10:42

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

Cloudef wrote:

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/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.

Thank you, now I can start from scratch again with dwm (Libreoffice started for its self randomly).

Offline

#465 2011-12-19 17:04:48

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#466 2011-12-19 17:09:26

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

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..

Offline

#467 2011-12-19 17:34:16

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

^^ 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

#468 2011-12-19 17:48:21

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

You can find details about ptrtomon => recttomon and INRECT => INTERSECT here.

I don't use that patch so good luck with that.

Offline

#469 2011-12-19 19:36:52

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#470 2011-12-20 00:49:32

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

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.


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

Offline

#471 2011-12-20 12:49:47

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

Finally! big_smile I'll try it right away!
Supermeatboy still goes bananas in fullscreen sad I'm using jokerboy's patches

Last edited by el mariachi (2011-12-20 14:25:48)

Offline

#472 2011-12-20 15:58:03

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

^^^ 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

#473 2011-12-20 17:38:01

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

el mariachi wrote:

Finally! big_smile I'll try it right away!
Supermeatboy still goes bananas in fullscreen sad 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. smile

Offline

#474 2011-12-20 22:51:32

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

el mariachi wrote:

Finally! big_smile I'll try it right away!
Supermeatboy still goes bananas in fullscreen sad I'm using jokerboy's patches

Meh, that's a shame hmm

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.


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

Offline

#475 2011-12-22 21:34:57

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

Re: DWM Hackers Unite! Share (or request) dwm patches.

JokerBoy, do you know why I see one border on my second monitor when i´m using monocle_no_borders.diff?

Offline

Board footer

Powered by FluxBB