diff options
| author | JaKooLit <jimmielovejay@gmail.com~> | 2024-01-01 23:31:44 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com~> | 2024-01-01 23:31:44 +0900 |
| commit | 6f3b8439303e3488aeba19f8cb3eb7b1c3c9d329 (patch) | |
| tree | 001e69f538d9461e57be7ce7a9730b702f5d1e81 /copy.sh | |
| parent | 2bbe867a07895b5bfdd00722830324fb1b37cf11 (diff) | |
the downloading of additional wallpaper is set towards the end
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 44 |
1 files changed, 21 insertions, 23 deletions
@@ -186,6 +186,27 @@ chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" chmod +x ~/.config/hypr/UserScripts/* 2>&1 | tee -a "$LOG" # Set executable for initial-boot.sh chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" +printf "\n%.0s" {1..3} + +# Detect machine type and set Waybar configurations accordingly, logging the output +if hostnamectl | grep -q 'Chassis: desktop'; then + # Configurations for a desktop + ln -sf "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" + rm -r "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/configs/[BOT] Default Laptop" 2>&1 | tee -a "$LOG" +else + # Configurations for a laptop or any system other than desktop + ln -sf "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" + rm -r "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/configs/[BOT] Default" 2>&1 | tee -a "$LOG" +fi + +# symlinks for waybar style +ln -sf "$Waybar_Style" "$HOME/.config/waybar/style.css" && \ + +# initialize pywal to avoid config error on hyprland +wal -i $wallpaper -s -t 2>&1 | tee -a "$LOG" + +#initial symlink for Pywal Dark and Light for Rofi Themes +ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" printf "\n%.0s" {1..3} @@ -222,29 +243,6 @@ while true; do esac done - -printf "\n%.0s" {1..3} - -# Detect machine type and set Waybar configurations accordingly, logging the output -if hostnamectl | grep -q 'Chassis: desktop'; then - # Configurations for a desktop - ln -sf "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" - rm -r "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/configs/[BOT] Default Laptop" 2>&1 | tee -a "$LOG" -else - # Configurations for a laptop or any system other than desktop - ln -sf "$HOME/.config/waybar/configs/[TOP] Default Laptop" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" - rm -r "$HOME/.config/waybar/configs/[TOP] Default" "$HOME/.config/waybar/configs/[BOT] Default" 2>&1 | tee -a "$LOG" -fi - -# symlinks for waybar style -ln -sf "$Waybar_Style" "$HOME/.config/waybar/style.css" && \ - -# initialize pywal to avoid config error on hyprland -wal -i $wallpaper -s -t 2>&1 | tee -a "$LOG" - -#initial symlink for Pywal Dark and Light for Rofi Themes -ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" - printf "\n%.0s" {1..2} printf "\n${OK} Copy Completed!\n\n\n" printf "${ORANGE} ATTENTION!!!! \n" |
