#! /usr/bin/bash # # ▄▄ # ██ # ██▄███▄ ▄▄█████▄ ██▄███▄ ██ ██ ████▄██▄ ██▄████ ▄█████▄ # ██▀ ▀██ ██▄▄▄▄ ▀ ██▀ ▀██ ▀█ ██ █▀ ██ ██ ██ ██▀ ██▀ ▀ # ██ ██ ▀▀▀▀██▄ ██ ██ ██▄██▄██ ██ ██ ██ ██ ██ # ███▄▄██▀ █▄▄▄▄▄██ ███▄▄██▀ ▀██ ██▀ ██ ██ ██ ██ ▀██▄▄▄▄█ # ▀▀ ▀▀▀ ▀▀▀▀▀▀ ██ ▀▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀▀▀▀ # ██ # # Config by: https://github.com/mohabaks # # # Autostart apps $HOME/.config/bspwm/autostart # Set border color BLK="#1d2636" # Check if the monitor is connected if `xrandr -q | grep -q "HDMI2 connected"` then # # Monitor & Destop Settings # bspc monitor HDMI1 -d 1 2 3 4 5 bspc monitor HDMI2 -d 6 7 8 9 10 bspc config -m HDMI2 window_gap 10 bspc config -m HDMI2 border_width 2 bspc config -m HDMI1 window_gap 10 bspc config -m HDMI1 border_width 2 # # Global Settings # bspc config -m HDMI2 normal_border_color "$BLK" bspc config -m HDMI1 normal_border_color "$BLK" bspc config -m HDMI2 active_border_color "$BLK" bspc config -m HDMI1 active_border_color "$BLK" bspc config -m HDMI2 focused_border_color "$BLK" bspc config -m HDMI1 focused_border_color "$BLK" bspc config -m HDMI2 urgent_border_color "$BLK" bspc config -m HDMI1 urgent_border_color "$BLK" bspc config -m HDMI2 presel_border_color "$BLK" bspc config -m HDMI1 presel_border_color "$BLK" # Start polybar polybar --config=$HOME/.config/polybar/configMonitor left 2> /dev/null & #sleep 1 polybar --config=$HOME/.config/polybar/configMonitor right 2> /dev/null & else # Check focus for bspwm and color border for Qubes #$HOME/.config/bspwm/change_focused_border_color.py & bspc config border_width 1 bspc config window_gap 0 bspc config split_ratio 0.50 bspc config borderless_monocle true bspc config gapless_monocle true bspc config focus_by_distance true bspc config history_aware_focus true bspc monitor -d I II III IV BLK="#101010" bspc config normal_border_color "$BLK" bspc config focused_border_color "$BLK" bspc config urgent_border_color "$BLK" bspc config presel_border_color "$BLK" # Start polybar polybar --config=$HOME/.config/polybar/config mybar 2> /dev/null & fi # # Global Settings # bspc config split_ratio 0.50 bspc config borderless_monocle false bspc config gapless_monocle false # # Rule Settings # # apps in float mode bspc rule -a Nitrogen state=floating focus=on bspc rule -a feh state=floating focus=on bspc rule -a Lxappearance state=floating focus=on bspc rule -a Pavucontrol state=floating focus=on bspc rule -a Qubes-update-gui state=floating focus=on