#window-manager #switch #seamlessly #key #cmd #config

yanked wmswitch

Switch between window managers seamlessly

0.1.0 Aug 24, 2024

#5 in #seamlessly

MIT license

9KB
120 lines

wmswitch

Switch between window managers seamlessly.

Usage

POSIX (Linux / FreeBSD / ...)

setsid wmswitch <KEY>

Configuration

The configuration file is $XDG_CONFIG_HOME/wmswitch/config.toml.

Here is an example of the config file:

[commands]
x11-default = { cmd = ["startx"], proc_name = "i3" }
wl-default = { cmd = ["startwl"], proc_name = "river" }
hyprland = { cmd = ["Hyprland"] }

Commands

Key

Used for calling the command

Value

cmd

Command for launching a window manager

["<CMD>"[, "<ARG>", ...]]

proc_name

Process name, by default is the entire command.

Dependencies

~2–12MB
~101K SLoC