diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-08 00:28:47 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-08 00:28:47 +0900 |
| commit | 0d5617b7f25101bdfee905106eaa898e4dc4f93f (patch) | |
| tree | 5aaa03534a95efa95358f4745f9863a1a892e011 /copy.sh | |
| parent | 55a3cfbd7974bca5e8545f28bb4b6bcec1b69342 (diff) | |
| parent | 651ab648e13a6f6bdc8183cb31eec55e1dff8ef2 (diff) | |
Merge pull request #53 from JaKooLit/v2.1.17
V2.1.17
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -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,8 +203,25 @@ 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" +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" |
