From 3632aa92028a67bdff39340f1f58b27a5ec12c6e Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Thu, 5 Feb 2026 13:17:14 +0100 Subject: Update shell files --- shell/.profile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 shell/.profile (limited to 'shell/.profile') diff --git a/shell/.profile b/shell/.profile new file mode 100644 index 0000000..0b0755f --- /dev/null +++ b/shell/.profile @@ -0,0 +1,27 @@ + +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_STATE_HOME="$HOME/.local/state" +export XDG_CACHE_HOME="$HOME/.cache" + +if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" + mkdir -pm 0700 "$XDG_RUNTIME_DIR" +fi + +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" +touch "$XAUTHORITY" +chmod 600 "$XAUTHORITY" + +if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then + exec startx "$XDG_CONFIG_HOME/x/xinitrc" +fi + +case "$-" in + *i*) + if [ -z "$BASH_VERSION" ]; then + exec bash --login + fi + ;; +esac + -- cgit v1.2.3