You are not logged in.
Even though I use crunchbang for about two years now, this is my first post.
So it's really nice to meet you all, you're great!
To the point...
So I've made this script ( named toggleTouchpad ) that helps me toggle the synaptics touchpad ON/OFF, which I also placed in my ~/bin folder for my $PATH.
### this a script that uses synaptics driver to switch on/off the touchpad...
#!/bin/bash
STATE=$(synclient | grep TouchpadOff | cut -d = -f2)
if [ $STATE == 1 ]; then
synclient TouchpadOff=0
else
synclient TouchpadOff=1
fiThen I added a shortcut key (Super-p) in the openbox rc.xml file, that executes the above script.
...
<keybind key="W-p">
<action name="Execute">
<name>Toggle TouchPad ON/OFF</name>
<execute>toggleTouchpad</execute>
</action>
</keybind>
...Then it happens: first time I press the combination, everything seems to be working, just like I expected.
But second time I press the shortcut, nothing happens. Feels like the shortcut is dead.
There's also a syndaemon running, with interval 1 sec ( syndaemon -d -K -i 1 ) from the openbox autostart file.
Nevertheless I can confirm that the script is working correctly, no matter how many times I run it through terminal.
What's happening?
Last edited by stratosjack (2013-09-18 20:59:45)
Offline
Not sure if this would be helpful but check out this post. It deals with conky restart script but I think you're running into the same problem (i.e. daemon/script not shutting down properly).
Offline
No luck with conkywonkys here....
I was thinking maybe an option like 'run in terminal' inside rc.xml perhaps?
Offline
I was thinking maybe an option like 'run in terminal' inside rc.xml perhaps?
see if this does the trick...
<keybind key="W-p">
<action name="Execute">
<name>Toggle TouchPad ON/OFF</name>
<execute>terminator --command="toggleTouchpad"</execute>
</action>
</keybind>Last edited by VDP76 (2013-09-18 19:57:36)
#!#!#! Forum etiquette #!#!#!
Are you a new member!? Have you introduced yourself?!
CLI basics | LVM | smxi | chrooting | multiarch
Offline
Yeah, that did the trick, thanks!
We found a workaround, so I guess its solved.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.