-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get command() to work #243
Comments
Thanks for the reply. Really loving your program. Thanks for making it!!! I tried that and it still did nothing. Can't seem to get it to work with any command. Tried with notify-send, rofi and various others, but nothing seems to run. I am using Fedora. When I check /bin/sh it is simlinked to bash. Would that make any difference? |
Thanks. To clarify, are you suggesting:
doesn't create /tmp/test when tab is pressed? If so, please run the following and post the output after trying to execute a command:
|
It did not work. I set up your: [main] and I also had [calc] I ran your debug command and the rofi menu appeared. I had to hit escape a few times to get rid of it. I then hit a few keys, including the tab and then trying ralt followed by q. Got the following (I am using linux on an old MacBook Pro):
|
Please post the full output of rofi is a bad test program since it relies on If your goal is to launch graphical programs from keyd I would strongly discourage this for reasons I have already outlined in the referenced links. The reason it worked in this case is because keyd inherited your session variables, in general you cannot rely on this. |
OK. Thanks. I will use my window manager instead. I just thought it would be nice to include it as a layer. Here is my config file and thanks again! [ids] [main] tab = command(echo "Tab pressed" > /tmp/test) One shot the control, meta etcNB oneshot is a mode where you can tap the key and it will allow forone click on that layershift = oneshot(shift) Maps capslock to escape when pressed and control when held.capslock = overload(control, esc) Remaps the escape key to capslockesc = capslock rightalt = toggle(calc) [calc] n = 1 |
Please surround command output in backticks (```), otherwise github will render it as markdown. In your earlier post you wrote According to the log output (parsing error on line 7), you tested the first one, which is probably why it didn't work. Does the issue still occur with the config you actually posted? If so, it is a bug, and I would appreciate your help in fixing it (even if you don't end up using the feature). |
I'm treating this as a configuration error. Feel free to reopen it if you can reproduce the problem using the config I posted. |
When I remap anything to command, nothing happens.
Here is an example of my default.conf:
[ids]
[main]
Remaps the escape key to capslock
esc = capslock
rightalt = toggle(calc)
[calc]
e = command("ls")
q = command(echo "here" &> ~/temp/err.txt)
The text was updated successfully, but these errors were encountered: