You are not logged in.

#1 2013-08-12 07:06:01

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Script works through commandline, but not xmonad

Hey,

I have a simple script to disable the trackpad.
When I run it through zsh it works fine, and the same with dmenu.
The script is in /usr/bin

I have a keybinding to it through xmonad, but I can't get it working.
The other keybind I have works fine.

Script here -> http://codepad.org/em4An3EF
Xmonad.hs here -> http://codepad.org/jC7li4Nj

Thanks.

Offline

#2 2013-08-13 20:05:46

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 326

Re: Script works through commandline, but not xmonad

I don't use xmonad but I had a similar issue running a script from a key binding in awesomewm & I fixed it by prefixing the call to it with:

bash -c /path/to/script

so your's would be:

"M-m", spawn "bash -c trackpad-toogle.sh"

give it a go it may work smile

Last edited by t0m5k1 (2013-08-13 20:07:19)


Aurora R10 (0TYR0X) - Ryzen 7 5800X - 16GB - RX6700XT 12GB - Hyprland (occasionally XFCE) - AOC Q27G3XMN 1440P
EFI Stub Boot
PROUD XLIBRE USER
Linux User: 401820  Steam-Reddit

Offline

#3 2013-08-14 16:14:08

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Re: Script works through commandline, but not xmonad

t0m5k1 wrote:

I don't use xmonad but I had a similar issue running a script from a key binding in awesomewm & I fixed it by prefixing the call to it with:

bash -c /path/to/script

so your's would be:

"M-m", spawn "bash -c trackpad-toogle.sh"

give it a go it may work smile

Aah no luck. Still not responding : /

Offline

Board footer

Powered by FluxBB