bspwmrc 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #! /usr/bin/env bash
  2. pgrep -f sxhkd > /dev/null || sxhkd -c $HOME/.config/bspwm/sxhkd/sxhkdrc &
  3. $HOME/.config/polybar/launch.sh
  4. bspc monitor -d "1  " "2  " "3  " "4  " "5  " "6  " "7  " "8  " "9  "
  5. bspc config border_width 3
  6. bspc config window_gap 4
  7. bspc config normal_border_color "#1d2330"
  8. bspc config active_border_color "#ff00ff"
  9. bspc config focused_border_color "#2eb398"
  10. bspc config presel_feedback_color "#ff0000"
  11. bspc config split_ratio 0.5
  12. bspc config focus_follows_pointer true
  13. bspc config pointer_modifier super
  14. # Set the desktop layout to monocle if there’s only one tiled window in the tree.
  15. bspc config single_monocle false
  16. bspc config borderless_monocle true
  17. bspc config gapless_monocle true
  18. bspc config paddingless_monocle true
  19. # Autostart
  20. run_once() {
  21. for prog in "${progs[@]}"; do
  22. prog_name=$(echo ${prog} | awk -F" " '{print $1}')
  23. pgrep -u $USER -f "${prog_name}" > /dev/null || (${prog} &)
  24. # pgrep -u $USER -fx "${prog}" > /dev/null || (${prog} &)
  25. done
  26. }
  27. progs=(
  28. "sxhkd -c ~/.config/bspwm/sxhkd/sxhkdrc"
  29. "$HOME/.config/bspwm/scripts/subscribes.sh"
  30. "xxkb"
  31. "setxkbmap -layout us,ru -option grp:caps_toggle"
  32. "/usr/lib/xfce4/notifyd/xfce4-notifyd"
  33. # "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
  34. # "polybar -c $HOME/.config/polybar/config.ini"
  35. "/usr/libexec/xfce-polkit" # for Void
  36. "xrdb $HOME/.Xresources"
  37. "nitrogen --restore"
  38. "volumeicon"
  39. "nm-applet"
  40. "xfce4-power-manager"
  41. "xfce4-clipman"
  42. # "diodon"
  43. "picom --config $HOME/.config/picom/picom.conf"
  44. "conky -c $HOME/.myScripts/conky/bspwm_conkyrc"
  45. # "/usr/bin/python /usr/bin/udiskie"
  46. "udiskie"
  47. "xiccd"
  48. # "python /usr/bin/redshift-gtk"
  49. "redshift-gtk"
  50. "$HOME/Programs/CheckInternetConnection/CheckInternetConnection"
  51. "$HOME/Programs/AppImageApplications/BreakTimer.AppImage"
  52. "birdtray"
  53. "xsetroot -cursor_name left_ptr"
  54. # # "xmodmap -e \"keycode 135 = Super_R\""
  55. )
  56. run_once
  57. bspc rule -a "VirtualBox Manager" follow=on desktop='^5'
  58. bspc rule -a "TelegramDesktop" follow=on desktop='^6'
  59. bspc rule -a "ViberPC" follow=on desktop='^6'
  60. bspc rule -a "Gimp-2.10" follow=on desktop='^7'
  61. bspc rule -a "thunderbird" follow=on desktop='^9'
  62. # bspc rule -a "thunderbird:*:Password Required - Mozilla Thunderbird" state=floating
  63. # bspc rule -a Lutris state=floating follow=off rectangle=1200x700+360+190 desktop='^6'
  64. # Floating apps
  65. bspc rule -a "Arandr" state=floating center=on
  66. bspc rule -a "Deadbeef" state=floating center=on
  67. bspc rule -a "Galculator" state=floating center=on
  68. bspc rule -a "BreakTimer" state=floating center=on
  69. bspc rule -a "Tor Browser" state=floating center=on
  70. bspc rule -a "gnome-font-viewer" state=floating center=on
  71. bspc rule -a "xfce4-power-manager-settings" state=floating center=on
  72. bspc rule -a "Pavucontrol" state=floating center=on
  73. bspc rule -a "Gcolor3" state=floating center=on
  74. bspc rule -a "qt5ct" state=floating center=on
  75. bspc rule -a "Volumeicon" state=floating center=on
  76. bspc rule -a "Lxappearance" state=floating center=on
  77. bspc rule -a "Blueman-manager" state=floating center=on
  78. bspc rule -a "gdebi-gtk" state=floating center=on
  79. bspc rule -a "*:*:About Mozilla Firefox" state=floating center=on
  80. bspc rule -a "*:*:О Mozilla Firefox" state=floating center=on
  81. bspc rule -a "*:*:Terminator Preferences" state=floating center=on
  82. bspc rule -a "*:*:Терминатор Параметры" state=floating center=on
  83. bspc rule -a "Nm-connection-editor" state=floating center=on
  84. # bspc rule -a "" state=floating center=on