icon_bishop

bspwmrc

Dec 9th, 2024 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.80 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. pgrep -x sxhkd > /dev/null || sxhkd &
  4.  
  5.  
  6. if [[ $(xrandr -q | grep 'HDMI-A-0 connected') ]]; then
  7.     xrandr --output eDP --primary --mode 1366x768 rotate normal --outpu HDMI-A-0 --mode 1920x1080 --rotate normal --right-of eDP
  8. fi
  9.  
  10. #bspc monitor eDP -d 󰀫 󰂡 󱃮 󰇂 󱃠
  11. #bspc monitor HDMI-A-0 -d 󰡚 󰡜  󰡛 󰡙
  12.  
  13.  
  14. if [[ $(xrandr -q | grep 'HDMI-A-0 connected') ]]; then
  15.     bspc monitor eDP -d 󰀫 󰂡 󱃮 󰇂 󱃠
  16.     bspc monitor HDMI-A-0 -d 󰡚 󰡜  󰡛 󰡙
  17. else
  18.     #bspc monitor eDP -d 󰀫 󰂡 󱃮 󰇂 󱃠
  19.     bspc monitor eDP -d 󰀫 󰂡 󱃮 󰇂 󱃠 󰡚 󰡜  󰡛 󰡙
  20. fi
  21.  
  22. bspc config border_width        3
  23. bspc config window_gap          7
  24. bspc config top_padding     21
  25. bspc config focus_follows_pointer true
  26.  
  27. # Colors
  28. # source the colors.
  29. . "${HOME}/.cache/wal/colors.sh"
  30.  
  31. # Set the border colors.
  32. bspc config normal_border_color "$color1"
  33. bspc config active_border_color "$color2"
  34. bspc config focused_border_color "$color15"
  35. # Use the line below if you are on bspwm >= 0.9.4
  36. bspc config presel_feedback_color "$color1"
  37. # Use the line below if you are on bspwm < 0.9.4
  38. #bspc config presel_border_color "$color1"
  39.  
  40. #bspc config focused_border_color "#b87400"
  41. #bspc config normal_border_color "#40484d"
  42. #bspc config presel_feeback_color "#0e0e0e"
  43.  
  44. bspc config split_ratio          0.52
  45. bspc config borderless_monocle   true
  46. bspc config gapless_monocle      true
  47.  
  48. #bspc rule -a Gimp desktop='^8' state=floating follow=on
  49. # bspc rule -a Chromium desktop='^2'
  50. bspc rule -a mplayer2 state=floating
  51. bspc rule -a Kupfer.py focus=on
  52. bspc rule -a Screenkey manage=off
  53.  
  54. # Apps
  55. bspc rule -a Vivaldi-stable:facebook.com state=floating rectangle=600x600+7+33
  56. bspc rule -a Vivaldi-stable:instagram.com state=floating rectangle=675x600+7+33
  57. bspc rule -a Vivaldi-stable:chat.openai.com state=floating rectangle=600x500+7+33
  58. bspc rule -a Vivaldi-stable:youtube.com state=floating rectangle=600x600+7+33
  59. bspc rule -a Vivaldi-stable:readcomiconline.li state=floating rectangle=700x600+7+33
  60.  
  61. # Scratchpads
  62. bspc rule -a vizpad state=floating rectangle=640x213+713+377
  63. bspc rule -a cmuspad sticky=on state=floating rectangle=640x341+713+33
  64. bspc rule -a rgrpad sticky=on state=floating rectangle=640x356+375+33
  65. bspc rule -a scpad sticky=on state=floating rectangle=640x356+713+33
  66. bspc rule -a termpad sticky=on state=floating rectangle=650x356+375+133
  67.  
  68. bspc rule -a mpv state=floating
  69. bspc rule -a smplayer state=floating rectangle=800x450+7+33
  70. bspc rule -a gparted state=floating
  71. bspc rule -a Pavucontrol state=floating rectangle=884x395+255+33
  72. bspc rule -a krita desktop='^6' follow=on
  73. bspc rule -a inkscape desktop='^6' follow=on
  74. bspc rule -a kdenlive desktop='^4' follow=on
  75. bspc rule -a stremio desktop='^5' follow=on
  76. bspc rule -a jellyfinmediaplayer desktop='^5' follow=on
  77. bspc rule -a shortwave state=floating follow=on
  78. bspc rule -a PenTablet desktop='^6' state=floating
  79.  
  80. export PATH=$PATH:$HOME:$HOME/.local/bin:$HOME/.local/bin/dwmscripts:/usr/local/bin
  81.  
  82. # Wallpaper
  83. ~/.fehbg &
  84. #wall -R &
  85. #~/.local/bin/dwmscripts/wall.sh &
  86.  
  87. # Startup Sound
  88. mpv --no-video ~/Music/SoundEffects/future-hightech-logo.mp3 &
  89. /home/icon_bishopxxiii/.local/bin/wifi.sh &
  90.  
  91. # Systray
  92. xfce4-power-manager &
  93.  
  94. # Enable Numlock
  95. numlockx &
  96.  
  97. # Compositor
  98. picom -f &
  99.  
  100. # Touchpad
  101. xinput set-prop 15 "libinput Tapping Enabled" 1 &
  102.  
  103. # Notifications
  104. dunst -conf /home/icon_bishopxxiii/.config/dunst/dunstrc &
  105.  
  106. # Policy Kit
  107. /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
  108. # xrdb ~/.Xresources
  109. xsetroot -cursor_name left_ptr &
  110.  
  111. # Sxhkd
  112. sxhkd &
  113.  
  114. # Bar
  115. #polybar metropolis &
  116. #polybar gotham &
  117. ~/.config/polybar/launch.sh &
  118. cat ~/.cache/wal/sequences &
  119.  
  120. notify-send -i $HOME/Pictures/avatars/Shard.png "SHARD:" "Access granted.\nDanger Room Session initiated..." -t 10000
  121.  
Tags: bspwm
Advertisement
Add Comment
Please, Sign In to add comment