A flexible, approachable, and powerful wayland compositor. This project is still in its early stages; it's not currently usable as a daily driver, but will be soon!
Note: ptychite is developed on sr.ht.
- performant
- easy to use and configure
- built-in panel, wallpaper, control center, screenshotting-tool, etc
- optional mosaic and traditional window tiling
- optional server-side decorations
- a consistent and comfortable aesthetic design
- basic animations, rounded corners, and blur
- gnome-like workspace management, with the zoom out effect
- Xwayland support
- active application icon support in panel
- NetworkManager and libupower integration in panel
- notifications over dbus
- possibly switch config format from json to yaml
ptychite should have a robust base-level functionality and be completely usable out of the box without the need for external clients.
- wlroots
- wayland-protocols
- wayland-server
- wayland-client
- xkbcommon
- json-c
- cairo
- pango
- pangocairo
- librsvg
Ensure all dependencies are installed, then run:
meson setup build/
ninja -C build/
ptychite is configured in json; all data you send to and recieve from the compositor will be in this format. Upon startup ptychite looks for the file ~/.config/ptychite/ptychite.json
(see sample_config.json
). This file will instruct ptychite to build a configuration with the given property nodes. Properties are expressed as paths delimited by :
characters.
This simple configuration will accept the default values for all properties except keyboard:repeat:rate
, keyboard:repeat:delay
, and keyboard:xkb:options
, for which custom values are provided:
{
"keyboard":{
"repeat":{
"rate":60,
"delay":250
},
"xkb":{
"options":"ctrl:swapcaps"
}
}
}
ptymsg is a client program used to configure and query information from ptychite at runtime. It utilizes the ptychite-message protocol to communicate with the compositor.
The set
command takes two arguments: a property path and json data.
ptymsg set monitors:wallpaper:filepath '"background.png"'
It also takes an optional flag, --overwrite
, to overwrite lists instead of appending to them.
# delete all chords before adding
ptymsg set --overwrite keyboard:chords '[{"pattern":"S-x i","action":["spawn","firefox"]}]'
Note that multiple properties can be set at once by passing an incomplete property path.
ptymsg set tiling '{"mode":"traditional","gaps":20}'
# is equivalent to
ptymsg set tiling:mode '"traditional"' && ptymsg set tiling:gaps 20
The get
command outputs the corresponding json data with a property path. By default, the json is pretty-printed; whitespace will be removed if the --compact
option is passed.
ptymsg get --compact panel
To output the entire configuration:
ptymsg get :
The dump-views
command will dump information about the current views on the given output or all
for every view regardless of output.
ptymsg dump-views eDP-1
ptymsg dump-views --compact all
ptycfg is a script which allows for interactive, user-friendly customization of properties. Simply run in a terminal:
ptycfg
A list of all properties to filter through will appear. You will be prompted to customize the selection depending on the property in question, after which your input will be converted to json data and sent to ptychite via ptymsg.
- ptymsg
- jq for processing ptymsg output
- gum for creating the cli
- zenity for the color picker
- pastel for formatting colors
Thank you for your interest in my project!! If you would like to contribute, please send patches to ~kolunmi/[email protected].