DesktopLauncher is a simple command line display manager which lets the user select and start a Wayland or X11 session after logging in.
- Lists all available Wayland and X11 sessions
- Saves the previous selection for easy access
- Simple and fast
-
Install Rust. This can be done through rustup or your system's package manager. It should be available on almost if not all popular Linux distributions.
-
Clone the repository and change into the directory it cloned to.
git clone https://github.com/kitzsh/DesktopLauncher
cd DesktopLauncher
- Install dependencies and build the package.
cargo build --release
- Change into the directory which contains the
desktoplauncher
binary. If built from source, this would betarget/release/
.
cd target/release/
- Copy the binary to
/usr/local/bin
, or any directory in$PATH
.
sudo cp desktoplauncher /usr/local/bin/desktoplauncher
- At the end of your default shell's rc file (e.g
~/.bashrc
for bash,~/.zshrc
for zsh), makedesktoplauncher
run if the current TTY is/dev/tty1
, or whichever TTY you want it to run on.
if [[ "$(tty)" == "/dev/tty1" ]]; then
desktoplauncher
fi
- Disable existing display managers, if present.
This is my first Rust project. If you have any criticisms or improvements, feel free to make an issue or pull request.
I already have some ideas for this which I could implement in the future, such as:
- TUI and GUI front-ends with custom login screens.
- Systemd integration.
MIT