#! /bin/sh
if [[ $(xrandr -q | grep "eDP-1 connected") ]];
then
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
--output HDMI-2 --off
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9
fi
xrandr --output HDMI-2 --primary --mode 2560x1440 --left-of eDP-1
bspc monitor eDP-1 -d 1 2 3 4 5 6
bspc monitor HDMI-2 -d 1 2 3 4 5 6
bspc config border_width 4
bspc config window_gap 10
bspc config split_ratio 0.5
bspc config single_monocle false
bspc config focus_follows_pointer true
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config presel_feedback_color "#004089"
bspc config active_border_color "#fab387"
bspc config focused_border_color "#89b4fa"
bspc config normal_border_color "#002060"
# bspc rule -a "*" split_dir=east
bspc rule -a \* rectangle 1280x720+0+0 center=true
bspc rule -a qimgv state=floating
bspc rule -a Xarchiver state=floating layer=normal
bspc rule -a Kitty state=floating layer=normal
bspc rule -a Galculator state=floating layer=normal rectangle=900x600+0+0
bspc rule -a mpv state=floating layer=normal
bspc rule -a Pavucontrol:pavucontrol state=floating
bspc rule -a Lxappearance state=floating layer=normal
# bspc rule -a 'GitHub Desktop' desktop='^2' follow=on
bspc rule -a Gimp desktop='^5' follow=on
bspc rule -a obs desktop='^9' follow=on
bspc rule -a darktable desktop='^4' follow=on
xsetroot -cursor_name left_ptr &
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
dunst -config ~/.config/bspwm/dunst/dunstrc &
picom --config ~/.config/bspwm/picom/picom.conf --animations -b &
feh --bg-fill ~/.config/bspwm/wallpaper/gruvbox-dark-debian-scalable.svg
## Polybar or tint
~/.config/bspwm/polybar/polybar-bspwm &
## apps for systray if enabled
# volumeicon &
# nm-applet &
# (re)load sxhkd for keybinds
if hash sxhkd >/dev/null 2>&1; then
pkill sxhkd
sleep 0.5
sxhkd -c "$HOME/.config/bspwm/sxhkd/sxhkdrc" &
fi
if [[ $(xrandr -q | grep "eDP-1 connected") ]];
then
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
--output HDMI-2 --off
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9
fi
xrandr --output HDMI-2 --primary --mode 2560x1440 --left-of eDP-1
bspc monitor eDP-1 -d 1 2 3 4 5 6
bspc monitor HDMI-2 -d 1 2 3 4 5 6
bspc config border_width 4
bspc config window_gap 10
bspc config split_ratio 0.5
bspc config single_monocle false
bspc config focus_follows_pointer true
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config presel_feedback_color "#004089"
bspc config active_border_color "#fab387"
bspc config focused_border_color "#89b4fa"
bspc config normal_border_color "#002060"
# bspc rule -a "*" split_dir=east
bspc rule -a \* rectangle 1280x720+0+0 center=true
bspc rule -a qimgv state=floating
bspc rule -a Xarchiver state=floating layer=normal
bspc rule -a Kitty state=floating layer=normal
bspc rule -a Galculator state=floating layer=normal rectangle=900x600+0+0
bspc rule -a mpv state=floating layer=normal
bspc rule -a Pavucontrol:pavucontrol state=floating
bspc rule -a Lxappearance state=floating layer=normal
# bspc rule -a 'GitHub Desktop' desktop='^2' follow=on
bspc rule -a Gimp desktop='^5' follow=on
bspc rule -a obs desktop='^9' follow=on
bspc rule -a darktable desktop='^4' follow=on
xsetroot -cursor_name left_ptr &
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
dunst -config ~/.config/bspwm/dunst/dunstrc &
picom --config ~/.config/bspwm/picom/picom.conf --animations -b &
feh --bg-fill ~/.config/bspwm/wallpaper/gruvbox-dark-debian-scalable.svg
## Polybar or tint
~/.config/bspwm/polybar/polybar-bspwm &
## apps for systray if enabled
# volumeicon &
# nm-applet &
# (re)load sxhkd for keybinds
if hash sxhkd >/dev/null 2>&1; then
pkill sxhkd
sleep 0.5
sxhkd -c "$HOME/.config/bspwm/sxhkd/sxhkdrc" &
fi
Comentaris
Publica un comentari a l'entrada