Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-10 Thread Michael Hauser
Calvin Morrison writes: 8<--8<-- > > and here it is: > > $ cat modal.sh > list="firefox > chromium > xterm > xterm -e mocp" > v=0 > `for i in $list; do echo $v" "$i; v=$(($v+1)); done | dmenu -l 5 | > sed 's/^[0-9] //g'` > > now it has some kinks, the whole for

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-10 Thread Michael Hauser
Calvin Morrison writes: > make a hidden window, and set the window focus to it? that'd be my > guess. I don't think you can grab two non modifier keys though, < and > > for example probably wouldn't work with the way I am grabbing it. > I'd love too see some code. Yes, I tried to load/unload the g

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-10 Thread Calvin Morrison
On 10 February 2014 18:31, Calvin Morrison wrote: > make a hidden window, and set the window focus to it? that'd be my > guess. I don't think you can grab two non modifier keys though, < and >> for example probably wouldn't work with the way I am grabbing it. > I'd love too see some code. > > A vi

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-10 Thread Calvin Morrison
make a hidden window, and set the window focus to it? that'd be my guess. I don't think you can grab two non modifier keys though, < and > for example probably wouldn't work with the way I am grabbing it. I'd love too see some code. A visual hint could be nice. I definitely see the advantage of a

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-10 Thread Michael Hauser
Calvin Morrison writes: > I'm not sure what you mean by "modal bindings". Do you mean like > executing a hotkey like "Ctrl+:" to jump the hotkey program, then > pressing another key to execute a command? Sorry I'm not sure what you > are saying. > > Calvin Exactly! Use case: one hotkey (in my ca

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-10 Thread Calvin Morrison
I'm not sure what you mean by "modal bindings". Do you mean like executing a hotkey like "Ctrl+:" to jump the hotkey program, then pressing another key to execute a command? Sorry I'm not sure what you are saying. Calvin On 10 February 2014 17:02, Michael Hauser wrote: > Thank you for this littl

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-10 Thread Michael Hauser
Thank you for this little gem! A humble feature request: add the ability to have modal keybindings / modes as in vim(1), etc… Maybe someone with more experience could combine the superb keymodes patch with this? After hacking the code myself a little I am struck at implementing it myself, as the

Re: [dev] UI toolkit 9P-server

2014-02-10 Thread Ramil Farkhshatov
FRIGN wrote: > On Mon, 10 Feb 2014 23:31:38 +0400 > Ramil Farkhshatov wrote: > > > When uifs running just start the `samples/wm` script it will run client > > itself. Without other applications you will see nothing though. > > `samples/wm` is just an example of window manager-ish application an

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread Krol, Willem van de
On Mon, Feb 10, 2014 at 9:11 PM, sin wrote: > Fixed :) Nice, thank you.

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread sin
On Mon, Feb 10, 2014 at 08:53:16PM +0100, Krol, Willem van de wrote: > On Fri, Feb 7, 2014 at 2:02 PM, sin wrote: > > Yes, I realize signalfd() is Linux specific... aw well. > > Why did you choose signalfd() over sigwait()? The only advantage of > signalfd() seems to be poll()-ing or similar acti

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread sin
On Mon, Feb 10, 2014 at 08:53:16PM +0100, Krol, Willem van de wrote: > On Fri, Feb 7, 2014 at 2:02 PM, sin wrote: > > Yes, I realize signalfd() is Linux specific... aw well. > > Why did you choose signalfd() over sigwait()? The only advantage of > signalfd() seems to be poll()-ing or similar acti

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread Krol, Willem van de
On Fri, Feb 7, 2014 at 2:02 PM, sin wrote: > Yes, I realize signalfd() is Linux specific... aw well. Why did you choose signalfd() over sigwait()? The only advantage of signalfd() seems to be poll()-ing or similar actions, which are not used in sinit. Willem

Re: [dev] UI toolkit 9P-server

2014-02-10 Thread FRIGN
On Mon, 10 Feb 2014 23:31:38 +0400 Ramil Farkhshatov wrote: > When uifs running just start the `samples/wm` script it will run client > itself. Without other applications you will see nothing though. > `samples/wm` is just an example of window manager-ish application and > just switches to last e

Re: [dev] UI toolkit 9P-server

2014-02-10 Thread Ramil Farkhshatov
FRIGN wrote: > 1) I started uifs, a black window opens > 2) I start the client, it tells me When uifs running just start the `samples/wm` script it will run client itself. Without other applications you will see nothing though. `samples/wm` is just an example of window manager-ish application an

Re: [dev][ubase][PATCH] alternative - return exit codes like util-linux

