You are not logged in.

#1 2015-11-18 07:01:02

Ocypheum
Member
Registered: 2015-09-26
Posts: 58

[Solved] dwm changes to config.h no longer included in makepkg -efi

By default, dwm uses the key combo MODKEY|ShiftMask + XK_Return to spawn a terminal and MODKEY + XK_Return to switch the current window to the master (zoom).

I changed zoom to MODKEY + XK_z so I could use MODKEY + XK_Return to spawn a terminal. However, when I press the keys to spawn a terminal nothing happens. My other key combos all work, including zoom.

Pastie if it helps.

Last edited by Ocypheum (2015-11-22 05:56:33)

Offline

#2 2015-11-18 10:30:51

c0mm0ner
Member
Registered: 2015-11-09
Posts: 93

Re: [Solved] dwm changes to config.h no longer included in makepkg -efi

Stupid question: does your termcmd work when you invoke it eg via dmenu?

Offline

#3 2015-11-18 18:26:26

Ocypheum
Member
Registered: 2015-09-26
Posts: 58

Re: [Solved] dwm changes to config.h no longer included in makepkg -efi

c0mm0ner wrote:

Stupid question: does your termcmd work when you invoke it eg via dmenu?

Not a stupid question. But yes it does.

Offline

#4 2015-11-18 19:21:22

Ocypheum
Member
Registered: 2015-09-26
Posts: 58

Re: [Solved] dwm changes to config.h no longer included in makepkg -efi

I figured out what's going on by comparing the previous PKGBUILD file to the updated version. In particular, the following lines were moved out of the build function and into the prepare function:

cd $srcdir/$pkgname-$pkgver
cp $srcdir/config.h config.h

Usually, when I want to change a key binding or something, I edit config.h and run

makepkg -efi

This used to work, but according to `man pkgbuild` the prepare function is not executed if the -e (or --noextract) parameter is used:

An optional prepare() function can be specified in which operations to prepare the sources for building, such as patching, are performed. This function is run after the source extraction and before the build() function. The prepare() function is skipped when source extraction is skipped.

I updated the wiki since it recommended using the -e parameter. I updated the title of this thread as well. It should probably be moved to the package upgrade issues subforum.

Last edited by Ocypheum (2015-11-18 19:36:06)

Offline

#5 2015-11-21 18:28:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,720

Re: [Solved] dwm changes to config.h no longer included in makepkg -efi

Moved.   I had a request to move this to "Pacman and Package Upgrade Issues".   That is not quite where it belongs, go I moved it to "Applications and Desktop Environments"


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2015-11-22 05:55:37

Ocypheum
Member
Registered: 2015-09-26
Posts: 58

Re: [Solved] dwm changes to config.h no longer included in makepkg -efi

Well, I perceived it as an issue with a package upgrade, not specifically related to pacman.

It's fine.

Thanks.

Last edited by Ocypheum (2015-11-22 05:56:17)

Offline

Board footer

Powered by FluxBB