#!/bin/bash # # SCRIPT NAME: # .zprofile # # AUTHOR: # Severin Kaderli # # 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