A sliding, tiling window manager for MacOS.
翻譯準備中
生產力Rust · NixGitHub @karinushka自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A sliding, tiling window manager for MacOS.
Paneru is a MacOS window manager that arranges windows on an infinite strip, extending to the right. A core principle is that opening a new window will never cause existing windows to resize, maintaining your layout stability.
Each monitor operates with its own independent window strip, ensuring that windows remain confined to their respective displays and do not "overflow" onto adjacent monitors.
https://github.com/user-attachments/assets/cbc2e820-635f-408b-923a-6cb47c44704c
(Video by @emreekici3 - https://github.com/emreekici3/dotfiles)
https://github.com/user-attachments/assets/793e7eaa-7909-4086-8380-1fb7861f8780
[windows] configuration rule for the focused window on the clipboard, so
you never have to guess an app's bundle id.The fundamental architecture and window management techniques are heavily inspired by Yabai, another excellent MacOS window manager. Studying its source code has provided invaluable insights into managing windows on MacOS, particularly regarding undocumented functions.
The innovative concept of managing windows on a sliding strip is directly inspired by Niri and PaperWM.spoon.
Like all non-native window managers for MacOS, Paneru requires accessibility access to move windows. Once it runs you may get a dialog window asking for permissions. Otherwise check the setting in System Settings under "Privacy & Security -> Accessibility" (or "Privacy & Security -> Device Control and Data Access" on macOS 27 and later).
Check your System Settings for "Displays have separate spaces" option. It should be enabled - this allows Paneru to manage the workspaces independently.
Multiple displays. Paneru is moving the windows off-screen, hiding them
to the left or right. If you have multiple displays, for example your laptop
open when docked to an external monitor you may experience weird behavior.
The issue is that when MacOS notices a window being moved too far off-screen
it will relocate it to a different display - which confuses Paneru! The
solution is to change the spatial arrangement of your additional display -
instead of having it to the left or right, move it above or below your main
display.
A similar situation
exists with Aerospace window manager.
An option exists (horizontal_mouse_warp) which can make a vertical
arrangement of displays "feel" horizontal.
Off-screen window slivers. Because macOS will forcibly relocate windows
that are moved fully off-screen, Paneru keeps a thin sliver of each
off-screen window visible at the screen edge. The sliver_width and
sliver_height options control the size of this sliver. This is a
workaround for a macOS limitation, not a design choice.
Paneru is built using Rust's cargo. It can be installed directly from
crates.io or if you need the latest version, by fetching the source from Github.
$ cargo install paneru
$ git clone https://github.com/karinushka/paneru.git
$ cd paneru
$ cargo build --release
$ cargo install --path .
By default, Paneru builds with the embedded Lua runtime using a vendored LuaJIT compiled from source, requiring no system-wide Lua installation or pkg-config setup.
If you prefer to link against a system- or version-manager-installed Lua (e.g. via mise, asdf, or Homebrew), disable default features and pass --features lua, making sure PKG_CONFIG_PATH contains the directory with luajit.pc:
# When using mise:
$ PKG_CONFIG_PATH="$(mise where luajit)/lib/pkgconfig:$PKG_CONFIG_PATH" cargo build --release --no-default-features --features lua
# When using Homebrew:
$ cargo build --release --no-default-features --features lua
It can run directly from the command line or as a service. Note that you will need to grant accessibility privileges to the binary.
以上為 README 的開頭部分。其餘內容請閱讀原文。 檢視完整 README ↗