Fix shellcheck issues
This commit is contained in:
parent
2ab76c75f7
commit
54ecc698f0
3 changed files with 35 additions and 43 deletions
.config/bspwm
|
@ -8,31 +8,31 @@ 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
|
||||
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 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
|
||||
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
||||
sleep 1
|
||||
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
|
||||
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
||||
|
||||
elif [[ $host_name == *"laptop"* ]]; then
|
||||
xrandr --output $MONITOR_PRIMARY --auto
|
||||
xrandr --output $MONITOR_SECONDARY --left-of $MONITOR_PRIMARY --auto
|
||||
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 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
|
||||
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
||||
sleep 1
|
||||
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
|
||||
bspc wm -O "$MONITOR_PRIMARY" "$MONITOR_SECONDARY"
|
||||
|
||||
else
|
||||
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 focus
|
||||
|
@ -84,7 +84,7 @@ 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/polybar/launch.sh" &
|
||||
|
||||
$HOME/.config/bspwm/swallow.py &
|
||||
$HOME/.config/bspwm/focus-voip.py &
|
||||
"$HOME/.config/bspwm/swallow.py" &
|
||||
"$HOME/.config/bspwm/focus-voip.py" &
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue