Cleanup some stuff
This commit is contained in:
parent
f2e9a4061f
commit
ccd4c85027
7 changed files with 46 additions and 45 deletions
|
@ -13,44 +13,42 @@ bspc config presel_feedback_color "#6272a4"
|
|||
host_name=$(cat /proc/sys/kernel/hostname)
|
||||
mode=$(cat /tmp/bspwm_mode)
|
||||
|
||||
primary="${MONITOR_PRIMARY:-primary}"
|
||||
secondary="${MONITOR_SECONDARY:-secondary}"
|
||||
|
||||
if [ "$host_name" = "portalo" ]; then
|
||||
if [ "$mode" = "presenter" ]; then
|
||||
xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144
|
||||
xrandr --output "$MONITOR_SECONDARY" --auto --left-of "$MONITOR_PRIMARY"
|
||||
xrandr --output "$primary" --mode 2560x1440 --refresh 144
|
||||
xrandr --output "$secondary" --auto --left-of "$primary"
|
||||
|
||||
pkill xcompmgr;
|
||||
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus voip messenger presenter1
|
||||
bspc monitor "$MONITOR_SECONDARY" -d presenter2
|
||||
bspc monitor "$primary" -d web terminal 3 4 5 6 focus voip messenger presenter1
|
||||
bspc monitor "$secondary" -d presenter2
|
||||
elif [ "$mode" = "single" ]; then
|
||||
xrandr --output "$MONITOR_SECONDARY" --off
|
||||
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus side-view voip messenger
|
||||
xrandr --output "$secondary" --off
|
||||
bspc monitor "$primary" -d web terminal 3 4 5 6 focus side-view voip messenger
|
||||
else
|
||||
xrandr --output "$MONITOR_PRIMARY" --mode 2560x1440 --refresh 144
|
||||
xrandr --output "$MONITOR_SECONDARY" --auto --left-of "$MONITOR_PRIMARY"
|
||||
xrandr --output "$primary" --mode 2560x1440 --refresh 144
|
||||
xrandr --output "$secondary" --auto --left-of "$primary"
|
||||
|
||||
bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 focus
|
||||
bspc monitor "$MONITOR_SECONDARY" -d side-view voip messenger
|
||||
bspc monitor "$primary" -d web terminal 3 4 5 6 focus
|
||||
bspc monitor "$secondary" -d side-view voip messenger
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
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"
|
||||
|
||||
#elif echo "$host_name" | grep -Eq "laptop"; then
|
||||
else
|
||||
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 focus
|
||||
xrandr --output "$primary" --auto
|
||||
xrandr --output "$secondary" --left-of "$primary" --auto
|
||||
|
||||
bspc monitor "$primary" -d web terminal 3 4 5 6 focus messenger
|
||||
bspc monitor "$secondary" -d side-view 10
|
||||
|
||||
fi
|
||||
|
||||
bspc wm -O "$primary" "$secondary"
|
||||
sleep 1
|
||||
bspc wm -O "$primary" "$secondary"
|
||||
|
||||
bspc wm --adopt-orphans
|
||||
|
||||
bspc desktop web --layout monocle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue