dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit ec770745451f3742fbbd4f20df50c0d08353b043
parent 8f5297fa9bbedac27d58548d08378558b355ee31
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu,  9 Sep 2021 16:00:06 +0200

shell: automatically run startx at startup

Diffstat:
Mshell/rc | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/shell/rc b/shell/rc @@ -1,5 +1,8 @@ #!/bin/sh # shellcheck disable=SC2016 +if command -v startx >/dev/null 2>&1 && [ "$(tty)" = "/dev/tty1" ]; then + pgrep dwm || startx +fi [ -n "$DOTFILES" ] || { printf '$DOTFILES not set, press enter to quit' && read -r && exit 1; } source_if_exists() { [ -f "$1" ] && . "$1"; }