diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-09-07 20:37:27 +0000 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-09-07 20:37:27 +0000 |
| commit | 8db7ed9f3d61588e1e2a7c1b1409e7810c6e8f8f (patch) | |
| tree | 0cb93e36f361eb6f319bcc86b5d62ce91026e62d | |
| parent | 3bf5e6834dbc88471f62d5405a9113fb304ca6b6 (diff) | |
| download | dots-8db7ed9f3d61588e1e2a7c1b1409e7810c6e8f8f.tar.gz | |
Reorder dot files so they make more sense for X sessions
| -rw-r--r-- | dot.profile | 3 | ||||
| -rw-r--r-- | dot.xinitrc | 11 |
2 files changed, 13 insertions, 1 deletions
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 |