~ecs/dotfiles

f764c0644767921c04d17858804abcfa8aed01bc — Eyal Sawady 27 days ago 2741c03
profile: move hexenkopf-specific bits out of base

And switch to sway for now.
2 files changed, 8 insertions(+), 7 deletions(-)

M etc/profile/base
M etc/profile/hexenkopf
M etc/profile/base => etc/profile/base +3 -7
@@ 96,11 96,7 @@ export ENV="$XDG_CONFIG_HOME/env"
. "$ENV"

if [ "$(tty)" = "/dev/tty1" ]; then
	if [ "$(uname -n)" = hexenkopf ]; then
		pgrep startx || exec startx
	else
		edaemon &
		printf "" >"$HOME/tmp/sway.log"
		exec sway >>"$HOME/tmp/sway.log" 2>>"$HOME/tmp/sway.log"
	fi
	edaemon &
	printf "" >"$HOME/tmp/sway.log"
	exec sway >>"$HOME/tmp/sway.log" 2>>"$HOME/tmp/sway.log"
fi

M etc/profile/hexenkopf => etc/profile/hexenkopf +5 -0
@@ 7,3 7,8 @@ unset ELM_ENGINE && export ELM_ENGINE
unset XDG_SESSION_TYPE && export XDG_SESSION_TYPE
unset XDG_CURRENT_DESKTOP && export XDG_CURRENT_DESKTOP
unset POSIXLY_CORRECT && export POSIXLY_CORRECT

if [ "$(tty)" = "/dev/tty1" ]; then
	doas powertop --auto-tune &
	#pgrep startx || exec startx
fi