mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 20:20:38 +02:00
Change attributes of .local/bin/brightness.sh
Change attributes of .local/bin/change_colors.sh Change attributes of .local/bin/change_wallpaper.sh Change attributes of .local/bin/check-do-not-disturb.sh Change attributes of .local/bin/check-if-muted.sh Change attributes of .local/bin/home_backup.sh Change attributes of .local/bin/random_wallpaper.sh Change attributes of .local/bin/restart_waybar.sh Change attributes of .local/bin/screenshot.sh Change attributes of .local/bin/screenshots.sh Change attributes of .local/bin/sekirofpsunlock Change attributes of .local/bin/start_coding.sh Change attributes of .local/bin/system_setup.sh Change attributes of .local/bin/wp-vol.sh Change attributes of .local/bin/old/brightness.sh Change attributes of .local/bin/old/change_colors.sh Change attributes of .local/bin/old/random_wallpaper.sh Change attributes of .local/bin/old/screenshots_overcomplified.sh Change attributes of .local/bin/steamtinkerlaunch
This commit is contained in:
152
private_dot_local/bin/executable_system_setup.sh
Normal file
152
private_dot_local/bin/executable_system_setup.sh
Normal file
@@ -0,0 +1,152 @@
|
||||
#!/bin/bash
|
||||
|
||||
# colors
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
BOLD='\033[1m'
|
||||
RESET='\033[0m'
|
||||
|
||||
# functions
|
||||
function install_yay() {
|
||||
echo "Yay is not installed, installing..."
|
||||
sudo pacman -S --needed git base-devel
|
||||
tmpdir="$(mktemp -d)"
|
||||
git clone https://aur.archlinux.org/yay.git "$tmpdir"
|
||||
cd "$tmpdir"
|
||||
makepkg -si
|
||||
cd -
|
||||
rm -rf "$tmpdir"
|
||||
}
|
||||
# pkgs lists
|
||||
HYPR_PKGS="
|
||||
hyprcursor
|
||||
hyprgraphics
|
||||
hypridle
|
||||
hyprland
|
||||
hyprland-qt-support
|
||||
hyprland-qtutils
|
||||
hyprlang
|
||||
hyprlock
|
||||
hyprpaper
|
||||
hyprpolkitagent
|
||||
hyprsunset
|
||||
hyprutils
|
||||
hyprwayland-scanner
|
||||
xdg-desktop-portal-hyprland
|
||||
xdg-desktop-portal-gtk
|
||||
mako
|
||||
libnotify
|
||||
"
|
||||
|
||||
SOUND_PKGS="
|
||||
pipewire
|
||||
wireplumber
|
||||
pipewire-audio
|
||||
pipewire-alsa
|
||||
pipewire-pulse
|
||||
pavucontrol
|
||||
"
|
||||
UTIL_PKGS="
|
||||
fish
|
||||
neovim
|
||||
uwsm
|
||||
python3
|
||||
util-linux
|
||||
libnewt
|
||||
wofi
|
||||
kitty
|
||||
yazi
|
||||
playerctl
|
||||
flatpak
|
||||
wl-clipboard
|
||||
scx-scheds
|
||||
man-db
|
||||
fastfetch
|
||||
btop
|
||||
file
|
||||
nerd-fonts
|
||||
ffmpeg
|
||||
7zip
|
||||
jq
|
||||
poppler
|
||||
fd
|
||||
ripgrep
|
||||
fzf
|
||||
zoxide
|
||||
imagemagick
|
||||
bat
|
||||
eza
|
||||
npm
|
||||
bc
|
||||
chezmoi
|
||||
github-cli
|
||||
openssh
|
||||
socat
|
||||
otf-font-awesome
|
||||
papirus-icon-theme
|
||||
hicolor-icon-theme
|
||||
noto-fonts-emoji
|
||||
cliphist
|
||||
"
|
||||
|
||||
GUI_PKGS="
|
||||
zen-browser-bin
|
||||
vesktop
|
||||
mangohud
|
||||
goverlay
|
||||
steam
|
||||
gimp
|
||||
gamescope
|
||||
gamemode
|
||||
bluez
|
||||
bluez-utils
|
||||
blueman
|
||||
heroic-games-launcher
|
||||
feh
|
||||
slurp
|
||||
grim
|
||||
"
|
||||
|
||||
PRINT_PKGS="
|
||||
cups
|
||||
cups-browsed
|
||||
"
|
||||
|
||||
THEME_PKGS="
|
||||
catppuccin-gtk-theme-latte
|
||||
"
|
||||
|
||||
PKGS=( $HYPR_PKGS $SOUND_PKGS $UTIL_PKGS $GUI_PKGS $PRINT_PKGS $THEME_PKGS )
|
||||
|
||||
echo "Downloading packages..."
|
||||
sudo pacman -Syu --needed "${PKGS[@]}"
|
||||
|
||||
if ! groups "$USER" | grep -qw "gamemode"; then
|
||||
sudo usermod -aG gamemode "$USER"
|
||||
fi
|
||||
|
||||
if ! echo $PATH | grep -q "$HOME/.local/bin"; then
|
||||
fish -c "fish_add_path \"$HOME/.local/bin\""
|
||||
fi
|
||||
|
||||
if ! echo $SHELL | grep -qw "/usr/bin/fish"; then
|
||||
chsh -s "$(command -v fish)"
|
||||
fi
|
||||
|
||||
if ! pacman -Q yay &>/dev/null; then
|
||||
install_yay
|
||||
else
|
||||
echo "Yay is installed..."
|
||||
fi
|
||||
|
||||
echo "Flatpak install..."
|
||||
|
||||
flatpak update --noninteractive
|
||||
flatpak install --noninteractive com.github.tchx84.Flatseal com.spotify.Client
|
||||
|
||||
echo "Services setup..."
|
||||
|
||||
systemctl --user enable hypridle hyprpolkitagent pipewire-pulse
|
||||
sudo systemctl enable bluetooth cups
|
||||
|
||||
echo -e "${BOLD}${GREEN}All done!${RESET}"
|
||||
Reference in New Issue
Block a user