2020-02-15 16:19:43 +00:00
|
|
|
#!/bin/sh
|
2020-02-07 16:32:59 +00:00
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
. "$HOME/.config/environment"
|
|
|
|
|
2021-03-30 20:59:59 +00:00
|
|
|
bspc config normal_border_color "#44475a"
|
|
|
|
bspc config active_border_color "#bd93f9"
|
|
|
|
bspc config focused_border_color "#ff79c6"
|
|
|
|
bspc config presel_feedback_color "#6272a4"
|
|
|
|
|
2020-03-01 15:12:18 +00:00
|
|
|
host_name=$(cat /proc/sys/kernel/hostname)
|
2020-02-13 17:25:00 +00:00
|
|
|
if [[ $host_name == "portalo" ]]; then
|
2021-05-19 16:58:32 +00:00
|
|
|
xrandr --output $MONITOR_PRIMARY --mode 2560x1440 --refresh 144
|
2021-05-25 10:34:09 +00:00
|
|
|
xrandr --output $MONITOR_SECONDARY --left-of $MONITOR_PRIMARY
|
2021-04-30 14:31:30 +00:00
|
|
|
#primary="HDMI-A-0"
|
|
|
|
#secondary="DVI-D-0"
|
2020-11-18 15:08:10 +00:00
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
bspc monitor $MONITOR_PRIMARY -d web terminal 3 4 5 6 game
|
|
|
|
bspc monitor $MONITOR_SECONDARY -d side-view voip messenger
|
2021-02-23 15:33:23 +00:00
|
|
|
|
2021-05-19 16:58:32 +00:00
|
|
|
sleep 1
|
2021-04-30 14:31:30 +00:00
|
|
|
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
|
2020-02-13 17:25:00 +00:00
|
|
|
|
|
|
|
elif [[ $host_name == *"laptop"* ]]; then
|
2021-05-19 16:58:32 +00:00
|
|
|
xrandr --output $MONITOR_PRIMARY --auto
|
|
|
|
xrandr --output $MONITOR_SECONDARY --left-of $MONITOR_PRIMARY --auto
|
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
#primary="eDP-1"
|
|
|
|
#secondary="HDMI-2"
|
2021-04-07 10:39:01 +00:00
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
bspc monitor $MONITOR_PRIMARY -d web terminal 3 4 5 6 messenger
|
|
|
|
bspc monitor $MONITOR_SECONDARY -d side-view 9 10
|
2021-04-07 10:39:01 +00:00
|
|
|
|
2021-05-19 16:58:32 +00:00
|
|
|
sleep 1
|
2021-04-30 14:31:30 +00:00
|
|
|
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
|
2020-02-13 17:25:00 +00:00
|
|
|
else
|
2020-02-14 00:47:50 +00:00
|
|
|
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
|
2020-02-13 17:25:00 +00:00
|
|
|
fi
|
2020-02-07 16:32:59 +00:00
|
|
|
|
2020-02-15 16:19:43 +00:00
|
|
|
bspc desktop web --layout monocle
|
2020-11-18 15:08:10 +00:00
|
|
|
bspc desktop game --layout monocle
|
2021-02-23 15:33:23 +00:00
|
|
|
bspc desktop side-view --layout monocle
|
2020-02-07 16:32:59 +00:00
|
|
|
|
|
|
|
bspc config border_width 1
|
|
|
|
bspc config window_gap 10
|
|
|
|
|
2020-02-22 14:45:08 +00:00
|
|
|
bspc config split_ratio 0.50
|
2020-02-07 16:32:59 +00:00
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config gapless_monocle true
|
|
|
|
|
|
|
|
bspc config focus_follows_pointer true
|
|
|
|
|
2020-06-30 16:36:28 +00:00
|
|
|
bspc config automatic_scheme alternate
|
|
|
|
|
|
|
|
bspc config external_rules_command "$HOME/.config/bspwm/external_rules"
|
|
|
|
|
2020-02-14 00:47:50 +00:00
|
|
|
bspc rule -a 'firefox' desktop='web'
|
2020-10-07 11:53:05 +00:00
|
|
|
bspc rule -a 'qutebrowser' desktop='web'
|
2021-07-09 22:52:35 +00:00
|
|
|
bspc rule -a 'gcr-prompter' desktop='web'
|
2020-09-18 21:54:43 +00:00
|
|
|
|
2021-01-30 12:53:48 +00:00
|
|
|
bspc rule -a 'qutebrowser:kiosk' follow='true' desktop='side-view' state='fullscreen'
|
2020-02-27 21:43:20 +00:00
|
|
|
bspc rule -a 'firefox:Toolkit' follow='true' desktop='side-view' state='fullscreen'
|
2020-08-18 09:41:18 +00:00
|
|
|
bspc rule -a 'vlc' follow='true' desktop='side-view' state='fullscreen'
|
2020-07-15 13:50:56 +00:00
|
|
|
bspc rule -a 'MPlayer' follow='true' desktop='side-view' state='fullscreen'
|
2020-09-18 21:54:43 +00:00
|
|
|
bspc rule -a 'mpv:gl' follow='true' desktop='side-view' state='fullscreen'
|
2020-11-18 15:08:10 +00:00
|
|
|
bspc rule -a 'FreeTube' follow='true' desktop='side-view'
|
2021-03-20 07:26:49 +00:00
|
|
|
bspc rule -a 'Brave-browser:brave-browser' follow='true' desktop='side-view'
|
2021-05-13 12:26:52 +00:00
|
|
|
bspc rule -a 'Chromium:chromium' follow='true' desktop='side-view'
|
2020-11-18 15:08:10 +00:00
|
|
|
|
2020-09-18 21:54:43 +00:00
|
|
|
|
2020-06-30 16:36:28 +00:00
|
|
|
bspc rule -a 'TeamSpeak 3' desktop='voip' locked='true'
|
2021-03-30 20:59:59 +00:00
|
|
|
bspc rule -a '*:*:TeamSpeak' desktop='voip'
|
2020-07-20 10:33:23 +00:00
|
|
|
bspc rule -a 'Alacritty:mail' desktop='voip' locked='true'
|
2020-07-19 09:13:03 +00:00
|
|
|
bspc rule -a 'Element' desktop='voip' locked='true'
|
|
|
|
bspc rule -a 'Element (Riot)' desktop='voip' locked='true'
|
2020-02-14 00:47:50 +00:00
|
|
|
bspc rule -a 'discord' desktop='voip'
|
|
|
|
bspc rule -a 'Evolution' desktop='messenger'
|
2020-06-30 16:36:28 +00:00
|
|
|
#bspc rule -a 'Steam' desktop='game'
|
2020-02-27 21:43:20 +00:00
|
|
|
bspc rule -a 'Zathura' state='tiled'
|
2020-07-20 10:33:23 +00:00
|
|
|
bspc rule -a 'sticky-note:sticky-note' state='floating' sticky='on' border='off'
|
|
|
|
bspc rule -a 'Xarchiver' state='floating'
|
2020-02-07 16:32:59 +00:00
|
|
|
|
2021-04-16 08:19:27 +00:00
|
|
|
bspc rule -a 'Signal' desktop='messenger'
|
2021-02-13 22:02:27 +00:00
|
|
|
bspc rule -a 'Thunderbird:Mail' desktop='messenger' locked='true'
|
|
|
|
|
2020-02-07 16:32:59 +00:00
|
|
|
$HOME/.config/polybar/launch.sh &
|
2021-07-09 22:52:35 +00:00
|
|
|
|
|
|
|
$HOME/.config/bspwm/swallow.py &
|
|
|
|
$HOME/.config/bspwm/focus-voip.py &
|