Skip to content

Instantly share code, notes, and snippets.

@alsgu3rra
Created May 14, 2024 20:04
Show Gist options
  • Save alsgu3rra/0dcc9e3e0227a3809f6231aa603973b7 to your computer and use it in GitHub Desktop.
Save alsgu3rra/0dcc9e3e0227a3809f6231aa603973b7 to your computer and use it in GitHub Desktop.
Configuração do meu bspwm
#!/bin/sh
#LAUNCHERS
$HOME/.config/bspwm/autostart.sh
#fix for moving spotify to specific workspace
#bspc config external_rules_command ~/.config/bspwm/scripts/external_rules_command
#BSPWM configuration
#bspc config border_radius 8
bspc config border_width 2
bspc config window_gap 10
bspc config top_padding 30
bspc config bottom_padding 10
bspc config left_padding 10
bspc config right_padding 10
bspc config single_monocle false
#bspc config click_to_focus true
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true
#bspc config focus_by_distance true
bspc config focus_follows_pointer true
#bspc config history_aware_focus true
bspc config pointer_modifier mod4
bspc config pointer_action1 move
bspc config pointer_action2 resize_side
bspc config pointer_action3 resize_corner
bspc config remove_disabled_monitors true
bspc config merge_overlapping_monitors true
#BSPWM coloring
bspc config normal_border_color "#4c566a"
bspc config active_border_color "#1e1e1e"
bspc config focused_border_color "#5e81ac"
bspc config presel_feedback_color "#5e81ac"
#bspc config urgent_border_color "#dd2727"
#Single monitor
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
#Dual monitor
#find out names with arandr or xrandr
#bspc monitor DP-2 -d 1 2 3 4 5 6 7 8 9
#bspc monitor LVDS1 -d 1 2 3 4
#bspc monitor DP3 -d 5 6 7 8 9
#bspc monitor HDMI-0 -d 1 2 3 4 5 6 7 8 9 10
#bspc monitor HDMI-1 -d 1 2 3 4 5 6 7 8 9 10
#bspc monitor HDMI1 -d 1 2 3 4 5
#bspc monitor HDMI2 -d 6 7 8 9 10
#Fullscreen applications
bspc rule -a inkscape state=fullscreen
bspc rule -a Spotify state=fullscreen
bspc rule -a Vlc state=fullscreen
bspc rule -a VirtualBox Manager state=fullscreen
bspc rule -a VirtualBox Machine state=fullscreen
#bspc rule -a Gimp state=fullscreen
#Floating applications
bspc rule -a Arandr state=floating
#bspc rule -a Archlinux-tweak-tool.py state=floating
bspc rule -a Arcolinux-welcome-app.py state=floating
bspc rule -a Arcolinux-calamares-tool.py state=floating
bspc rule -a feh state=floating
#bspc rule -a mpv state=floating sticky=on
#bspc rule -a Font-manager state=floating
bspc rule -a Galculator state=floating
#bspc rule -a Gpick state=floating sticky=on
#bspc rule -a Nitrogen state=floating
bspc rule -a Oblogout state=floating
#bspc rule -a Pavucontrol state=floating sticky=on
#bspc rule -a Peek state=floating
#bspc rule -a rofi state=floating sticky=on
#bspc rule -a Skype state=floating
#bspc rule -a Stacer state=floating
#bspc rule -a Xfce4-appfinder state=floating sticky=on
bspc rule -a Xfce4-terminal state=floating
#Tiled applications
bspc rule -a Gnome-disks state=tiled
bspc rule -a Xfce4-settings-manager state=tiled
#open applications on specific workspaces
bspc rule -a Firefox desktop='^1' follow=on
bspc rule -a Google-chrome desktop='^1' follow=on
bspc rule -a Chromium desktop='^1' follow=on
bspc rule -a Subl desktop='^3' follow=on
bspc rule -a Steam desktop='^5'
bspc rule -a vlc desktop='^6' follow=on
bspc rule -a mpv desktop='^6' follow=on
bspc rule -a Thunar desktop='^8' follow=on
bspc rule -a discord desktop='^9' follow=on
bspc rule -a Spotify desktop='^10' follow=on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment