Re: [dev] syntog - toggle synaptics touchpad

2012-12-25 Thread Chris Hall
if you have synclient installed then enabling is synclient TouchpadOff=0 and disabling is synclient TouchpadOff=1 you can read the state via synclient -l I have a few lines of sh bound to mod-n to toggle. I really don't think this needs to be written in c considering it is just a few lines of sh,

[dev] dev+unsubscribe-dig...@suckless.org

2012-12-25 Thread Johny Why
dev+unsubscribe-dig...@suckless.org

Re: [dev] syntog - toggle synaptics touchpad

2012-12-25 Thread Comrade DOS
2012/12/25 Chris Hall > if you have synclient installed then enabling is synclient TouchpadOff=0 > and disabling is synclient TouchpadOff=1 > > you can read the state via synclient -l > I have a few lines of sh bound to mod-n to toggle. > > I really don't think this needs to be written in c consi

Re: [dev] syntog - toggle synaptics touchpad

2012-12-25 Thread Chris Hall
On Wed, Dec 26, 2012 at 7:52 AM, Comrade DOS wrote: > Next time plz read thread before write answer. ;) I did read the thread before I wrote my reply I was merely pointing out that there is an easier way, saying 'shell scripting' doesn't tell anyone anything useful. ~cjhexplain anything

Re: [dev] dev+unsubscribe-dig...@suckless.org

2012-12-25 Thread Chris Hall
On Wed, Dec 26, 2012 at 7:30 AM, Johny Why wrote: > dev+unsubscribe-dig...@suckless.org You send a message to that address (body isn't important). ~cjh

Re: [dev] syntog - toggle synaptics touchpad

2012-12-25 Thread Peter A. Shevtsov
On 25/12/12 at 09:51pm, Chris Hall wrote: > if you have synclient installed then enabling is synclient TouchpadOff=0 > and disabling is synclient TouchpadOff=1 > > you can read the state via synclient -l > I have a few lines of sh bound to mod-n to toggle. > > I really don't think this needs to b

Re: [dev] syntog - toggle synaptics touchpad

2012-12-25 Thread Chris Hall
On Wed, Dec 26, 2012 at 4:04 PM, Peter A. Shevtsov wrote: > that xssstate is redundant in your perfect world where xautolock and xidle > exists! The latter 2 suck hard, xssstate is useful in scripting and allows me to keep using slock. You seem to have taken me mentioning alternatives as some kin

Re: [dev] [dwmstatus] Mail counter

2012-12-25 Thread Chris Hall
On Sat, Dec 22, 2012 at 9:22 AM, Kurt Van Dijck wrote: > b) man 3 asprintf >will eliminate 1/3 of your code afaik asprintf is a gnu extension and isn't posix, although it seems that both uclib and musl support it. ~cjh

Re: [dev] [dwmstatus] Mail counter

2012-12-25 Thread Christoph Lohmann
Greetings. On Wed, 26 Dec 2012 08:29:24 +0100 Chris Hall wrote: > On Sat, Dec 22, 2012 at 9:22 AM, Kurt Van Dijck wrote: > > b) man 3 asprintf > >will eliminate 1/3 of your code > > afaik asprintf is a gnu extension and isn't posix, > although it seems that both uclib and musl support it.