#Dwm not launching programs

75 messages · Page 1 of 1 (latest)

limpid berry
#

I downloaded DWM and compiled it. It launches fine, but I can't get it to spawn any programs.

I barely touched the config. I changed my terminal to st, and trimmed all the arguments off of dmenu_run. And I changed modkey to Mod4Mask.

I've confirmed both programs are successfully installed.

I peaked into what spawn() is actually doing and I cant figure out what's wrong.

limpid berry
#

The things I listed above, changed dmenu, changes terminal, set mod key

#

The rest of the config hasn't been touched

stark lichen
#

did u verify that ur keybinds arent in conflict

limpid berry
#

Yeah, I never use the super key for non window manager purposes

#

The other keybinds work as far as I can tell

stark lichen
#

ok so by spawning programs are u referring to like dmenu, st, or stuff like firefox or discord

limpid berry
#

So far dmenu and st, I may want to spawn other programs in the future

stark lichen
#

of course

#

alright you need to make sure that those two programs are properly configured to be able to be launched off of the keybinds you’ve chosen

#

im pretty sure it has to do with ur keybindings

#

maybe the path

#

but probably the keybindings

#

if u revert it back to the old keybindings, does it work?

limpid berry
#

I could try

#

No luck

#

Actually wait

#

Huh it's not applying my changes

#

Its compiling to the right place

stark lichen
#

u do run make and restart right?

limpid berry
#

Yeah

stark lichen
#

what the frick

limpid berry
#

I do sudo make clean install

#

The output of make says its installing to the right place

#

Wait

stark lichen
#

did u set ur terminal properly on config.h?

limpid berry
#

Waitwaitwait

#

I was sudoing clean in the same command

#

But I need to clean normally so that config.h gets recompiled

#

All the #defines got backed into the executable

#

Baked*

#

Okay one momeny

stark lichen
#

lol alright hopefully that was the problem

limpid berry
#

Shit

#

Okay I'm gonna try manually deleting config.h

#

So it redefines from config.def.h

#

Shit

#

So

#

Config.h is being changed

#

But it's still not working

#

Let me try just displaying dmenu with some text or something

#

Make sure spawn is working

stark lichen
#

can you make it so that spawn is showing u the output

#

if imma be honest

#

this might be chatgpt moment lol

#

i have only looked at one video of dwm and never actually used it

#

if u cant figure it out and u wanna try something try chatgpt

#

and if ur skeptical of an answer it gave u, fact check it but it should be pretty accurate

limpid berry
#

Pff

#

I've made it this far without touching ai I'm not gonna break my streak over this

stark lichen
#

it really should be something simple LOL

#

like this isnt system breaking or anything, just some debugging

#

it’d be nice if spawn was helping u figure out what to look at

#

what made u choose dwm btw?

#

i feel like with bspwm you would not have to be dealing with this. its a lot simpler to configure in my opinion

limpid berry
#

I'll be honest dwm looked simpler than bspwm

#

Also I'm super familiar with c and the idea of just adding the functionality I want was appealing to me

#

And I think the way bspwm is configured is odd

#

I'd rather configure something using a programming language

stark lichen
#

mm that makes sense

#

in theory it should be simpler since its more minimalist iirc

#

but with bspwm, which is probably the second, if not, most popular twm

#

itll have way more support from the community

#

and its great for scripting

#

u could make a really cool setup

#

anyways let me know how urs ends up

#

im sure youll fix it come morning

limpid berry
#

Maybe, I'll give it a whirl if I truly cant get this to work

stark lichen
#

yes, theres plenty of nice scripts thatll make ur pc look nice

#

and then u can tweak those files to ur liking

limpid berry
#

Welp, I tried adding my own function that interacts with the shell directly and that didnt work eithet

#

So maybe I'll try bspwm

stark lichen
#

heres a pretty cool rice thats very simple to setup