From 327bb4e30b207df1c86cbbca191aba6e1bb4fb36 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 6 Dec 2023 22:23:37 +0900 Subject: Bump to 2.1.17. Changes: Change initial boot behaviour... Forcing a single wallpaper to load initially. (Will change every major release :) Script will now detect if desktop or any other machines and will symlink the proper waybar layout --- copy.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'copy.sh') diff --git a/copy.sh b/copy.sh index 2efc116a..7f29b34e 100755 --- a/copy.sh +++ b/copy.sh @@ -173,10 +173,7 @@ cp -r config/* ~/.config/ && { echo "${OK}Copy completed!"; } || { echo "${ERROR mkdir -p ~/Pictures/wallpapers cp -r wallpapers ~/Pictures/ && { echo "${OK}Copy completed!"; } || { echo "${ERROR} Failed to copy wallpapers."; exit 1; } 2>&1 | tee -a "$LOG" -# Initial Symlinks to avoid errors -# symlinks for waybar -ln -sf "$HOME/.config/waybar/configs/Default [TOP]" "$HOME/.config/waybar/config" && \ -ln -sf "$HOME/.config/waybar/style/Golden Noir.css" "$HOME/.config/waybar/style.css" && \ + # Set some files as executable @@ -206,6 +203,23 @@ if [[ $WALL =~ ^[Yy]$ ]]; then fi fi +# Initial Symlinks to avoid errors + +# 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/Default [TOP]" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" + rm -r "$HOME/.config/waybar/configs/Def[TOP]-Laptop" "$HOME/.config/waybar/configs/Def[Bottom]-Laptop" 2>&1 | tee -a "$LOG" +else + # Configurations for a laptop or any system other than desktop + ln -sf "$HOME/.config/waybar/configs/Def[TOP]-Laptop" "$HOME/.config/waybar/config" 2>&1 | tee -a "$LOG" + rm -r "$HOME/.config/waybar/configs/Default [TOP]" "$HOME/.config/waybar/configs/Default [Bottom]" 2>&1 | tee -a "$LOG" +fi + + +# symlinks for waybar style +ln -sf "$HOME/.config/waybar/style/Golden Noir.css" "$HOME/.config/waybar/style.css" && \ + # initialize pywal to avoid config error on hyprland wal -i ~/Pictures/wallpapers/mecha-nostalgia.png 2>&1 | tee -a "$LOG" -- cgit v1.2.3 From 86733c1873f9a6e227a2ae7a85c3371fc0b0625f Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 7 Dec 2023 11:21:34 +0900 Subject: added initial wallpaper --- config/hypr/initial-boot.sh | 2 +- copy.sh | 2 +- wallpapers/anime-girl-abyss.png | Bin 0 -> 2931296 bytes 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 wallpapers/anime-girl-abyss.png (limited to 'copy.sh') diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index ba07fed5..cfadfcc4 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -6,7 +6,7 @@ # not necessary to do since this script is only designed to ran only once as long as the marker exist # Set swww options -wallpaper=$HOME/Pictures/wallpapers/mecha-nostalgia.png +wallpaper=$HOME/Pictures/wallpapers/anime-girl-abyss.png swww="swww img" effect="--transition-bezier .43,1.19,1,.4 --transition-fps 60 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2" diff --git a/copy.sh b/copy.sh index 7f29b34e..bb5e7691 100755 --- a/copy.sh +++ b/copy.sh @@ -221,7 +221,7 @@ fi ln -sf "$HOME/.config/waybar/style/Golden Noir.css" "$HOME/.config/waybar/style.css" && \ # initialize pywal to avoid config error on hyprland -wal -i ~/Pictures/wallpapers/mecha-nostalgia.png 2>&1 | tee -a "$LOG" +wal -i ~/Pictures/wallpapers/anime-girl-abyss.png 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" diff --git a/wallpapers/anime-girl-abyss.png b/wallpapers/anime-girl-abyss.png new file mode 100644 index 00000000..6871f0e7 Binary files /dev/null and b/wallpapers/anime-girl-abyss.png differ -- cgit v1.2.3