You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

5 years ago
5 years ago
5 years ago
4 years ago
  1. #! /bin/bash
  2. bspc monitor -d I II III IV V VI VII VIII IX X
  3. bspc config border_width 2
  4. bspc config window_gap 5
  5. bspc config split_ratio 0.52
  6. bspc config borderless_monocle true
  7. bspc config gapless_monocle true
  8. # colors based on plastic scheme
  9. bspc config normal_border_color "#282c34"
  10. bspc config focused_border_color "#98c379"
  11. bspc config presel_feedback_color "#98c379"
  12. # some rules
  13. # to get the name, search WM_CLASS(STRING) in xprop
  14. # and pick the second entry
  15. # e.g. WM_CLASS(STRING) = "zathura", "Zathura"
  16. bspc config external_rules_command "$XDG_CONFIG_HOME/bspwm/external-rules"
  17. bspc rule -a Gimp desktop='^8' state=floating follow=on
  18. bspc rule -a mplayer2 state=floating
  19. bspc rule -a Kupfer.py focus=on
  20. bspc rule -a Screenkey manage=off
  21. bspc rule -a Emulator state=floating
  22. bspc rule -a Emacs state=tiled
  23. bspc rule -a org.remmina.Remmina state=floating rectangle=3440x1370+0+0
  24. bspc rule -a Zathura state=tiled
  25. # function to check if a program already runs
  26. # if not, start it
  27. function run () {
  28. if ! pgrep $1>/dev/null ; then
  29. $@&
  30. fi
  31. }
  32. #autostart stuff
  33. xsetroot -cursor_name left_ptr
  34. numlockx on &
  35. run sxhkd &
  36. run picom &
  37. run dunst &
  38. #pulseaudio --start & #now running via systemctl --user
  39. run nm-applet &
  40. /home/marc/.config/polybar/scripts/toggle.sh &
  41. if [[ $(hostname) == 'laptop' ]]; then
  42. feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/1920x1080/1920x1080_road_marking_evening_clouds_horizon.jpg
  43. else
  44. feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/3440x1440/3440x1440_Sea_Sunset.jpg &
  45. fi