Update install.sh

This commit is contained in:
2024-05-19 13:08:58 +02:00
parent 1dba0987b8
commit 3e883abe36

View File

@@ -20,16 +20,25 @@
# autorandr --remove PROFILENAME # autorandr --remove PROFILENAME
# autorandr --default PROFILENAME # autorandr --default PROFILENAME
# fwupd "Firmware update daemon" - https://github.com/fwupd/fwupd
# fwupdmgr get-devices && fwupdmgr refresh
# fwupdmgr get-updates && fwupdmgr update
# fzf "general-purpose command-line fuzzy finder" # fzf "general-purpose command-line fuzzy finder"
# https://github.com/junegunn/fzf # https://github.com/junegunn/fzf
# nano $(fzf --preview='cat {}') # nano $(fzf --preview='cat {}')
# nsxiv "Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer" - https://github.com/nsxiv/nsxiv
# Neovim (nvim) - https://neovim.io/ - https://neovim.io/doc/user/vimindex.html # Neovim (nvim) - https://neovim.io/ - https://neovim.io/doc/user/vimindex.html
# Vim commands you NEED TO KNOW https://www.youtube.com/watch?v=RSlrxE21l_k # Vim commands you NEED TO KNOW https://www.youtube.com/watch?v=RSlrxE21l_k
# LazyVim - Can be used after Neovim >= 0.9.0 - https://github.com/LazyVim/LazyVim # LazyVim - Can be used after Neovim >= 0.9.0 - https://github.com/LazyVim/LazyVim
# https://github.com/folke/lazy.nvim # https://github.com/folke/lazy.nvim
# Start the install *_:*:_*:*:_*_*:*:_*::*_*::*_*:_*::*_*:*:**_:*:*_*:*:_*:*_:*:# # Start the install *_:*:_*:*:_*_*:*:_*::*_*::*_*:_*::*_*:*:**_:*:*_*:*:_*:*_:*:#
# Whiptail colors # Whiptail colors
@@ -154,10 +163,10 @@ sudo apt update
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
echo -e "${YELLOW} Core System APT install ${NC}" echo -e "${YELLOW} Core System APT install ${NC}"
sudo apt install -y xserver-xorg x11-utils xinit arandr autorandr picom fwupd mesa-utils htop feh wget curl git alsa-utils alsa-tools pulseaudio 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 sudo apt install -y xserver-xorg x11-utils xinit arandr autorandr picom fwupd mesa-utils htop wget curl git alsa-utils alsa-tools 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 tmux feh
sudo apt install -y sddm --no-install-recommends sudo apt install -y sddm --no-install-recommends
sudo apt install -y nitrogen xarchiver mpv flameshot speedcrunch mc gvfs-backends mpd mpc ncmpcpp fzf sudo apt install -y nitrogen xarchiver mpv flameshot speedcrunch mc gvfs-backends mpd mpc ncmpcpp fzf nsxiv
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
echo -e "${YELLOW} Audio on system - https://alsa.opensrc.org - https://wiki.debian.org/ALSA ${NC}" echo -e "${YELLOW} Audio on system - https://alsa.opensrc.org - https://wiki.debian.org/ALSA ${NC}"
@@ -166,7 +175,16 @@ echo -e "${YELLOW} Audio on system - https://alsa.opensrc.org - https://wiki.deb
# sudo adduser $USER audio # sudo adduser $USER audio
sudo alsactl init sudo alsactl init
systemctl --user enable pulseaudio # PipeWire Sound Server - https://pipewire.org/
sudo apt install -y pipewire pipewire-pulse wireplumber
systemctl --user enable pipewire.socket pipewire-pulse.socket
systemctl --user enable wireplumber.service
# PulseAudio
#sudo apt install -y pulseaudio
#systemctl --user enable pulseaudio
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
echo -e "${YELLOW} CPU Microcode install start ${NC}" echo -e "${YELLOW} CPU Microcode install start ${NC}"
@@ -309,18 +327,17 @@ decoder {
} }
# Audio output # Audio output
audio_output {
type "pulse"
name "Pulse Output"
}
#audio_output { audio_output {
# type "alsa" type "pipewire"
# name "ALSA default" name "PipeWire Sound Server"
# device "default:CARD=Audio" enabled "yes"
#}
# MPD End of config audio_output {
type "pulse"
name "Local PulseAudio Server"
enabled "no"
}
MPDCONFIG MPDCONFIG
@@ -426,6 +443,27 @@ else
fi fi
echo -e "${YELLOW} Neovim config END ${NC}" echo -e "${YELLOW} Neovim config END ${NC}"
# -------------------------------------------------------------------------------------------------
echo -e "${YELLOW} Tmux config Start ${NC}"
if [ ! -f ~.config/tmux/tmux.conf ]; then
mkdir -p ~/.config/tmux
cat << "TMUXCONFIG" > ~.config/tmux/tmux.conf
unbind r
bind r source-file ~.config/tmux/tmux.conf
TMUXCONFIG
else
echo "Tmux config file already exists."
fi
echo -e "${YELLOW} Tmux config END ${NC}"
# -------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
@@ -2389,9 +2427,15 @@ keys = [
Key([mod, "mod1", "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), Key([mod, "mod1", "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
# XF86 Audio & Brightness keys # XF86 Audio & Brightness keys
Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer set Master 2%+"), desc='Volume Up'), Key([], "XF86AudioRaiseVolume", lazy.spawn("wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 1%+"), desc='Volume Up'),
Key([], "XF86AudioLowerVolume", lazy.spawn("amixer set Master 5%+"), desc='Volume down'), Key([], "XF86AudioLowerVolume", lazy.spawn("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), desc='Volume down'),
Key([], "XF86AudioMute", lazy.spawn("amixer set Master toggle"), desc='Volume Mute'), Key([], "XF86AudioMute", lazy.spawn("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), desc='Volume Mute toggle'),
# mute/unmute the microphone - wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
# Show volume level - wpctl get-volume @DEFAULT_AUDIO_SINK@
# Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer set Master 2%+"), desc='Volume Up'),
# Key([], "XF86AudioLowerVolume", lazy.spawn("amixer set Master 5%+"), desc='Volume down'),
# Key([], "XF86AudioMute", lazy.spawn("amixer set Master toggle"), desc='Volume Mute'),
Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause"), desc='Play-Pause'), Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause"), desc='Play-Pause'),
Key([], "XF86AudioPrev", lazy.spawn("playerctl previous"), desc='Previous'), Key([], "XF86AudioPrev", lazy.spawn("playerctl previous"), desc='Previous'),
Key([], "XF86AudioNext", lazy.spawn("playerctl next"), desc='Next'), Key([], "XF86AudioNext", lazy.spawn("playerctl next"), desc='Next'),