diff options
| author | Henry J. Webster <hwebs@hwebs.info> | 2026-10-29 21:08:36 -0500 |
|---|---|---|
| committer | Henry J. Webster <hwebs@hwebs.info> | 2026-10-29 21:08:36 -0500 |
| commit | 2cbacd12339d03eb613eba0c2f2388926e6e3da9 (patch) | |
| tree | 81f45fc04fca762143118befb904d130882daf82 /bash | |
| parent | 520971ee4b8824c7ac46b1eb13a94494905aaef0 (diff) | |
bash: launch niri-session on tty1
Experimenting with removing any login handlers and going basic.
To not have to type in the niri launch command, I set the bash
profile to launch niri automatically if the VT is tty1.
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bash_profile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/.bash_profile b/bash/.bash_profile new file mode 100644 index 0000000..47daf32 --- /dev/null +++ b/bash/.bash_profile @@ -0,0 +1,5 @@ +# warning: this is specific to my niri machines... +if [[ $- == *i* && $(tty) == /dev/tty1 && + -z ${WAYLAND_DISPLAY:-} && -z ${DISPLAY:-} ]]; then + exec niri-session +fi |
