Coder Social home page Coder Social logo

Config file location about gestures HOT 3 CLOSED

natask avatar natask commented on May 28, 2024
Config file location

from gestures.

Comments (3)

natask avatar natask commented on May 28, 2024

The config file should be placed under ~/.config/gestures.conf. It seems your $HOME variable, which is what the ~ character means, is set to /root not /home/$USERNAME. That is why it is placing stuff under /root.

This is caused either by using root shell, which sets HOME variable among other things, or you have something in .profile or .bashrc setting HOME variable to the /root. Can you verify if your HOME variable is set right? If you just want to change it for the install or uninstall script you can run HOME=/path/to/directory ./install.sh.

if everything is setup right, look under /root/.config/gestures.conf. run ls -la ~/.config in terminal and you should be able to see it. The reason you couldn't see it with ls or your file explorer becuase .config directory, like all directories and files that start with a . , is hidden. The way to configure the application is under the customization section of the readme.

from gestures.

Nazat95 avatar Nazat95 commented on May 28, 2024

Thank you for the help. I reinstalled it without using sudo and now the config is in the right place. I read the readme and still finding the syntax to be confusing. For example I use keyboard shortcut ctrl+shift+Right/Left key to switch between desktops. Would it look like this:

'4': { 'l' : {'start': ['evemu_do keydown ctrl', 'evemu_do keydown shift'],'update': {'l': ["evemu_do Left"], 'r': ["evemu_do Right]}, 'end': [], 'rep': ''},

Thanks

from gestures.

natask avatar natask commented on May 28, 2024

You will need to do two things. One is release ctrl and shift when the gesture ends, i.e, when you remove fingers while executing a gesture. Second, you currently need to keep in all the other properties under the update property as empty arrays ([]). I talk about this in Todos section but I see that I should make this explicit in the customization section.

The following should work.

'4' : {'l' : {'start': ['evemu_do keydown ctrl+shift'],'update': {'l': ["evemu_do Left"], 'r': ["evemu_do Right"], 'u': [], 'd': [], 'lu': [], 'rd': [], 'ld': [], 'ru': []}, 'end': ['evemu_do keyup ctrl+shift'], 'rep': ''},

It is much better to keep the config file as it is and just update properties of the config object. This means adding or removing strings (commands) from [] of the properties.

The config syntax is hard to see clearly if the file is not zoomed out as well.

If you have suggestions in improving the README, feel free to comment or pull request.

from gestures.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.