Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-05 Thread Sean MacLennan
On Sat, 5 Jan 2019 15:12:41 -0600 Samuel Holland wrote: > For a single-user laptop or workstation, why does there even need to > be a concept of "logging in"? And why do you need 3-4 layers of > shells running in the background to manage your X session? You've got: > - your login shell > - star

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-05 Thread Samuel Holland
On 01/05/19 13:54, Sean MacLennan wrote: > I almost always run X11... so I want it to startup when I login. > Without a DM, this is how I handle it. For a single-user laptop or workstation, why does there even need to be a concept of "logging in"? And why do you need 3-4 layers of shells running i

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-05 Thread Sean MacLennan
On Sat, 5 Jan 2019 17:09:32 -0200 Caio Barros wrote: > Although I too have a somewhat nostalgic > feeling when typing a command to load the window manager, I don't mind > at all automating it, but for that a DM is not necessary. I almost always run X11... so I want it to startup when I login. Wi

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-05 Thread Silvan Jegen
Hi [2019-01-05 17:09] Caio Barros > > Em sex, 4 de jan de 2019 às 19:42, Markus Wichmann > escreveu: > > > > On Fri, Jan 04, 2019 at 02:17:12PM -0200, Caio Barros wrote: > > > That's it! Yes, I'm unfotunately still runing a display manager: > > > lightdm. I'm slowly getting rid of the bloat [..

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-05 Thread Caio Barros
Em sex, 4 de jan de 2019 às 19:42, Markus Wichmann escreveu: > > On Fri, Jan 04, 2019 at 02:17:12PM -0200, Caio Barros wrote: > > That's it! Yes, I'm unfotunately still runing a display manager: > > lightdm. I'm slowly getting rid of the bloat [...] > > It was never my intention to advise you of h

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Markus Wichmann
On Fri, Jan 04, 2019 at 02:17:12PM -0200, Caio Barros wrote: > That's it! Yes, I'm unfotunately still runing a display manager: > lightdm. I'm slowly getting rid of the bloat [...] It was never my intention to advise you of how bloated or unbloated your system can be. To be honest, I don't know if

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Hadrien Lacour
I had similar problems before (I use startx to start X). They vanished when I put `export PATH=$HOME/bin:$PATH` in my .xinitrc in addition to my .zshenv.

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Caio Barros
Em sex, 4 de jan de 2019 às 10:50, Leonardo Taccari > Maybe that PATH (with the `/home/caio/scripts') is not seen by > dmenu (and probably all other X11 applications invoked from dwm). > This depends how X11 was started. > > (If no other dmenu-s is running and your operating systems support > a pr

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Markus Wichmann
On Fri, Jan 04, 2019 at 10:20:42AM -0200, Caio Barros wrote: > Em qui, 3 de jan de 2019 às 23:22, Martin Tournoij > escreveu: > > > Note there is a typo in that hashbang, > > oops! I was typing as I went :D. Actually in the original script I > didn't add the shebang #!/bin/sh, but I did it now

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Storkman
On January 4, 2019 12:20:42 PM UTC, Caio Barros wrote: >Em qui, 3 de jan de 2019 às 23:22, Martin Tournoij >escreveu: > >> Note there is a typo in that hashbang, > >oops! I was typing as I went :D. Actually in the original script I >didn't add the shebang #!/bin/sh, but I did it now So you di

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Leonardo Taccari
Hello Caio, Caio Barros writes: > [...] > Hum, still doesn't work. If I understand correctly, dwm uses the scipt > dmenu_path to know which are the available commands. When I look to my > ~/.cache folder it doesn't have my scripts in there. Maybe it is the > way I added the folder to path? I think

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Caio Barros
Em qui, 3 de jan de 2019 às 23:22, Martin Tournoij escreveu: > Note there is a typo in that hashbang, oops! I was typing as I went :D. Actually in the original script I didn't add the shebang #!/bin/sh, but I did it now > Just reboot your system if you're unsure. Hum, still doesn't work. If I

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-03 Thread Martin Tournoij
On Fri, Jan 4, 2019, at 14:14, Caio Barros wrote: > #!bin/sh > surf https://duckduckgo.com Note there is a typo in that hashbang, > That works, but for some reason dmenu (+ dwm) doesn't accept this > command. It only works if I type the full directory (i. e. > ~/scripts/duck or /home/caio/scripts

[dev] [dmenu] running shell scripts in dmenu

2019-01-03 Thread Caio Barros
Hi everyone, I have built some simple shell scripts and put tem all on a ~/scripts directory. The directory was already added to PATH so if I'm on a terminal I can just type, for instance: $ duck and that should launch a script wich contains #!bin/sh surf https://duckduckgo.com That works, but