dotfiles/system/.config/zsh/.zprofile
Severin Kaderli 318ceeaa3b
Remove startx
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2022-01-09 16:41:39 +01:00

29 lines
701 B
Bash

#!/bin/bash
#
# SCRIPT NAME:
# .zprofile
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This script is called when you start a login shell.
#
# USAGE:
# This script is automatically executed when you start a login shell.
if [[ -f "${HOME}/.config/zsh/.zshrc" ]]; then
. "${HOME}/.config/zsh/.zshrc"
fi
# Restore custom dconf configuration
dconf load / < "${XDG_CONFIG_HOME}/dconf/root.conf"
# Activate correct crontab file
crontab "${XDG_CONFIG_HOME}/cron/crontab"
# Load env variables
export "$(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)"
if [ "$(tty)" = "/dev/tty1" ]; then
sway > "${XDG_LOG_HOME}/sway.log" 2>&1 && exit
fi