90 lines
3.1 KiB
Bash
Executable file
90 lines
3.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
. "$HOME/.config/environment"
|
|
|
|
bspc config normal_border_color "#44475a"
|
|
bspc config active_border_color "#bd93f9"
|
|
bspc config focused_border_color "#ff79c6"
|
|
bspc config presel_feedback_color "#6272a4"
|
|
|
|
host_name=$(cat /proc/sys/kernel/hostname)
|
|
if [ "$host_name" = "portalo" ]; then
|
|
xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144
|
|
xrandr --output "$MONITOR_SECONDARY" --left-of "$MONITOR_PRIMARY"
|
|
#primary="HDMI-A-0"
|
|
#secondary="DVI-D-0"
|
|
|
|
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus
|
|
bspc monitor "$MONITOR_SECONDARY" -d side-view voip messenger
|
|
|
|
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
|
sleep 1
|
|
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
|
|
|
elif echo "$host_name" | grep -Eq "laptop"; then
|
|
xrandr --output "$MONITOR_PRIMARY" --auto
|
|
xrandr --output "$MONITOR_SECONDARY" --left-of "$MONITOR_PRIMARY" --auto
|
|
#primary="eDP-1"
|
|
#secondary="HDMI-2"
|
|
|
|
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus messenger
|
|
bspc monitor "$MONITOR_SECONDARY" -d side-view 10
|
|
|
|
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
|
sleep 1
|
|
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
|
|
|
else
|
|
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 focus
|
|
fi
|
|
|
|
bspc desktop web --layout monocle
|
|
bspc desktop focus --layout monocle
|
|
bspc desktop side-view --layout monocle
|
|
|
|
bspc config border_width 1
|
|
bspc config window_gap 10
|
|
|
|
bspc config split_ratio 0.50
|
|
bspc config borderless_monocle true
|
|
bspc config gapless_monocle true
|
|
|
|
bspc config focus_follows_pointer true
|
|
|
|
bspc config automatic_scheme alternate
|
|
|
|
bspc config external_rules_command "$HOME/.config/bspwm/external_rules"
|
|
|
|
bspc rule -a 'firefox' desktop='web'
|
|
bspc rule -a 'qutebrowser' desktop='web'
|
|
bspc rule -a 'Gcr-prompter' desktop='web'
|
|
|
|
bspc rule -a 'qutebrowser:kiosk' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'firefox:Toolkit' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'vlc' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'MPlayer' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'mpv:gl' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'FreeTube' follow='true' desktop='side-view'
|
|
bspc rule -a 'Brave-browser:brave-browser' follow='true' desktop='side-view'
|
|
bspc rule -a 'Chromium:chromium' follow='true' desktop='side-view'
|
|
|
|
|
|
bspc rule -a 'TeamSpeak 3' desktop='voip' locked='true'
|
|
bspc rule -a '*:*:TeamSpeak' desktop='voip'
|
|
bspc rule -a 'Alacritty:mail' desktop='voip' locked='true'
|
|
bspc rule -a 'Element' desktop='voip' locked='true'
|
|
bspc rule -a 'Element (Riot)' desktop='voip' locked='true'
|
|
bspc rule -a 'discord' desktop='voip'
|
|
bspc rule -a 'Evolution' desktop='messenger'
|
|
#bspc rule -a 'Steam' desktop='focus'
|
|
bspc rule -a 'Zathura' state='tiled'
|
|
bspc rule -a 'sticky-note:sticky-note' state='floating' sticky='on' border='off'
|
|
bspc rule -a 'Xarchiver' state='floating'
|
|
|
|
bspc rule -a 'Signal' desktop='messenger'
|
|
bspc rule -a 'Thunderbird:Mail' desktop='messenger' locked='true'
|
|
|
|
"$HOME/.config/polybar/launch.sh" &
|
|
|
|
"$HOME/.config/bspwm/swallow.py" &
|
|
"$HOME/.config/bspwm/focus-voip.py" &
|