aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJa.KooLit <ejhay.games@gmail.com>2023-12-29 13:37:22 +0900
committerJa.KooLit <ejhay.games@gmail.com>2023-12-29 13:37:22 +0900
commit203249972fd499909a2f81dfad64d7c9abe7b191 (patch)
treedfb9b151b3f1a369b226dbce65a7e79b6d5ec6ea
parent6717c562cf7ae1fa5df51c853c7c700eae81b481 (diff)
Final adjustment of initial-boot.sh so more upgrade friendly
-rwxr-xr-xconfig/hypr/initial-boot.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh
index 4619f2e6..3d9faf54 100755
--- a/config/hypr/initial-boot.sh
+++ b/config/hypr/initial-boot.sh
@@ -1,5 +1,4 @@
#!/bin/bash
-
# A bash script designed to run only once dotfiles installed
# THIS SCRIPT CAN BE DELETED ONCE SUCCESSFULLY BOOTED!! And also, edit ~/.config/hypr/configs/Settings.conf
@@ -18,16 +17,16 @@ effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type
# Check if a marker file exists.
if [ ! -f ~/.config/hypr/.initial_startup_done ]; then
- # Initialize pywal
- #printf " Initializing pywal........\n\n"
- wal -i $wallpaper -s -t
-
+ # Initialize pywal and wallpaper
+ if [ -f "$wallpaper" ]; then
+ wal -i $wallpaper -s -t > /dev/null
+ swww init && $swww $wallpaper $effect
+ "$scriptsDir/PywalSwww.sh" > /dev/null 2>&1 &
+ fi
+
# 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" > /dev/null 2>&1 &
- # Initial scripts to load in order to have a proper wallpaper waybar and pywal themes
- swww init && $swww "$wallpaper" $effect > /dev/null 2>&1 &
-
# initiate GTK dark mode and apply icon and cursor theme
gsettings set org.gnome.desktop.interface color-scheme prefer-dark > /dev/null 2>&1 &
gsettings set org.gnome.desktop.interface gtk-theme Tokyonight-Dark-BL-LB > /dev/null 2>&1 &
@@ -42,11 +41,12 @@ if [ ! -f ~/.config/hypr/.initial_startup_done ]; then
"$scriptsDir/SwitchKeyboardLayout.sh" > /dev/null 2>&1 &
# Initial waybar style
- ln -sf "$waybar_style" "$HOME/.config/waybar/style.css" > /dev/null 2>&1 &
-
- # Refreshing waybar, swaync, rofi etc.
- "$scriptsDir/PywalSwww.sh" > /dev/null 2>&1 &
- "$scriptsDir/Refresh.sh" > /dev/null 2>&1 &
+ if [ -f "$waybar_style" ]; then
+ ln -sf "$waybar_style" "$HOME/.config/waybar/style.css"
+
+ # Refreshing waybar, swaync, rofi etc.
+ "$scriptsDir/Refresh.sh" > /dev/null 2>&1 &
+ fi
# Create a marker file to indicate that the script has been executed.
touch ~/.config/hypr/.initial_startup_done
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage