|
i have a special mode for qemu virtual machines. i don't want any of my regular keybindings to work when i'm in this mode. it looks like this i designate the 5th workspace for the virtual machines, so i have this in my config but it doesn't work? i also tried listing all workspaces but 5, instead of "workspace=all" to the same result inb4 "how do you switch to a different workspace without keybindings?" this is a laptop, so i have libinput-gestures installed and configured in such a way that a swipe right/left gets me to next/previous workspace |
Answered by
ghost
Dec 1, 2024
Replies: 1 comment 2 replies
|
i wrote a tiny program #!/usr/bin/env python3
from i3ipc.aio import Connection
import asyncio
import time
async def main():
i3 = await Connection().connect()
tree = await i3.get_tree()
focused = tree.find_focused()
if focused.workspace().name == "5":
await i3.command("mode '_'")
await i3.command("bar mode invisible")
else:
await i3.command("mode 'default'")
await i3.command("bar mode hide")
if __name__ == "__main__":
while True:
asyncio.run(main())
time.sleep(1) |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i wrote a tiny program