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.

114 lines
3.5KB

  1. #!/bin/zsh
  2. bspc config border_width 0
  3. bspc config window_gap 10
  4. bspc config split_ratio 0.4
  5. bspc config borderless_monocle true
  6. bspc config gapless_monocle true
  7. bspc config focus_by_distance true
  8. bspc config initial_polarity first_child
  9. bspc config remove_unplugged_monitors true
  10. bspc config ignore_ewmh_focus true
  11. bspc config click_to_focus any
  12. bspc config pointer_modifier mod4
  13. bspc config pointer_action1 move
  14. bspc config pointer_action2 resize_corner
  15. bspc config presel_feedback_color "#FFFFFF"
  16. echo 1 > /tmp/lastdesk
  17. if [ "$HOST" = "laptop" ];then
  18. bspc monitor eDP1 -d    1
  19. elif [ "$HOST" = "hegp" ];then
  20. bspc monitor HDMI1 -d    1
  21. bspc monitor VGA1 -d I II
  22. elif [ "$HOST" = "home" ];then
  23. bspc monitor HDMI2 -d  1
  24. fi
  25. bspc rule -a Slack desktop=
  26. bspc rule -a TelegramDesktop desktop=
  27. bspc rule -a Skype desktop= state=tiled
  28. bspc rule -a Thunderbird desktop=
  29. bspc rule -a qutebrowser desktop=
  30. bspc rule -a Galculator state=floating
  31. bspc rule -a Arandr state=floating
  32. bspc rule -a Zathura state=tiled
  33. bspc rule -a Pinentry state=floating
  34. bspc rule -a Soffice state=tiled
  35. # Figures and PDFs on second monitor
  36. if [ "$HOST" = "hegp" ];then
  37. bspc rule -a R_x11 monitor=^2
  38. bspc rule -a Zathura monitor=^2
  39. fi
  40. # Popup CLI apps
  41. if [ "$HOST" = "laptop" ];then
  42. bspc rule -a kitty:Ranger sticky=on state=floating rectangle=1820x900+0+0 center=on
  43. bspc rule -a kitty:Music_playlist sticky=on state=floating rectangle=430x470+30+64
  44. bspc rule -a kitty:Music_media sticky=on state=floating rectangle=430x476+30+574
  45. bspc rule -a kitty:Music_playlist_home sticky=on state=floating rectangle=430x470+30+64
  46. bspc rule -a kitty:Music_media_home sticky=on state=floating rectangle=430x476+30+574
  47. bspc rule -a kitty:Wiki sticky=on state=floating rectangle=840x986+490+64
  48. bspc rule -a kitty:Volume sticky=on state=floating rectangle=530x270+1360+64
  49. bspc rule -a kitty:Torrent sticky=on state=floating rectangle=530x676+1360+374
  50. elif [ "$HOST" = "hegp" ];then
  51. bspc rule -a kitty:Volume monitor=^1 sticky=on state=floating rectangle=490x300+1170+30
  52. bspc rule -a kitty:Wiki monitor=^1 sticky=on state=floating rectangle=1000x1000+350+30
  53. bspc rule -a kitty:Ranger monitor=^1 sticky=on state=floating rectangle=1550x900+0+0 center=on locked=on
  54. bspc rule -a kitty:Music_playlist sticky=on state=floating rectangle=430x470+30+64
  55. bspc rule -a kitty:Music_media sticky=on state=floating rectangle=430x476+30+574
  56. elif [ "$HOST" = "home" ];then
  57. bspc rule -a kitty:Ranger sticky=on state=floating rectangle=1820x900+0+0 center=on
  58. bspc rule -a kitty:Music_playlist sticky=on state=floating rectangle=945x1036+10+34
  59. bspc rule -a kitty:Music_media sticky=on state=floating rectangle=945x1036+965+34
  60. bspc rule -a kitty:Volume sticky=on state=floating rectangle=600x400+1310+34
  61. fi
  62. bspc rule -a kitty:Meteo monitor=^1 sticky=on state=floating rectangle=880x580+500+625
  63. bspc rule -a kitty:evimwhere state=floating rectangle=920x580+500+250
  64. mpd
  65. greenclip daemon &
  66. udiskie -s &
  67. wmname compiz
  68. dunst &
  69. redshift &
  70. compton -b
  71. xsetroot -cursor_name left_ptr
  72. if [ "$HOST" = "hegp" ];then
  73. hsetroot -fill .config/bspwm/cat_sitting.png
  74. else
  75. hsetroot -tile .config/bspwm/cat.png
  76. fi
  77. conky -d -c .config/conky/conkyrc &
  78. panel &
  79. popup Ranger ranger &
  80. sleep 1
  81. if [ "$HOST" = "home" ];then
  82. synergyc laptop
  83. else
  84. tray &
  85. thunderbird &
  86. unclutter &
  87. telegram-desktop &
  88. slack &
  89. fi
  90. meteo
  91. qutebrowser &
  92. popup Ranger
  93. if [ "$HOST" = "laptop" ];then
  94. nm-applet --sm-disable &
  95. synergys &
  96. fi
  97. bspc config top_padding 14