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

How do you use keybinds? #206

Open
ghost opened this issue Jul 30, 2023 · 0 comments
Open

How do you use keybinds? #206

ghost opened this issue Jul 30, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 30, 2023

Title says it all. I understand that this is an inappropriate space for something like this, but there is no discussions page so I had to make do with this.

I have a function func_binds which is supposed to check e.binding.symbol for the matching key, and if it find the key it will make the window effectively fullscreen. This is how I have it implemented

# Define binds
def func_binds(i3, e):
    # Fullscreen
    if e.binding.symbol	== f"{MOD}+Shift+Up":
        # Run i3 commands
        i3.command(f"resize set {WIDTH} {HEIGHT}")
        i3.command("move absolute 0 0")

# Connect key press
i3.on('binding', func_binds)

When I run it I get no errors but nothing happens, so what am I doing wrong?

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

0 participants