Skip to content

Commit 58fffc0

Browse files
authored
Merge branch 'dev' into turkish-docs
2 parents 954a999 + 35831be commit 58fffc0

File tree

10 files changed

+151
-422
lines changed

10 files changed

+151
-422
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ 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.9.1 (Unreleased)
8+
9+
### Changed
10+
11+
- Waybar: Make temperature background transparent
12+
- hyde-shell: silent pyinit command
13+
- Binds: Use `hyde-shell logout` for cleaner session logout
14+
15+
716
## v25.8.3
817

918
### Fixed

Configs/.config/hypr/keybindings.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $wm=Window Management
2828
$d=[$wm]
2929
bindd = $mainMod, Q, $d close focused window, exec, $scrPath/dontkillsteam.sh
3030
bindd = Alt, F4, $d close focused window, exec, $scrPath/dontkillsteam.sh
31-
bindd = $mainMod, Delete, $d kill hyprland session, exit
31+
bindd = $mainMod, Delete, $d kill hyprland session, exec, hyde-shell logout
3232
bindd = $mainMod, W, $d Toggle floating, togglefloating
3333
bindd = $mainMod, G, $d toggle group, togglegroup
3434
bindd = Shift, F11, $d toggle fullscreen, fullscreen

Configs/.local/bin/hyde-shell

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,15 @@ run_pypr() {
467467
if [[ -S "$socket_path" ]] && pgrep -u "$USER" pypr >/dev/null 2>&1; then
468468
message="${*:-"help"}"
469469
# Send the message to the socket and print the response
470-
if ! printf "%s" "${message[@]}" | nc -N -U "$socket_path"; then
471-
if ! printf "%s" "${message[@]}" | socat - UNIX-CONNECT:"$socket_path"; then
472-
print_log -sec "pypr" "Error communicating with socket: $socket_path"
473-
exit 1
470+
if ! printf "%s" "${message[@]}" | nc -N -U "$socket_path" 2>/dev/null; then #! openbsd netcat only
471+
if ! printf "%s" "${message[@]}" | socat - UNIX-CONNECT:"$socket_path" 2>/dev/null; then
472+
if ! printf "%s" "${message[@]}" | ncat -U "$socket_path" 2>/dev/null; then
473+
if ! pypr "${message[@]}"; then
474+
print_log -sec "pypr" "Error communicating with socket: $socket_path"
475+
exit 1
476+
fi
477+
fi
474478
fi
475-
476479
fi
477480

478481
else

Configs/.local/lib/hyde/pyutils/pip_env.py

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,23 +117,75 @@ def rebuild_venv(venv_path=None, requirements_file=None):
117117
# Recreate venv if missing
118118
if not os.path.exists(pip_executable):
119119
create_venv(venv_path, requirements_file)
120-
# Install/upgrade requirements
120+
# Helper to produce a short summary for informational pip output
121+
def _short_summary(stdout: str, stderr: str) -> str:
122+
if stderr:
123+
for sline in stderr.splitlines():
124+
if sline.strip():
125+
return sline.strip()
126+
req_lines = [line for line in stdout.splitlines() if line.startswith("Requirement already satisfied")]
127+
if req_lines:
128+
return f"{len(req_lines)} requirements already satisfied"
129+
for sline in stdout.splitlines():
130+
if sline.startswith("Successfully installed"):
131+
return sline.strip()
132+
return ""
133+
134+
# Install/upgrade requirements (capture output)
121135
if requirements_file and os.path.exists(requirements_file):
122-
subprocess.run(
136+
result = subprocess.run(
123137
[pip_executable, "install", "--upgrade", "-r", requirements_file],
124-
check=True,
138+
capture_output=True,
139+
text=True,
125140
)
126-
# Upgrade all installed packages
141+
if result.returncode != 0:
142+
notify.send(
143+
"HyDE PIP",
144+
f"Failed to install requirements:\n{result.stderr or result.stdout}",
145+
urgency="critical",
146+
)
147+
# Don't re-raise; stop rebuild early after notifying the user
148+
return
149+
else:
150+
short = _short_summary(result.stdout, result.stderr)
151+
if short:
152+
notify.send("HyDE PIP", short)
153+
154+
# Upgrade all installed packages (list outdated and upgrade)
127155
result = subprocess.run(
128156
[pip_executable, "list", "--outdated", "--format=freeze"],
129157
capture_output=True,
130158
text=True,
131159
)
160+
if result.returncode != 0:
161+
notify.send(
162+
"HyDE PIP",
163+
f"Failed to list outdated packages:\n{result.stderr or result.stdout}",
164+
urgency="critical",
165+
)
166+
# Don't re-raise here; just stop after notifying so caller can continue
167+
return
168+
132169
outdated = [line.split("==")[0] for line in result.stdout.splitlines() if line]
133170
if outdated:
134-
subprocess.run(
135-
[pip_executable, "install", "--upgrade", "-q"] + outdated, check=True
171+
res2 = subprocess.run(
172+
[pip_executable, "install", "--upgrade", "-q"] + outdated,
173+
capture_output=True,
174+
text=True,
136175
)
176+
if res2.returncode != 0:
177+
notify.send(
178+
"HyDE PIP",
179+
f"Failed to upgrade packages:\n{res2.stderr or res2.stdout}",
180+
urgency="critical",
181+
)
182+
# Don't re-raise; notify and exit rebuild
183+
return
184+
else:
185+
short2 = _short_summary(res2.stdout, res2.stderr)
186+
if short2:
187+
notify.send("HyDE PIP", short2)
188+
137189
notify.send("HyDE PIP", "✅ Virtual environment rebuilt and packages updated.")
138190

139191

Configs/.local/lib/hyde/wallpaper.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@ main() {
226226
wallSet="${HYDE_THEME_DIR}/wall.set"
227227
fi
228228

229+
# Ensure wallSet exists before applying
230+
if [ ! -e "${wallSet}" ]; then
231+
Wall_Hash
232+
fi
233+
234+
229235
if [ -n "${wallpaper_setter_flag}" ]; then
230236
export WALLPAPER_SET_FLAG="${wallpaper_setter_flag}"
231237
case "${wallpaper_setter_flag}" in

0 commit comments

Comments
 (0)