From 8db7ed9f3d61588e1e2a7c1b1409e7810c6e8f8f Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sun, 7 Sep 2025 20:37:27 +0000 Subject: Reorder dot files so they make more sense for X sessions --- dot.profile | 3 +++ dot.xinitrc | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dot.profile b/dot.profile index 01dd70c..591129f 100644 --- a/dot.profile +++ b/dot.profile @@ -7,3 +7,6 @@ EDITOR=nvim PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin export PATH HOME TERM ENV EDITOR +if [ $(uname) = "Linux" ]; then + export XDG_RUNTIME_DIR="/run/user/$(id -u)" +fi diff --git a/dot.xinitrc b/dot.xinitrc index e40d041..3636e05 100644 --- a/dot.xinitrc +++ b/dot.xinitrc @@ -1,3 +1,5 @@ +. ~/.profile + export TERMINAL=kitty # Some have success with these instead: #export GDK_DPI_SCALE=1.5 @@ -14,5 +16,12 @@ xrdb -merge ~/.Xresources # Polybar doesn't pick up the one from Xresources. xsetroot -cursor_name left_ptr -. ~/.profile +if command -v dbus-launch >/dev/null 2>&1; then + eval "$(dbus-launch --sh-syntax --exit-with-session)" +fi + +if command -v pipewire >/dev/null 2>&1; then + pipewire& +fi + exec herbstluftwm --locked -- cgit v1.2.3