#!/bin/sh

sxhkd &
#exec setxkbmap dk &
numlockx &
#volumeicon &
#light-locker-settings &

lxpolkit &
#autorandr &

bspc config border_width        1
bspc config window_gap          25



#bspc monitor -d I II III IV V VI VII VIII IX X

bspc monitor DP-2-3 -d DEV
bspc monitor DP-2-2 -d WEB TERM FILES RAND SOC MEDIA EXTR REMOTE
bspc monitor eDP-1 -d MORE


#bspc monitor DP2-3 -d LEFT
#bspc monitor eDP1 -d RIGHT
#xrandr --output VGA-1-1 --auto --left-of monitor
#sudo xrandr --output VGA-1 --mode 1050x1680 --rotate right --left-of LVDS-1 &

#i=1
#for monitor in $(bspc query -M); do
#bspc monitor $monitor \
#        -n "$i" \
#        -d {RIGHT}
#        -d {DEV,WEB,TERM,FILES,RAND,MEDIA,SOC,EXTR,REMOTE}
#        -d {LEFT}
#    let i++
#done
#NMON=$i
#unset i

bspc config top_padding 15

# Visual options
bspc config split_ratio         0.50
bspc config borderless_monocle  true
bspc config gapless_monocle     true
bspc config focus_follows_pointer true
bspc config auto_alternate true
bspc config auto_cancel true
bspc config normal_border_color "#332d29"
bspc config active_border_color "#817267"
bspc config focused_border_color "#504339"
bspc config presel_border_color "#9a875f"
bspc config urgent_border_color "#9f7155"
bspc config focused_locked_border_color "#9a875f"
bspc config normal_frame_opacity 0.0
bspc config focused_frame_opacity 0.1


# Rules
bspc rule -a Skype pseudo_tiled=on
bspc rule -a rofi pseudo_tiled=on
bspc rule -a Infinit pseudo_tiled=on
bspc rule -a Spotify pseudo_tiled=on
bspc rule -a sun-awt-X11-XFramePeer pseudo_tiled=on
bspc rule -a Renoise pseudo_tiled=on
bspc rule -a Skype pseudo_tiled=on
bspc rule -a File-roller pseudo_tiled=on
bspc rule -a Transmission-gtk pseudo_tiled=on
bspc rule -a albert pseudo_tiled=on
bspc rule -a Conky sticky=on manage=off lower=on
bspc rule -a astime sticky=on
bspc rule -a feh floating=on manage=off



# panel &

compton &
radiotray-ng &
nm-applet &
lxappearance &
syncthing-gtk &

#setWMName "LG3D"
wmname LG3D
# xcompmgr &
picom --no-fading-openclose &
# run_keybase &
budgie-polkit-dialog &

#insync start &
#digitalocean-indicator &

#feh --bg-fill /home/null/Pictures/wallpapers/papers.co-mn32-forest-wood-fog-flare-nature-green-25-wallpaper.jpg &
#feh --bg-scale /home/null/Pictures/wallpapers/overflow.png
#feh --bg-center /home/null/Pictures/wallpapers/grass_fog_light_dark_background_49885_1920x1080.jpg &
#feh --bg-center /home/null/Pictures/wallpapers/fHFDkjY_copy.jpg
#feh --bg-scale /home/null/Pictures/wallpapers/papers.co-mo50-forest-green-nature-tree-jonas-nilsson-lee-25-wallpaper_deux.jpg &
#feh --bg-scale /home/null/Pictures/wallpapers/1g8pWTZ.jpg &



sleep 1

#sudo xrandr --output VGA-1 --mode 1680x1050 --left-of LVDS-1 &

autorandr dockered &

sleep 3

/home/null/Documents/scripts/reconfig_to_docked.sh

#/usr/bin/polybar bar -c ~/.config/polybar/config &

#sleep 1

#polybar main  -c /home/null/.config/polybar/config.left.ini &

#sleep 1 

#polybar main  -c /home/null/.config/polybar/config.teal.right &



# polybar bar -c ~/.config/polybar/config
#./home/null/.bin/panel/panel
#sleep 3
#screen -S rightpanel -dm /home/null/.bin/panel/dzen2_bar.sh &
#sleep 1
#screen -S tray -dm  /home/null/.bin/panel/tray.sh &
#$HOME/.config/polybar/launch.sh
#lxsession &
sleep 1
#feh --bg-scale ~/Pictures/wallpapers/papers.co-mz92-green-moss-flower-nature-25-wallpaper.jpg &
#feh --bg-scale ~/Pictures/papers.co-nq09-earthview-wood-forest-nature-1920x1080.jpg &
# feh --bg-scale ~/Pictures/wallpapers/1989.png &

feh --bg-scale ~/Pictures/wallpapers/papers.co-ne30-truevine-dark-nature-green-flower-leaf-1920x1080.jpg

orage &

#feh --bg-scale /home/null/Pictures/circuit_tree_dark_orange.png &
sleep 1
pamac-tray &


caffeine &
/usr/bin/caffeine &


/usr/bin/sh /home/null/Documents/scripts/gitsync.sh &
