You are not logged in.

#1526 2017-09-24 05:42:48

oldgaro
Member
Registered: 2017-09-19
Posts: 6

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

I cant apply a patch that I made(diff -up)

But when applying the patch it says:

can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- config.def_original.h      2015-11-08 20:39:37.000000000 -0200
|+++ config.def.h       2017-09-24 00:36:20.329877587 -0300
--------------------------
File to patch:

https://suckless.org/hacking

Last edited by oldgaro (2017-09-24 05:45:27)

Offline

#1527 2017-09-24 05:46:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 23,353
Website

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

jasonwryan wrote:

this is a hacking, not a general support, thread.

And the error message is pretty self-evident. Read `man patch`.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#1528 2017-09-24 06:28:54

oldgaro
Member
Registered: 2017-09-19
Posts: 6

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

Oh, I see now! a relative path to the config.def.h fixes it!

--- config.def.h	2015-11-08 20:39:37.000000000 -0200
+++ ../config.def.h	2017-09-24 00:36:20.329877587 -0300

Offline

#1529 2017-10-17 10:01:28

qurn
Member
Registered: 2017-10-13
Posts: 2

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

here are my 2 patches for dwm
https://github.com/qurn/dwm-patches

4statusevents
Splits CltStatusText into 4. So you can have different actions for clicks on different locations in the statusbar. E.g. open a Calendar or pavucontrol etc. This patch is very simple. The positions of ClkStatusText1 to Clk..4 are defined in the config.h in pixels from the right.

If this is already done (better) by a patch inform me. The seperation could be done similar to the statuscolors patch. But it already works for me and im quite happy with the little code. Im just throwing the idea in the room.

noNET_SUPPORTING_WM_CHECK
This patch just reverts commit e63bf229485a576d68975dd4eb00c210394133ae from dwm 2016-12-05. With it fullscreen videos in firefox fill the tile and not the screen, like it was before that date.

Maybe this can be done better, as i have no idea what the code actually does. I only don't want this effect of it. Additionally would like to have this behaviour for all programms e.g. vlc and chromium. Does anyone know how to achieve this?
Edit: I figured it out. Added a new smaller patch.
fulltile
Fullscreen just fills the tile

Last edited by qurn (2017-10-17 13:49:04)

Offline

Board footer

Powered by FluxBB