#!/bin/bash

export PATH=$HOME/bin:$PATH
systemctl --user import-environment DISPLAY XAUTHORITY
systemctl --user start pulseaudio.socket
systemctl --user start pulseaudio.service

if which dbus-update-activation-environment >/dev/null 2>&1; then
        dbus-update-activation-environment DISPLAY XAUTHORITY
fi

eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK

xinput-toggle -r yubikey -d

xfsettingsd &
xrdb -merge .Xdefaults &

#gnome-settings-daemon & 
xscreensaver -no-splash &
#kupfer --no-splash &
rofi -key-run control-space -fuzzy -terminal run_terminal &
#nm-applet &
gnome-sound-applet &
remmina -i &
#setxkbmap -option ctrl:nocaps &
xmodmap ~/.Xmodmap &
#synclient PalmDetect=1

# Running a really minimal arch system? This helps:

/usr/lib/xfce4/notifyd/xfce4-notifyd &
#pulseaudio --start &
blueman-applet &
#wicd-gtk --tray &

if [ -f ~/.xrandrrc ]; then
    ~/.xrandrrc
fi


~/.fehbg &
if command -v picom &>/dev/null; then
  picom -b --config ~/.compton.conf &
fi

#exec awesome
exec i3
#exec startxfce4
#exec dbus-launch --sh-syntax --exit-with-session i3
