dotfiles/shell/dwm
2023-09-15 14:10:01 -06:00

9 lines
249 B
Bash

#!/bin/bash
# Autostart dwm after tty login
type systemctl 2>/dev/null 1>&2 && if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
cat ~/Documents/snippets/welcome
sleep 0.5
amixer
exec startx
fi