2014-02-10 Thread sin
On Mon, Feb 10, 2014 at 09:19:10AM -0500, Carlos Torres wrote: > Hello, > > On 2/10/14, sin wrote: > > So I don't see how or-ing the return values actually does anything. > > It can only be -1 or 0. > > > > Am I missing something here? > > No sir. this patch simply emulates whats wrong with uti

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread Eckehard Berns
On Mon, Feb 10, 2014 at 03:51:40PM +, sin wrote: > On Mon, Feb 10, 2014 at 02:44:11PM +0100, Eckehard Berns wrote: > > On Mon, Feb 10, 2014 at 12:31:59PM +, sin wrote: > > > I just pushed a simple implementation of getty[1] to ubase. Would > > > be nice to see if that works ok with your se

Re: [dev] UI toolkit 9P-server

2014-02-10 Thread FRIGN
On Mon, 10 Feb 2014 14:09:24 +0400 Ramil Farkhshatov wrote: > Correct, you should start uifs server first. 1) I started uifs, a black window opens 2) I start the client, it tells me "Host is not specified" Okay, now which hostname should I pass? Cheers FRIGN -- FRIGN

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread sin
On Mon, Feb 10, 2014 at 02:44:11PM +0100, Eckehard Berns wrote: > On Mon, Feb 10, 2014 at 12:31:59PM +, sin wrote: > > I just pushed a simple implementation of getty[1] to ubase. Would > > be nice to see if that works ok with your setup (and maybe get rid of > > fgetty ;-)). > > I didn't dare

Re: [dev][ubase][PATCH] alternative - return exit codes like util-linux

2014-02-10 Thread Carlos Torres
Hello, On 2/10/14, sin wrote: > So I don't see how or-ing the return values actually does anything. > It can only be -1 or 0. > > Am I missing something here? No sir. this patch simply emulates whats wrong with util-linux's swapon/swapoff. Its not necessary unless you want full compatibility.

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread Eckehard Berns
On Mon, Feb 10, 2014 at 12:31:59PM +, sin wrote: > I just pushed a simple implementation of getty[1] to ubase. Would > be nice to see if that works ok with your setup (and maybe get rid of > fgetty ;-)). I didn't dare to ask if there was a suckless getty :) Thanks for that! I could only test

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread sin
On Sat, Feb 08, 2014 at 11:58:47PM +0100, Eckehard Berns wrote: > On Fri, Feb 07, 2014 at 09:36:01PM +, sin wrote: > > On Fri, Feb 07, 2014 at 09:56:17PM +0100, Eckehard Berns wrote: > > > I tested v0.3 and besides some glitches due to my system everything > > > worked fine. I'm using fgetty (

Re: [dev][ubase][PATCH] alternative - return exit codes like util-linux

2014-02-10 Thread sin
On Sun, Feb 09, 2014 at 09:17:07PM -0500, Carlos Torres wrote: > Hello, > This patch is food for thought. i looked closer at what util-linux > does (ugh) and found that their exit codes are what swapon/swapoff > return. so this is an alternative patch that behaves the same way. I > thought its

Re: [dev] UI toolkit 9P-server

2014-02-10 Thread Ramil Farkhshatov
FRIGN wrote: > On Mon, 10 Feb 2014 13:17:17 +0400 > Ramil Farkhshatov wrote: > > > Thanks. I totally forgot about that [1]. > > 1. https://github.com/gravicappa/9client > > Very nice, thanks! > I specified the location in the script, and the wm-script seems to > connect to the client just fine

Re: [dev] UI toolkit 9P-server

2014-02-10 Thread FRIGN
On Mon, 10 Feb 2014 13:17:17 +0400 Ramil Farkhshatov wrote: > Thanks. I totally forgot about that [1]. > 1. https://github.com/gravicappa/9client Very nice, thanks! I specified the location in the script, and the wm-script seems to connect to the client just fine, but it tells me that it can't c

Re: [dev] UI toolkit 9P-server

2014-02-10 Thread Ramil Farkhshatov
FRIGN wrote: > > Unfortunately, it is far from being suckless, although I'm slowly > > working on it. And some input would be appreciated. > > I cloned your repository and got it to build after tweaking the mkfile > a bit. However, it came to my attention that you probably forgot to add > the cl

Re: [dev] UI toolkit 9P-server

2014-02-10 Thread FRIGN
On Mon, 10 Feb 2014 12:32:39 +0400 Ramil Farkhshatov wrote: > Unfortunately, it is far from being suckless, although I'm slowly > working on it. And some input would be appreciated. Hey Ramil, I cloned your repository and got it to build after tweaking the mkfile a bit. However, it came to my a

[dev] UI toolkit 9P-server

2014-02-10 Thread Ramil Farkhshatov
Hello. I'm making simple UI toolkit[1] which acts as a 9P-server and provides several controls: - text labels, - buttons, - images, - scrollbars, - text entries (I'm thinking about calling external editor), - grid layout manager. For image-based controls it supports several image ope