diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index cc0cf9a..fe4af9d 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -12,8 +12,6 @@ bspc config gapless_monocle true # colors based on plastic scheme bspc config normal_border_color "#21252b" bspc config focused_border_color "#9ec400" -bspc config urgent_border_color "#ff3334" -bspc config presel_border_color "#9ec400" bspc config presel_feedback_color "#9ec400" # some rules @@ -30,10 +28,19 @@ bspc rule -a Emacs state=tiled bspc rule -a org.remmina.Remmina state=floating rectangle=3440x1370+0+0 bspc rule -a Zathura state=tiled +# function to check if a program already runs +# if not, start it +function run { + if ! pgrep $1 ; then + $@& + fi +} + #autostart stuff +xsetroot -cursor_name left_ptr numlockx on & sxhkd & -picom & +run picom & pulseaudio --start & if [[ $(hostname) == 'laptop' ]]; then @@ -41,4 +48,3 @@ if [[ $(hostname) == 'laptop' ]]; then else feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/3440x1440/3440x1440_Sea_Sunset.jpg & fi -xsetroot -cursor_name left_ptr