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.

63 lines
1.8 KiB

5 years ago
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 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. bspc rule -a Thunar:*:'Mehrere Dateien gleichzeitig umbenennen' rectangle=750x500+500+500
  30. # function to check if a program already runs
  31. # if not, start it
  32. function run () {
  33. if ! pgrep $1>/dev/null ; then
  34. $@&
  35. fi
  36. }
  37. #autostart stuff
  38. xsetroot -cursor_name left_ptr
  39. numlockx on &
  40. run sxhkd &
  41. run picom &
  42. run dunst &
  43. #pulseaudio --start & #now running via systemctl --user
  44. run nm-applet &
  45. /home/marc/.config/polybar/scripts/toggle.sh &
  46. if [[ $(hostname) == 'laptop' ]]; then
  47. feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/1920x1080/1920x1080_road_marking_evening_clouds_horizon.jpg
  48. else
  49. feh --bg-scale /home/marc/Archiv/Bilder/Wallpaper/3440x1440/3440x1440_Sea_Sunset.jpg &
  50. fi
  51. #requires suckless-tools
  52. wmname LG3D