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.

61 lines
1.7 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. # prevent forced focus
  9. bspc config ignore_ewmh_focus true
  10. # colors based on plastic scheme
  11. bspc config normal_border_color "#282c34"
  12. bspc config focused_border_color "#98c379"
  13. bspc config presel_feedback_color "#98c379"
  14. # some rules
  15. # to get the name, search WM_CLASS(STRING) in xprop
  16. # and pick the second entry
  17. # e.g. WM_CLASS(STRING) = "zathura", "Zathura"
  18. bspc config external_rules_command "$XDG_CONFIG_HOME/bspwm/external-rules"
  19. bspc rule -a Gimp desktop='^8' state=floating follow=on
  20. bspc rule -a mplayer2 state=floating
  21. bspc rule -a Kupfer.py focus=on
  22. bspc rule -a Screenkey manage=off
  23. bspc rule -a Emulator state=floating
  24. bspc rule -a Emacs state=tiled
  25. bspc rule -a Zathura state=tiled
  26. bspc rule -a kittycalcurse state=floating rectangle=800x700+2630+710
  27. bspc rule -a org.remmina.Remmina desktop='^10' state=tiled follow=on
  28. bspc desktop '^10' --layout monocle
  29. # function to check if a program already runs
  30. # if not, start it
  31. function run () {
  32. if ! pgrep $1>/dev/null ; then
  33. $@&
  34. fi
  35. }
  36. #autostart stuff
  37. xsetroot -cursor_name left_ptr
  38. numlockx on &
  39. run sxhkd &
  40. run picom &
  41. run dunst &
  42. #pulseaudio --start & #now running via systemctl --user
  43. run nm-applet &
  44. /home/marc/.config/polybar/scripts/toggle.sh &
  45. if [[ $(hostname) == 'laptop' ]]; then
  46. feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/1920x1080/1920x1080_road_marking_evening_clouds_horizon.jpg
  47. else
  48. feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/3440x1440/3440x1440_Sea_Sunset.jpg &
  49. fi
  50. #requires suckless-tools
  51. wmname LG3D