Skip to content

Commit 0e2d967

Browse files
authored
Merge branch 'dev' into remove-ad-and-allow-window-swallowing
2 parents 4e396b1 + 18129da commit 0e2d967

File tree

2 files changed

+29
-22
lines changed

2 files changed

+29
-22
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ All notable changes to `HyDE` will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to _Modified_ [CalVer](https://calver.org/). See [Versioning](https://github.com/HyDE-Project/HyDE/blob/master/RELEASE_POLICY.md#versioning-yymq) For more info
66

7-
## v25.8.1 (Unreleased)
7+
## v25.8.2
88

99
Big CHANGE in HyDE! We are now using `uwsm` for session management and app2unit for application management.
1010

11-
**PLEASE run install.sh again to upgrade and install missing dependencies!!!**
11+
**PLEASE run install.sh again to upgrade and install missing dependencies and REBOOT!**
1212

13-
Upon opening in you SDDM, Please choose `Hyprland (UWSM Managed)` as your session. Or else you will handle the session yourself!
13+
In SDDM, please choose `Hyprland (UWSM Managed)` as your session. Or else you will handle the session yourself!
1414

1515
### Changed
1616

@@ -27,12 +27,14 @@ Upon opening in you SDDM, Please choose `Hyprland (UWSM Managed)` as your sessio
2727
- Package: UWSM as dependency for HyDE.
2828
- Core: app2unit.sh and xdg-terminal-exec as as static dependencies. These tools are not widely available and are not part of the core dependencies.
2929
- The ~/.config/xdg-terminals.list file is now used to determine which terminal to use.
30+
- Wallbash: Added spotify flatpak support
3031

3132
### Fixed
3233

3334
- Waybar: Some fixes for modules
3435
- Waybar: gpuinfo throws errors eg broken pipe
35-
- LibL Clean up variables that are using HYDE*, we will try to use the XDG\_* variables instead.
36+
- Lib: Clean up variables that are using HYDE*, we will try to use the XDG\_* variables instead.
37+
- Core: Fixed some issues with the theming script stack.
3638

3739
## v25.7.3
3840

Configs/.config/hyde/wallbash/scripts/spotify.sh

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ configure_spicetify() {
2828
spotify_conf=$(spicetify -c)
2929

3030
sed -i -e "/^prefs_path/ s+=.*$+= $HOME/.config/spotify/prefs+g" \
31-
-e "/^spotify_path/ s+=.*$+= $spotify_path+g" \
32-
-e "/^spotify_launch_flags/ s+=.*$+= $spotify_flags+g" "$spotify_conf"
31+
-e "/^spotify_path/ s+=.*$+= $spotify_path+g" \
32+
-e "/^spotify_launch_flags/ s+=.*$+= $spotify_flags+g" "$spotify_conf"
3333

3434
spicetify_themes_dir="$HOME/.config/spicetify/Themes"
3535
if [ ! -d "${spicetify_themes_dir}/Sleek" ]; then
@@ -45,12 +45,12 @@ configure_spicetify() {
4545
}
4646

4747
# Main script
48-
cacheDir="${cacheDir:-$XDG_CACHE_HOME/hyde}"
49-
shareDir=${XDG_DATA_HOME:-$HOME/.local/share}
48+
cacheDir="${cacheDir:-$XDG_CACHE_HOME/hyde}"
49+
shareDir=${XDG_DATA_HOME:-$HOME/.local/share}
5050

51-
if [ -n "${SPOTIFY_PATH}" ]; then
52-
spotify_path="${SPOTIFY_PATH}"
53-
cat <<EOF
51+
if [ -n "${SPOTIFY_PATH}" ]; then
52+
spotify_path="${SPOTIFY_PATH}"
53+
cat <<EOF
5454
[warning] using custom spotify path
5555
ensure to have proper permissions for ${SPOTIFY_PATH}
5656
run:
@@ -59,19 +59,24 @@ configure_spicetify() {
5959
6060
note: run with 'sudo' if only needed.
6161
EOF
62-
elif [ -f "${shareDir}/spotify-launcher/install/usr/bin/spotify" ]; then
63-
spotify_path="${shareDir}/spotify-launcher/install/usr/bin/spotify"
64-
elif [ -d /opt/spotify ]; then
65-
spotify_path='/opt/spotify'
66-
elif [ -d /var/lib/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify ]; then
67-
spotify_path='/var/lib/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify'
68-
fi
69-
if [ ! -w "${spotify_path}" ] || [ ! -w "${spotify_path}/Apps" ]; then
70-
notify_and_set_permissions "${spotify_path}"
71-
fi
7262

73-
if (pkg_installed spotify && pkg_installed spicetify-cli) || [ -n "$spotify_path" ]; then
63+
elif [ -d "${XDG_DATA_HOME}/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify" ]; then
64+
spotify_path="${XDG_DATA_HOME}/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify"
65+
elif [ -d /var/lib/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify ]; then
66+
spotify_path='/var/lib/flatpak/app/com.spotify.Client/x86_64/stable/active/files/extra/share/spotify'
67+
elif [ -f "${shareDir}/spotify-launcher/install/usr/bin/spotify" ]; then
68+
spotify_path="${shareDir}/spotify-launcher/install/usr/share/spotify"
69+
elif [ -d /opt/spotify ]; then
70+
spotify_path='/opt/spotify'
71+
fi
7472

73+
if [ ! -w "${spotify_path}" ] || [ ! -w "${spotify_path}/Apps" ]; then
74+
notify_and_set_permissions "${spotify_path}"
75+
else
76+
printf "[info] using spotify path: %s\n" "${spotify_path}"
77+
fi
78+
79+
if (pkg_installed spotify && pkg_installed spicetify-cli) || [ -n "$spotify_path" ]; then
7580

7681
if [ "$(spicetify config | awk '{if ($1=="color_scheme") print $2}')" != "Wallbash" ] || [[ "${*}" == *"--reset"* ]]; then
7782
configure_spicetify "$spotify_path" "$cacheDir"

0 commit comments

Comments
 (0)