Guile bindings for Sway window manager
8 days ago
- #Guile
- #Window-Manager
- #Sway
- The author is an Emacs user who previously used StumpWM, an X11 window manager written in Common Lisp.
- They advocate for scriptable window managers due to the need for extensive workflow customization.
- The project provides complete control over Sway/i3 using Guile, addressing the lack of a programmable interface.
- The author migrated to Wayland and attempted to replicate a StumpWM-like environment using Hyprland but found Sway more stable.
- The repository includes examples, such as a playground file demonstrating features like printing the current workspace and adding keybindings.
- Installation instructions vary by distribution, with GUIX users able to install directly from the repository.
- The project allows for retrieving Sway information in Guile records and manipulating them.
- Keybindings can be assigned to execute Guile code, including Sway/i3-specific commands.
- Event subscription is supported, enabling actions in response to events like workspace changes.
- The project includes modules for extending Sway, such as workspace grid and group management.
- Workspaces can be arranged in a grid format for easier navigation and grouped to span across multiple monitors.
- The which-key module enhances keybinding discovery, and submaps help organize related commands.
- Layout features are experimental, aiming to provide common layouts like Alternating, Emacs, Xmonad, and Matrix.
- Recent updates include improvements to the sway-output function and fixes for general keybinding issues.