Compare commits
1 commit
dcb9ab1458
...
d5b4d78779
Author | SHA1 | Date | |
---|---|---|---|
|
d5b4d78779 |
3 changed files with 20 additions and 7 deletions
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.1.1] - 2020-05-30
|
||||
### Added
|
||||
- Add profile.sh for installation in /etc/profile.d/stdm.sh
|
||||
|
||||
## [0.1.0] - 2020-05-13
|
||||
### Added
|
||||
- Initial release
|
||||
|
|
15
README.md
15
README.md
|
@ -1,8 +1,9 @@
|
|||
# STDM
|
||||
|
||||
STDM is a simple terminal display manager. It's inspired by cdm, but way simpler.
|
||||
Right now it can only start Wayland sessions, and apparently only some of those too.
|
||||
I might extend it to do more myself, but I use it for starting sway, and that works.
|
||||
STDM is a simple terminal display manager. It's inspired by cdm, but way
|
||||
simpler. Right now it can only start Wayland sessions, and apparently only some
|
||||
of those too. I might extend it to do more myself, but I use it for starting
|
||||
sway, and that works.
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -10,12 +11,12 @@ Install it with `cargo` like any old rust project
|
|||
|
||||
## Usage
|
||||
|
||||
Run it, done. Running it automatically is left as an exercise for the reader.
|
||||
A profile.d file will be provided in the future, for now go check on
|
||||
[cdm's profile.sh](https://github.com/evertiro/cdm/blob/master/src/profile.sh).
|
||||
Put the `contrib/profile.sh` file into `/etc/profile.d/` as `stdm.sh`. This
|
||||
starts stdm automatically when logging in on `tty1`.
|
||||
|
||||
## Contributing
|
||||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
||||
Pull requests are welcome. For major changes, please open an issue first to
|
||||
discuss what you would like to change.
|
||||
|
||||
Please make sure to update tests as appropriate.
|
||||
|
||||
|
|
8
contrib/profile.sh
Normal file
8
contrib/profile.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
# To avoid potential situation where cdm(1) crashes on every TTY, here we
|
||||
# default to execute cdm(1) on tty1 only, and leave other TTYs untouched.
|
||||
if [[ "$(tty)" == '/dev/tty1' ]]; then
|
||||
[[ -n "$STDM_SPAWN" ]] && return
|
||||
# Avoid executing cdm(1) when X11 has already been started.
|
||||
STDM_SPAWN=true exec stdm
|
||||
fi
|
||||
|
Loading…
Reference in a new issue