From 510a0b14faf2c686b1fbef4d9ae78c5071169566 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Tue, 15 Dec 2020 21:46:12 +0100 Subject: [PATCH] bin: scripting adjustments --- .config/shell/functions | 2 +- .local/bin/setupScreens | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/shell/functions b/.config/shell/functions index 514e306..ed2ab9e 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -77,7 +77,7 @@ edbin() { alias l="ls -l --almost-all --human-readable --group-directories-first --file-type" cd() { test ! -e "$1" && test $# -eq 1 && cd $DATA/$1* && return - builtin cd "$1" && + builtin cd $1 && command ls --file-type --group-directories-first --color=always --format=vertical -w $COLUMNS | head -3 } diff --git a/.local/bin/setupScreens b/.local/bin/setupScreens index 9eed058..d4431b0 100755 --- a/.local/bin/setupScreens +++ b/.local/bin/setupScreens @@ -1,10 +1,10 @@ -#connected=$(xrandr | grep ' connected ') -#k4=$(xrandr | grep '3840' | cut -d' ' -f1) -#k2=$(xrandr | grep '1920' | cut -d' ' -f1) k4=$(xrandr | grep -1 ' 3840' | grep ' connected ' | cut -d' ' -f1) k2=$(xrandr | grep -1 ' 1920' | grep ' connected ' | cut -d' ' -f1) #xrandr --output $dp --auto --output $hdmi --mode 1680x1050 --scale 2x2 --right-of $dp && xrandr --output $hdmi --mode 1920x1080 -xrandr --output $k4 --auto --scale 1x1 --pos 0x0 --output $k2 --auto --scale 2x2 --mode 1920x1080 --pos 3841x0 +if test "$1" == "left" +then xrandr --output $k2 --auto --scale 2x2 --pos 0x0 --output $k4 --auto --scale 1x1 --pos 3841x0 +else xrandr --output $k4 --auto --scale 1x1 --pos 0x0 --output $k2 --auto --scale 2x2 --mode 1920x1080 --pos 3841x0 +fi #--fb 7681x2160 #xrandr --output $dp --auto --scale 0.5x0.5 --output $hdmi --scale 1x1 --mode 1920x1080 --fb 5760x1080 --right-of $dp