Update install.sh

This commit is contained in:
2024-05-24 21:19:24 +02:00
parent 1110bccddd
commit 374387bfbd

View File

@@ -107,7 +107,7 @@ echo -e "${YELLOW} Install selection choose what to install Start ${NC}"
PROGRAMS=$(whiptail --title "The Install selection" --checklist --separate-output \
"Choose what to install:" 20 78 15 \
"1" "Do you want to install Kitty terminal or use XTerm" ON \
"1" "Do you want to install Libre Office" OFF \
"2" "Is this a laptop we are installing on!" OFF \
"3" "Install XRDP Remote desktop" OFF \
"4" "Install Thunar file manager" ON \
@@ -151,7 +151,7 @@ sudo apt update
# -------------------------------------------------------------------------------------------------
clear
echo -e "${YELLOW} Core System APT install ${NC}"
sudo apt install -y xserver-xorg x11-utils xinit arandr autorandr picom fwupd mesa-utils htop wget curl git tmux numlockx cups xsensors xbacklight brightnessctl unzip network-manager dunst libnotify-bin notify-osd xautolock xsecurelock pm-utils rofi fontconfig fontconfig-config fonts-dejavu-core libfontconfig1 fonts-arkpandora
sudo apt install -y xserver-xorg x11-utils xinit arandr autorandr picom fwupd mesa-utils htop wget curl git tmux numlockx kitty cups xsensors xbacklight brightnessctl unzip network-manager dunst libnotify-bin notify-osd xautolock xsecurelock pm-utils rofi fontconfig fontconfig-config fonts-dejavu-core libfontconfig1 fonts-arkpandora
sudo apt install -y sddm --no-install-recommends
sudo apt install -y imagemagick nitrogen nsxiv mpv flameshot speedcrunch mc gvfs-backends parted gparted mpd mpc ncmpcpp fzf xarchiver
@@ -762,6 +762,7 @@ echo -e "${YELLOW} Download Unsplash Wallpapers BIN END ${NC}"
echo -e "${YELLOW} auto-new-wallpaper-and-colors BIN START ${NC}"
sudo bash -c 'cat << "AUTONEWWALLPAPERANDCOLORSBIN" >> /usr/local/bin/auto-new-wallpaper-and-colors
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/.local/bin
# Check if Python script exists
if [ ! -f "$HOME/.config/qtile/extract_colors.py" ]; then
@@ -769,7 +770,8 @@ if [ ! -f "$HOME/.config/qtile/extract_colors.py" ]; then
exit 1
fi
feh --bg-scale "$(find $HOME/Wallpapers -type f | shuf -n 1)"
feh --bg-scale --randomize $HOME/Wallpapers/*
#feh --bg-scale "$(find $HOME/Wallpapers -type f | shuf -n 1)"
# Run Python script to extract colors
python3 $HOME/.config/qtile/extract_colors.py $(cat $HOME/.fehbg | sed -n "s/[^'\'']*'\''\([^'\'']*\)'\''.*/\1/p")
@@ -1392,7 +1394,7 @@ for PROGRAM in $PROGRAMS
do
case $PROGRAM in
"1")
sudo apt install -y kitty
sudo apt install -y libreoffice
;;
"2")
sudo apt install -y tlp tlp-rdw
@@ -1500,6 +1502,7 @@ keys = [
Key([mod], "r", lazy.spawn(runmenu), desc='Launch Run Menu'),
Key([mod, "shift"], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
Key([mod], "l", lazy.spawn(os.path.expanduser("xsecurelock")), desc='Computer Lockdown'),
Key([mod, "control", "mod1"], "n", lazy.spawn(os.path.expanduser("auto-new-wallpaper-and-colors")), desc='Random background image and new colors'),
# Default
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),