diff options
| -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 |