Skip to content
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

Trouble with <on>begin-and-end</on> #672

Open
Penguin-Guru opened this issue Dec 4, 2024 · 0 comments
Open

Trouble with <on>begin-and-end</on> #672

Penguin-Guru opened this issue Dec 4, 2024 · 0 comments

Comments

@Penguin-Guru
Copy link

Penguin-Guru commented Dec 4, 2024

I could be misunderstanding how this is supposed to work but it seems like the TOUCHEGG_GESTURE_ON variable is not being set. My script is executed a few times but when I try to log output including the variable's value, the value seems to be empty. Is this expected? I have tried this without specifying repeat and with specifying repeat as both true and false. My operating system is Linux and I compiled Touchegg without SystemD.

<gesture type="SWIPE" fingers="2" direction="UP">
    <action type="RUN_COMMAND">
        <repeat>false</repeat>
        <on>begin-and-end</on>
        <command>toggle-drag-window</command>
    </action>
</gesture>
#!/bin/bash

if [ -z ${TOUCHEGG_GESTURE_ON+x} ]; then
    is_set=unset
else
    is_set=set
fi
logger -p daemon.debug "TOUCHEGG_GESTURE_ON ($is_set) = $TOUCHEGG_GESTURE_ON"

if [[ "$TOUCHEGG_GESTURE_ON" == 'begin' ]]; then
    xdotool keyup super keydown super
elif [[ -z "$TOUCHEGG_GESTURE_ON" || "$TOUCHEGG_GESTURE_ON" == 'end' ]]; then
    xdotool keyup super
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant