-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cc54106
Showing
31 changed files
with
520 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
#!/bin/bash | ||
|
||
# Amber's Dotfiles | ||
|
||
# _____ ________________ __ __ __ | ||
# / _/ | / / ___/_ __/ | / / / / _____/ /_ | ||
# / // |/ /\__ \ / / / /| | / / / / / ___/ __ \ | ||
# _/ // /| /___/ // / / ___ |/ /___/ /____ (__ ) / / / | ||
# /___/_/ |_//____//_/ /_/ |_/_____/_____(_)____/_/ /_/ | ||
|
||
#--------------------------------------------------------------------- | ||
# Installation Script | ||
# | ||
# Conduct all necessary steps to install and configure my system | ||
# using my Arch Linux Dotfiles | ||
# | ||
# This script is meant to be ran as sudo in order to use pacman | ||
#--------------------------------------------------------------------- | ||
|
||
#--------------------------------------------------------------------- | ||
# Variables | ||
# Handy bash variables to have around for later | ||
#--------------------------------------------------------------------- | ||
|
||
# Thanks to colors.sh | ||
NO_FMT="\033[0m" | ||
F_BOLD="033[1m" | ||
C_AQUA="\033[38;5;14m" | ||
C_LIME="\033[38;5;10m" | ||
|
||
USER_HOME=$(getent passwd $SUDO_USER | cut -d: -f6) # Thanks to dogbane on stackoverflow | ||
|
||
# ___ _ _ _ _ _ _ _ _ | ||
# / __|___ _ __ _ __ __ _ _ _ __| | | | (_)_ _ ___ | | | | |_(_) |___ | ||
# | (__/ _ \ ' \| ' \/ _` | ' \/ _` | | |__| | ' \/ -_) | |_| | _| | (_-< | ||
# \___\___/_|_|_|_|_|_\__,_|_||_\__,_| |____|_|_||_\___| \___/ \__|_|_/__/ | ||
|
||
#--------------------------------------------------------------------- | ||
# Install core command line applications | ||
#--------------------------------------------------------------------- | ||
|
||
echo -e "[${F_BOLD}${C_LIME}Installation${NO_FMT}]: Command line utilities" | ||
sleep 5 | ||
pacman -S base-devel bash-completion btop neovim sed stow | ||
|
||
#--------------------------------------------------------------------- | ||
# Install yay AUR helper | ||
#--------------------------------------------------------------------- | ||
|
||
# This assumes git has been installed already to clone this script | ||
git clone https://aur.archlinux.org/yay.git $USER_HOME/git/yay | ||
(cd $USER_HOME/git/yay && makepkg -si) | ||
|
||
#--------------------------------------------------------------------- | ||
# Enable pacman parallel downloads - Can change using replacement txt | ||
#--------------------------------------------------------------------- | ||
|
||
sed -i 's/# ParallelDownloads = 5/ParallelDownloads = 5' /etc/pacman.conf | ||
|
||
# _ _ _ _ ___ | ||
# | || |_ _ _ __ _ _| |__ _ _ _ __| | / __|___ _ _ ___ | ||
# | __ | || | '_ \ '_| / _` | ' \/ _` | | (__/ _ \ '_/ -_) | ||
# |_||_|\_, | .__/_| |_\__,_|_||_\__,_| \___\___/_| \___| | ||
# |__/|_| | ||
|
||
echo -e "[${F_BOLD}${C_LIME}Installation${NO_FMT}]: Hyprland core" | ||
sleep 5 | ||
pacman -S hyprland qt5-wayland qt6-wayland xdg-desktop-portal-hyprland | ||
|
||
# ___ ___ __ ___ | ||
# | \| _ )_ _ ___ / / | \ __ _ ___ _ __ ___ _ _ ___ | ||
# | |) | _ \ || (_-< / / | |) / _` / -_) ' \/ _ \ ' \(_-< | ||
# |___/|___/\_,_/__/ /_/ |___/\__,_\___|_|_|_\___/_||_/__/ | ||
# | ||
|
||
echo -e "[${F_BOLD}${C_LIME}Installation${NO_FMT}]: System bus applications & daemons" | ||
sleep 5 | ||
pacman -S blueman brightnessctl cliphist network-manager-applet pipewire pipewire-pulse polkit-kde-agent tumbler wl-clipboard | ||
# yay -S wl-clip-persist (doesn't seem to be required?) | ||
|
||
# ___ _ _ __ ___ _ _ _ | ||
# | \ ___ __| |_| |_ ___ _ __ / / / __| |_ _ _| (_)_ _ __ _ | ||
# | |) / -_|_-< / / _/ _ \ '_ \ / / \__ \ _| || | | | ' \/ _` | | ||
# |___/\___/__/_\_\\__\___/ .__/ /_/ |___/\__|\_, |_|_|_||_\__, | | ||
# |_| |__/ |___/ | ||
|
||
echo -e "[${F_BOLD}${C_LIME}Installation${NO_FMT}]: Desktop accessories, utilities, and customization" | ||
sleep 5 | ||
pacman -S grim hypridle hyprlock imagemagick mako ntp plymouth sddm starship swappy swww ttf-jetbrains-mono-nerd ttf-zed-mono-nerd waybar wofi | ||
runuser -u $SUDO_USER yay -S hyprpicker plymouth-theme-arch-logo pywal-16-colors sddm-theme-corners-git wlogout | ||
|
||
|
||
# _ __ __ __ _ | ||
# /_\ _ __ _ __ ___ / / | \/ (_)___ __ | ||
# / _ \| '_ \ '_ (_-< / / | |\/| | (_-</ _| | ||
# /_/ \_\ .__/ .__/__/ /_/ |_| |_|_/__/\__| | ||
# |_| |_| | ||
|
||
echo -e "[${F_BOLD}${C_LIME}Installation${NO_FMT}]: Desktop applications and miscellaneous software" | ||
sleep 5 | ||
pacman -S cheese cutefish-icons file-roller gnome-text-editor inkscape kvantum libreoffice-fresh loupe nwg-look pavucontrol python-pyfiglet qt6ct snapper thunar | ||
runuser -u $SUDO_USER yay -S tidal-hifi-bin snp | ||
|
||
# ___ _ __ _ _ __ ___ __ | ||
# | \ ___| |_ / _(_) |___ ___ / / / __|/ _|__ _ | ||
# | |) / _ \ _| _| | / -_|_-< / / | (__| _/ _` | | ||
# |___/\___/\__|_| |_|_\___/__/ /_/ \___|_| \__, | | ||
# |___/ | ||
|
||
#--------------------------------------------------------------------- | ||
# Stow dotfiles | ||
#--------------------------------------------------------------------- | ||
|
||
echo -e "[${F_BOLD}${C_AQUA}Config${NO_FMT}]: Stow dotfiles" | ||
sleep 5 | ||
stow $USER_HOME/.dotfiles/ | ||
|
||
#--------------------------------------------------------------------- | ||
# Modify the Corners sddm theme / sddm conf | ||
#--------------------------------------------------------------------- | ||
|
||
echo -e "[${F_BOLD}${C_AQUA}Config${NO_FMT}]: Modify SDDM configuration & theme" | ||
sleep 5 | ||
echo "[Theme]\nCurrent=corners" > /etc/sddm.conf | ||
cp -f sddm/scripts/* /usr/share/sddm/scripts/ | ||
ln -sf $USER_HOME/.backgrounds /usr/share/sddm/themes/corners/backgrounds | ||
|
||
#--------------------------------------------------------------------- | ||
# Configure and enable Plymouth | ||
#--------------------------------------------------------------------- | ||
|
||
echo -e "[${F_BOLD}${C_AQUA}Config${NO_FMT}]: Configure and enable Plymouth" | ||
sleep 5 | ||
|
||
# Append "quiet splash" to the systemd bootloader params | ||
BOOTLOADER_CONFIG=/boot/loader/entries/arch.conf | ||
END_LINE=$(sed -n '$p' $BOOTLOADER_CONFIG) | ||
sed -i '$d' $BOOTLOADER_CONFIG | ||
echo "${END_LINE} quiet splash" >> $BOOTLOADER_CONFIG | ||
|
||
# Add plymouth to mkinitcpio hooks - This inserts it after udev in the only | ||
# un-commmented HOOKS line in default mkinitcpio.conf | ||
sed -i 's/\nHOOKS=(base udev/\nHOOKS=(base udev plymouth' /etc/mkinitcpio.conf | ||
|
||
# Append ShowDelay=0 to plymouthd.conf | ||
echo "ShowDelay=0" >> /etc/plymouth/plymouthd.conf | ||
|
||
# Set plymouth theme and rebuild mkinitcpio | ||
plymouth-set-default-theme -R arch-logo | ||
|
||
# _______ _ __ ____ | ||
# / ____(_)___ (_)____/ /_ ___ ____/ / / | ||
# / /_ / / __ \/ / ___/ __ \/ _ \/ __ / / | ||
# / __/ / / / / / (__ ) / / / __/ /_/ /_/ | ||
# /_/ /_/_/ /_/_/____/_/ /_/\___/\__,_(_) | ||
|
||
systemctl reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
## Dotfile Notes | ||
|
||
- Themeing applications gets a bit complicated | ||
- GTK applications can be themed with lxappearance, but nwg-look seems to work better | ||
- KDE applications use qt6, qt applications can be themed with qt6ct | ||
- Would be wise to keep both on hand | ||
- KDE applications also can support kvantum themes, installed with kvantum | ||
- libadwaita-without-adwaita-git from the AUR makes libadwaita applications respect the system GTK theme | ||
|
||
- Decide if I want mostly GTK applications or KDE applications | ||
- Get GTK apps | ||
|
||
###### Misc packages | ||
power-profiles-daemon for power profile management, integrates with Waybar | ||
|
||
###### Required applications | ||
- Look into the gnome suite - everything I can install without installing gnome itself | ||
|
||
#### Useful applications | ||
- hyprpicker Terminal color picker for Hyprland | ||
|
||
###### Clipboard history | ||
- cliphist | ||
- wl-clip-persist enables clipboard history to be preserved after source application is closed | ||
- wl-clipboard dependency | ||
- wtype allows for automatic virtual keypresses if so desired | ||
|
||
###### File browser | ||
- Thunar | ||
- Needs tumbler installed for image previews | ||
|
||
###### Waybar modules I'm interested in for basic theme | ||
- Left: Window title, application cycling thingy? | ||
- Center: Workspaces | ||
- Right: Volume, CPU, Temp, MEM, Brightness, Battery, date/time, tray (figure out how to style network & bluetooth? custom waybar modules? maybe check that guy's dotfiles) | ||
|
||
###### Audio | ||
- pipewire audio backend | ||
- wireplumber audio server | ||
- pipewire-pulse to connect pipewire to pulseaudio applications | ||
- pavucontrol for GUI audio control | ||
|
||
###### Clock | ||
- ntp package has network time sync service. I would think this would get installed by default? whatever. | ||
|
||
## Styling for starter style | ||
- Green-ish color for now 5BCE22 | ||
- Maroon for "off" or "bad" CC2014 | ||
- Yellow / goldenrod for "warning" FFD700 (Gold in CSS colors) | ||
- Use a proportional nerd font to center icons correctly e.g. ZedMono NFP | ||
|
||
▁▂▃▄▅▆▇█ | ||
|
||
## INSTALL SCRIPT ORDER OF OPERATIONS | ||
- Install command line utilities | ||
- Install and build yay | ||
- Install hyprland core | ||
- Install system bus applications & daemons (check what's installed already?) | ||
- Install desktop accessories & customization | ||
- Install other misc applications | ||
- Stow dotfiles | ||
- Modify sddm files - symlink background images folder to .backgrounds? | ||
- Append bootloader conf - add "quiet splash" | ||
- Modify / overwrite mkinitcpio | ||
- Append ShowDelay=0 to /etc/plymouth/plymouthd.conf | ||
- Set Plymouth theme - will rebuild initramfs | ||
|
||
## APPS | ||
|
||
#### Command line utilities | ||
- git (No, need this to clone repo! will have to be installed manually) | ||
- base-devel | ||
- bash-completion | ||
- btop | ||
- neovim | ||
- zsh | ||
- stow | ||
- sed | ||
|
||
- yay (clone from aur)s | ||
|
||
#### Base hyprland | ||
- hyprland | ||
- xdg-desktop-portal-hyprland | ||
- qt5-wayland | ||
- qt6-wayland | ||
|
||
|
||
#### System bus & daemons | ||
- pipewire | ||
- pipewire-pulse | ||
- wireplumber | ||
- blueman for bluetooth | ||
- brightnessctl | ||
- cliphist | ||
- wl-clipboard | ||
- wl-clip-persist (aur) | ||
- polkit-gnome | ||
- networkmanager | ||
- network-manager-applet | ||
- tumbler | ||
|
||
#### Desktop accessories & prettying | ||
- plymouth | ||
- plymouth-theme-dark-arch (aur) | ||
- waybar | ||
- wlogout (aur) | ||
- sddm | ||
- sddm-theme-corners-git (aur) | ||
- swww | ||
- wofi | ||
- mako | ||
- grim | ||
- swappy | ||
- ttf-jetbrains-mono-nerd | ||
- ttf-zed-mono-nerd | ||
- hyprpicker (aur) | ||
- hypridle | ||
- hyprlock | ||
- ntp | ||
- pywal-16-colors (aur) | ||
- imagemagick | ||
- starship | ||
|
||
#### GTK utilities / desktop apps | ||
- fileroller | ||
- pavucontrol | ||
- thunar | ||
- thunar-archive-plugin (?) | ||
- nwg-look | ||
- qt6ct | ||
- kvantum | ||
- cutefish-icons | ||
- gnome-text-editor | ||
- cheese | ||
|
||
#### Media and extras | ||
- tidal-hifi-bin (aur) | ||
- python-pyfiglet | ||
- inkscape | ||
- libreoffice-fresh | ||
- loupe | ||
|
||
- snapper | ||
- snp (aur) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
new saturated pastel blue 62bbd6 | ||
very dark, almost black 141a1c | ||
grayish 213238 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
# Xsetup - run as root before the login dialog appears | ||
|
||
sudo /usr/share/sddm/scripts/createRandomSymLinkToWallpaper.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
# Xstop - run as root after stopping X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Get the path to the theme's folder | ||
SDDM_CORNERS_FOLDER="/usr/share/sddm/themes/corners" | ||
|
||
# Get a random image file from the theme's background images folder (symlink to $USER_HOME/.backgrounds) | ||
IMAGE_FILE=$(find -L $SDDM_CORNERS_FOLDER/backgrounds -type f | shuf -n 1) | ||
|
||
# Copy a random wallpaper - SDDM can't use symlink to my home folder when I'm not logged in | ||
cp -f "$IMAGE_FILE" "$SDDM_CORNERS_FOLDER/randomlySelectedWallpaper" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.