Fix resolution script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
f450e6bc92
commit
0c519c15fe
2 changed files with 39 additions and 39 deletions
70
install
70
install
|
@ -149,47 +149,47 @@ fi
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Install package manager and packages #
|
# Install package manager and packages #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# print_section "Installing package requirements"
|
print_section "Installing package requirements"
|
||||||
# sudo pacman -S sudo ccache git base-devel --noconfirm --needed
|
sudo pacman -S sudo ccache git base-devel --noconfirm --needed
|
||||||
|
|
||||||
# print_section "Installing yay"
|
print_section "Installing yay"
|
||||||
# is_yay_installed=$(command -v yay)
|
is_yay_installed=$(command -v yay)
|
||||||
|
|
||||||
# # Install yay if not already installed
|
# Install yay if not already installed
|
||||||
# if [ -z "${is_yay_installed}" ]; then
|
if [ -z "${is_yay_installed}" ]; then
|
||||||
# git clone https://aur.archlinux.org/yay.git
|
git clone https://aur.archlinux.org/yay.git
|
||||||
# (
|
(
|
||||||
# cd yay || exit
|
cd yay || exit
|
||||||
# makepkg -si --noconfirm --skippgpcheck
|
makepkg -si --noconfirm --skippgpcheck
|
||||||
# )
|
)
|
||||||
# rm -rf yay
|
rm -rf yay
|
||||||
# else
|
else
|
||||||
# print_log "yay is already installed"
|
print_log "yay is already installed"
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# print_section "Installing native packages"
|
print_section "Installing native packages"
|
||||||
# # List created using: yay -Qqen > packages.native.list
|
# List created using: yay -Qqen > packages.native.list
|
||||||
# package_count=$(< "${PACKAGES_DIR}/packages.native.list" wc -l)
|
package_count=$(< "${PACKAGES_DIR}/packages.native.list" wc -l)
|
||||||
# print_log "Installing ${package_count} packages"
|
print_log "Installing ${package_count} packages"
|
||||||
# yay -Syy > /dev/null 2>&1
|
yay -Syy > /dev/null 2>&1
|
||||||
# yay -S --noconfirm --sudoloop --needed --devel --nopgpfetch --mflags --skippgpcheck - < "${PACKAGES_DIR}/packages.native.list"
|
yay -S --noconfirm --sudoloop --needed --devel --nopgpfetch --mflags --skippgpcheck - < "${PACKAGES_DIR}/packages.native.list"
|
||||||
|
|
||||||
# print_section "Installing Rust toolchain and components"
|
print_section "Installing Rust toolchain and components"
|
||||||
# rustup toolchain install beta
|
rustup toolchain install beta
|
||||||
# rustup default beta
|
rustup default beta
|
||||||
# rustup component add "${RUST_COMPONENTS[@]}"
|
rustup component add "${RUST_COMPONENTS[@]}"
|
||||||
# rustup default beta
|
rustup default beta
|
||||||
|
|
||||||
# print_section "Installing AUR packages"
|
print_section "Installing AUR packages"
|
||||||
# package_count=$(< "${PACKAGES_DIR}/packages.aur.list" wc -l)
|
package_count=$(< "${PACKAGES_DIR}/packages.aur.list" wc -l)
|
||||||
# # List created using: yay -Qqem > packages.aur.list
|
# List created using: yay -Qqem > packages.aur.list
|
||||||
# print_log "Installing ${package_count} packages"
|
print_log "Installing ${package_count} packages"
|
||||||
# yay -Syy > /dev/null 2>&1
|
yay -Syy > /dev/null 2>&1
|
||||||
# yay -S --noconfirm --sudoloop --needed --devel --nopgpfetch --mflags --skippgpcheck - < "${PACKAGES_DIR}/packages.aur.list"
|
yay -S --noconfirm --sudoloop --needed --devel --nopgpfetch --mflags --skippgpcheck - < "${PACKAGES_DIR}/packages.aur.list"
|
||||||
|
|
||||||
# print_section "Installing global npm packages"
|
print_section "Installing global npm packages"
|
||||||
# print_log "Installing ${#NPM_PACKAGES[@]} packages"
|
print_log "Installing ${#NPM_PACKAGES[@]} packages"
|
||||||
# npm i -g "${NPM_PACKAGES[@]}"
|
npm i -g "${NPM_PACKAGES[@]}"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Creating directories #
|
# Creating directories #
|
||||||
|
|
|
@ -33,13 +33,13 @@ xrandr --output eDP1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal
|
||||||
xrandr --output eDP-1-1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal
|
xrandr --output eDP-1-1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal
|
||||||
|
|
||||||
if is-connected "DVI-I-1-1"; then
|
if is-connected "DVI-I-1-1"; then
|
||||||
xrandr --output DVI-I-1-1 --off
|
|
||||||
else
|
|
||||||
xrandr --output DVI-I-1-1 --mode 1920x1080 --left-of eDP1
|
xrandr --output DVI-I-1-1 --mode 1920x1080 --left-of eDP1
|
||||||
|
else
|
||||||
|
xrandr --output DVI-I-1-1 --off
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if is-connected "DVI-I-2-1"; then
|
if is-connected "DVI-I-2-1"; then
|
||||||
xrandr --output DVI-I-2-1 --off
|
|
||||||
else
|
|
||||||
xrandr --output DVI-I-2-1 --mode 1920x1080 --left-of eDP-1-1
|
xrandr --output DVI-I-2-1 --mode 1920x1080 --left-of eDP-1-1
|
||||||
|
else
|
||||||
|
xrandr --output DVI-I-2-1 --off
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue