Update install.sh
This commit is contained in:
98
install.sh
98
install.sh
@@ -111,11 +111,11 @@ else
|
||||
fi
|
||||
|
||||
|
||||
# Core System apt install
|
||||
# Core System APT install
|
||||
sudo apt install -y xserver-xorg x11-utils xinit arandr autorandr picom mesa-utils htop feh wget curl git alsa-utils alsa-tools pulseaudio numlockx cups xsensors xbacklight brightnessctl unzip
|
||||
sudo apt install -y sddm --no-install-recommends
|
||||
|
||||
sudo apt install -y nitrogen dunst notify-osd xarchiver mpv flameshot speedcrunch mc gvfs-backends
|
||||
sudo apt install -y nitrogen dunst notify-osd xarchiver mpv flameshot speedcrunch mc gvfs-backends mpd mpc ncmpcpp
|
||||
|
||||
# Audio on system - https://alsa.opensrc.org - https://wiki.debian.org/ALSA
|
||||
# See hardware run: "pacmd list-sinks" or "lspci | grep -i audio" or... sudo dmesg | grep 'snd\|firmware\|audio'
|
||||
@@ -196,7 +196,9 @@ cat <<QTILEAUTOSTART > ~/.config/qtile/autostart.sh
|
||||
pgrep -x picom > /dev/null || picom -b &
|
||||
amixer set Master 10% &
|
||||
dunst &
|
||||
. ~/.config/user-dirs.dirs &
|
||||
numlockx on &
|
||||
mpd &
|
||||
#nitrogen --restore &
|
||||
|
||||
QTILEAUTOSTART
|
||||
@@ -207,6 +209,82 @@ else
|
||||
echo "File autostart.sh already exists."
|
||||
fi
|
||||
|
||||
# MPD START - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
mkdir -p ~/.config/mpd/playlists
|
||||
mkdir -p ~/.local/state/mpd
|
||||
if [ ! -f ~/.config/mpd/mpd.conf ]; then
|
||||
cat <<MPDCONFIG > ~/.config/mpd/mpd.conf
|
||||
# ~/.config/mpd/mpd.conf or /etc/mpd.conf
|
||||
# Example: /usr/share/doc/mpd/mpdconf.example
|
||||
|
||||
# Recommended location for database
|
||||
db_file "~/.config/mpd/database"
|
||||
|
||||
# If running mpd using systemd, delete this line to log directly to systemd.
|
||||
# syslog or ~/.config/mpd/log
|
||||
log_file "~/.config/mpd/log"
|
||||
|
||||
# The music directory is by default the XDG directory, uncomment to amend and choose a different directory
|
||||
#music_directory "~/Music"
|
||||
|
||||
# MPD Server network
|
||||
bind_to_address "127.0.0.1"
|
||||
port "6600"
|
||||
|
||||
# Suppress all messages below the given threshold. Use "verbose" for
|
||||
# troubleshooting. Available setting arguments are "notice", "info", "verbose", "warning" and "error".
|
||||
log_level "error"
|
||||
|
||||
# Setting "restore_paused" to "yes" puts MPD into pause mode instead of starting playback after startup.
|
||||
restore_paused "yes"
|
||||
|
||||
# Uncomment to refresh the database whenever files in the music_directory are changed
|
||||
auto_update "yes"
|
||||
|
||||
# Uncomment to enable the functionalities
|
||||
playlist_directory "~/.config/mpd/playlists"
|
||||
pid_file "~/.config/mpd/pid"
|
||||
state_file "~/.local/state/mpd/state"
|
||||
sticker_file "~/.config/mpd/sticker.sql"
|
||||
follow_inside_symlinks "yes"
|
||||
# save_absolute_paths_in_playlists "no"
|
||||
|
||||
|
||||
decoder {
|
||||
plugin "wildmidi"
|
||||
config_file "/etc/timidity/timidity.cfg"
|
||||
enabled "no"
|
||||
}
|
||||
|
||||
# Audio output
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "Pulse Output"
|
||||
}
|
||||
|
||||
#audio_output {
|
||||
# type "alsa"
|
||||
# name "ALSA default"
|
||||
# device "default:CARD=Audio"
|
||||
#}
|
||||
|
||||
MPDCONFIG
|
||||
|
||||
# sudo systemctl enable mpd
|
||||
#systemctl enable --now --user mpd.service
|
||||
#systemctl enable --now --user mpd
|
||||
# systemctl status mpd.service
|
||||
|
||||
#systemctl enable --now --user mpd.socket
|
||||
#systemctl enable --now --user mpd.service
|
||||
|
||||
# mpd --version
|
||||
# mpd --stderr --no-daemon --verbose
|
||||
# aplay --list-pcm
|
||||
|
||||
# MPD END - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
|
||||
# Wallpapers START - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
@@ -218,7 +296,7 @@ echo -e "${GREEN} Download some wallpapers, Please wait..."
|
||||
|
||||
# Download random wallpapers from https://unsplash.com
|
||||
# Set the desired number of wallpapers to download
|
||||
count="18"
|
||||
count="24"
|
||||
|
||||
# Categories topics for the wallpapers like, minimalist-wallpapers "Remember to put a hyphen between the words"
|
||||
query="Dark-HD-minimalist-wallpapers"
|
||||
@@ -273,7 +351,6 @@ else
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Nerd Fonts START - https://www.nerdfonts.com/font-downloads - https://www.nerdfonts.com/cheat-sheet - - -
|
||||
if [ ! -d ~/.fonts ]; then
|
||||
mkdir -p ~/.fonts
|
||||
@@ -381,17 +458,18 @@ XRANDRSETMAX'
|
||||
|
||||
# SDDM Before Login - /usr/share/sddm/scripts/Xsetup and After Login - /usr/share/sddm/scripts/Xsession
|
||||
sudo sed -i '$a\. /usr/local/bin/xrandr-set-max' /usr/share/sddm/scripts/Xsetup
|
||||
sudo sed -i '$a\. /usr/local/bin/xrandr-set-max' /usr/share/sddm/scripts/Xsession
|
||||
|
||||
else
|
||||
echo "xrandr-set-max already exists."
|
||||
fi
|
||||
|
||||
if [ ! -f /etc/X11/Xsession.d/90_xrandr-set-max ]; then
|
||||
sudo cp /usr/local/bin/xrandr-set-max /etc/X11/Xsession.d/90_xrandr-set-max
|
||||
# Run at Login /etc/X11/Xsession.d/FILENAME
|
||||
else
|
||||
echo "/etc/X11/Xsession.d/90_xrandr-set-max already exists."
|
||||
fi
|
||||
#if [ ! -f /etc/X11/Xsession.d/90_xrandr-set-max ]; then
|
||||
# sudo cp /usr/local/bin/xrandr-set-max /etc/X11/Xsession.d/90_xrandr-set-max
|
||||
# # Run at Login /etc/X11/Xsession.d/FILENAME
|
||||
#else
|
||||
# echo "/etc/X11/Xsession.d/90_xrandr-set-max already exists."
|
||||
#fi
|
||||
|
||||
# xrandr-set-max + Xsession END ----------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user