##run_once is a script in /usr/bin that prevents running script if it is running already
##
## To enable pulseaufio, uncomment this and run sudo pacman -S pavucontrol pulseaudio-ctl manjaro-pulse
#pulseaudio --start &
#sleep 2s && volume 37 &
## Load appearance settings
xsetroot -cursor_name left_ptr &
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" &
xrdb merge .Xresources &
#xfsettingsd &
## Wallpaper. Nitrogen just draws wallpaper, 
## while xfdesktop can also give applications menu and icons on desktop.
## It uses a lot more resources however. It you enable it you may want to 
## adjust ~/scripts/MouseLaunch to use xfdesktops app menu.
#nitrogen --restore &
sh ~/.fehbg &
#xfdesktop -D &
## compositing. Required for shadows, transparency and stuff. 
## Reduces flicker. Disabling saves resources.
#compton -b &
## hides mouse when you are not using it. When mouse is hidden, rootmenu considers mouse on desktop, so actions can be triggered.
#run_once unclutter &
## enable local fonts in .fonts directory
xset +fp /usr/share/fonts/local &
xset +fp /usr/share/fonts/misc &
xset +fp ~/.fonts &
xset fp rehash &
fc-cache -fv &
## Automount removable media
devmon &
## powersaving options
xset s off &
xset s noblank &
xset s noexpose &
xset c on &
xset -dpms &
xbacklight -set 15 &
## Panel. The default is lemonbar script. Xfce4-panel can be more 
## easily configurable if you prefer that. Not installed by default
#run_once xfce4-panel -d
#lemonpanel &
limepanel &
sleep 2s && bspc config top_padding 10 &
#mylime &
## Light system tray to use with lemonbar. Disable if you dont need it. 
## Edit ~/.stalonetrayrc if it is in wrong place.
#sleep 2s && stalonetray --dockapp-mode simple &
## Welcome message
notify-send "Welcome to Manjaro-bspwm! " "Press super + F1 to show keybindings" &
## Run screenlock when suspending
#i3lock-wait-for-suspend &
## multimonitor support. Save monitor configurations with "autorandr.sh --save <profile>"
srandrd atorandr.sh --change
## Notify about package updates
update-checker 7200 &
xcape -e 'Super_L=Super_L|Shift_L|space' &
#dbus-launch gsettings set org.mate.NotificationDaemon theme 'slider' && sed -i '/gsettings/d' ~/.config/bspwm/autostart &
#lxpolkit &
