You are not logged in.
Hey Forum,
first Part iam new to arch and linux it self so if I have problems with the understanding of things dont kill me ![]()
I use DWM as window manager and I love it, I want to get deeper in the material about linux and dwm works. So what I want to do:
If I want a program automatically start on a specific tag need to get the windows class with xprop so that I can tell dwm who I want to spawn the programm.
So my case is, I love cli programs and I need to create an shell script like .sh to tell kitty start programming xyz with the class xyz. If kitty starts the programm with class xyz dwm knows on which tag I want to spawn it.
I have the script but I don't know who I needs to place it that I can start it per rofi or dmenu.
Chmod +x scriptname.sh is set.
Sry about my rusty English. English is not my nature language.
Thanks for help
Last edited by SWISSMANN (2022-01-25 09:42:12)
Offline
I don't know about rofi, but dmenu searches your $PATH. But I assume this should also work for rofi.
If you already have your script, it is enough to place it in your $PATH. You want to append your custom directory to your $PATH. How you have to do this depends on how you start dwm.
Edit: You could also forego the shell script and implement the functionality inside of dwm, look at the spawn and applyrules functions as a place to start.
Last edited by lmn (2022-01-25 17:19:42)
Offline
Solved by myself.
Offline