Skip to content

Instantly share code, notes, and snippets.

@felipedavi
Last active May 13, 2021 18:00
Show Gist options
  • Save felipedavi/2ef5c0dbb8ae34a50e935d59bf46a3f5 to your computer and use it in GitHub Desktop.
Save felipedavi/2ef5c0dbb8ae34a50e935d59bf46a3f5 to your computer and use it in GitHub Desktop.
Switching between desktop environments/window managers
#!/bin/sh
session=${1:-i3}
case $session in
i3|i3wm) exec i3;;
kde) exec startplasma-x11;;
*) exec $1;;
esac
@felipedavi
Copy link
Author

Run:
$ xinit session or $ startx ~/.xinitrc session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment