diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-29 22:07:13 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-29 22:07:13 -0500 |
| commit | 872618ac3bd76816ba89edb830d9929b8be63995 (patch) | |
| tree | b7c727ecf4eb23d362a18bbc3f1c9f4b3d12d2cf | |
| parent | 41f4a2b54d20979bf6653c14280cd33b905d92dc (diff) | |
Added to copy.sh not startup
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/configs/Startup_Apps.conf
modified: copy.sh
| -rw-r--r-- | config/hypr/configs/Startup_Apps.conf | 2 | ||||
| -rwxr-xr-x | copy.sh | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/config/hypr/configs/Startup_Apps.conf b/config/hypr/configs/Startup_Apps.conf index fbf77386..0cc5da11 100644 --- a/config/hypr/configs/Startup_Apps.conf +++ b/config/hypr/configs/Startup_Apps.conf @@ -9,8 +9,6 @@ $wallDIR = $HOME/Pictures/wallpapers # change path manually here if needed ### wallpaper stuff ### exec-once = swww-daemon --format xrgb -# Ensure a default wallpaper is set on login (falls back to repo-copied wallpapers) -exec-once = bash -lc 'swww query || swww-daemon --format xrgb; img="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current"; [ -f "$img" ] || img="$HOME/Pictures/wallpapers/Northern Lights3.png"; [ -f "$img" ] || img="$HOME/Projects/Jak/Hyprland-Dots/wallpapers/Northern Lights3.png"; swww img "$img" --transition-type grow --transition-duration 2' #exec-once = mpvpaper '*' -o "load-scripts=no no-audio --loop" $livewallpaper # wallpaper random #exec-once = $SwwwRandom $wallDIR # random wallpaper switcher every 30 minutes @@ -535,6 +535,16 @@ else echo "${ERROR} Failed to copy some ${YELLOW}wallpapers${RESET}" | tee -a "$LOG" fi +# Ensure a default desktop wallpaper is set once (no per-login changes) +WALL_EFFECTS_DIR="$HOME/.config/hypr/wallpaper_effects" +DEFAULT_IMG="$PICTURES_DIR/wallpapers/Northern Lights3.png" +[ -f "$DEFAULT_IMG" ] || DEFAULT_IMG="$SCRIPT_DIR/wallpapers/Northern Lights3.png" + +mkdir -p "$WALL_EFFECTS_DIR" +if [ ! -f "$WALL_EFFECTS_DIR/.wallpaper_current" ] && [ -f "$DEFAULT_IMG" ]; then + cp -f "$DEFAULT_IMG" "$WALL_EFFECTS_DIR/.wallpaper_current" + echo "${OK} Default desktop wallpaper initialized." | tee -a "$LOG" +fi # Set some files as executable chmod +x "$HOME/.config/hypr/scripts/"* 2>&1 | tee -a "$LOG" |
