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.

58 lines
1.6 KiB

4 years ago
4 years ago
4 years ago
4 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 false
  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 Zathura state=tiled
  24. bspc rule -a org.remmina.Remmina desktop='^10' state=tiled follow=on
  25. bspc desktop '^10' --layout monocle
  26. # function to check if a program already runs
  27. # if not, start it
  28. function run () {
  29. if ! pgrep $1>/dev/null ; then
  30. $@&
  31. fi
  32. }
  33. #autostart stuff
  34. xsetroot -cursor_name left_ptr
  35. numlockx on &
  36. run sxhkd &
  37. run picom &
  38. run dunst &
  39. #pulseaudio --start & #now running via systemctl --user
  40. run nm-applet &
  41. /home/marc/.config/polybar/scripts/toggle.sh &
  42. if [[ $(hostname) == 'laptop' ]]; then
  43. feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/1920x1080/1920x1080_road_marking_evening_clouds_horizon.jpg
  44. else
  45. feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/3440x1440/3440x1440_Sea_Sunset.jpg &
  46. fi
  47. #requires suckless-tools
  48. wmname LG3D