diff options
| -rwxr-xr-x | Scripts/.config/Scripts/screen.sh | 26 | ||||
| -rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 4 |
2 files changed, 14 insertions, 16 deletions
diff --git a/Scripts/.config/Scripts/screen.sh b/Scripts/.config/Scripts/screen.sh index 21d91fc..54b6807 100755 --- a/Scripts/.config/Scripts/screen.sh +++ b/Scripts/.config/Scripts/screen.sh @@ -3,35 +3,33 @@ #Feed this script either: # "l" for laptop screen only, # "h" for hdmi screen only, -# or "d" for dual vga/laptop. +# "v" for vga screen only, +# or "d" for dual hdmi/vga/laptop. -MONS="$(xrandr --query | grep -w 'connected' | cut -d ' ' -f1)" +MONS=$(xrandr --query | grep -w 'connected' | cut -d ' ' -f1) MON_COUNT=$(echo "$MONS" | wc -l) PRIMARY=$(echo "$MONS" | head -n 1) d() { if [[ "$MON_COUNT" -gt 1 ]] - then param $1 + then param "$1" else echo "No secondary input detected." fi ;} -#dual() { xrandr --output LVDS-1 --primary --auto --output VGA-1 --auto --left-of LVDS-1 ;} -#dual() { xrandr --output eDP-1 --primary --auto --output HDMI-2 --auto --right-of eDP-1 ;} - dual() { if [[ "$MON_COUNT" = 3 ]] - then xrandr --output $PRIMARY --primary --auto --output DP-1 --auto --left-of $PRIMARY --output HDMI-2 --auto --right-of $PRIMARY ; # office - else xrandr --output $PRIMARY --primary --auto --output HDMI-2 --auto --right-of $PRIMARY --output VGA-1 --auto --right-of $PRIMARY; # home + then xrandr --output "$PRIMARY" --primary --auto --output DP-1 --auto --left-of "$PRIMARY" --output HDMI-2 --auto --right-of "$PRIMARY" ; # office + else xrandr --output "$PRIMARY" --primary --auto --output HDMI-2 --auto --right-of "$PRIMARY" --output VGA-1 --auto --right-of "$PRIMARY"; # home fi ;} -laptop() { xrandr --output $PRIMARY --primary --auto --output HDMI-2 --off --output DP-1 --off --output VGA-1 --off ;} -#laptop() { xrandr --output LVDS-1 --primary --auto --output VGA-1 --off ;} -hdmi() { xrandr --output HDMI-2 --auto --output $PRIMARY --off ;} +laptop() { xrandr --output "$PRIMARY" --primary --auto --output HDMI-2 --off --output DP-1 --off --output VGA-1 --off ;} +hdmi() { xrandr --output HDMI-2 --auto --output "$PRIMARY" --off ;} +vga() { xrandr --output VGA-1 --auto --output "$PRIMARY" --off ;} #mirror() { xrandr --addmode VGA1 $lapres && xrandr --output LVDS1 --mode $lapres --output VGA1 --mode $lapres ;} param() { case $1 in d) dual ;; - v) vga ;; - h) hdmi ;; l) laptop ;; - *) echo -e "Invalid parameter. Add one of the following:\n\"d\" for dualscreen laptop and VGA.\n\"l\" for laptop only\n\"v\" for VGA only." ;; + h) hdmi ;; + v) vga ;; + *) echo -e "Invalid parameter. Add one of the following:\n\"d\" for dualscreen laptop and VGA/HDMI.\n\"l\" for laptop only\n\"v\" for VGA only.\n\"h\" for HDMI only." ;; esac ;} d $1 diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index b1f62fb..c2c9194 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -20,12 +20,12 @@ else fi bspc config border_width 3 -bspc config window_gap 27 +bspc config window_gap 36 bspc config active_border_color '#0C1115' -bspc config split_ratio 0.70 +bspc config split_ratio 0.60 bspc config borderless_monocle true bspc config gapless_monocle false bspc config click_to_focus button1 |
