Removed console logs,

Added screenshots to the README
This commit is contained in:
pascalyazid committed 2026-05-05 17:42:13 +02:00
1 parent eebcf04796
commit 57b32e1492
6 files changed
+7 -10

No files matched your search

+6
View File
@@ -18,6 +18,12 @@ This shell features dynamic theming using **Pywal**, completely integrating your
--- ---
## 📷️ Screenshots
![Screenshot 1](./screenshots/screenshot_01.png)
![Screenshot 2](./screenshots/screenshot_02.png)
![Screenshot 3](./screenshots/screenshot_03.png)
## 📦 Dependencies ## 📦 Dependencies
To use this shell, you need to install AGS and the required backend libraries. Since you are most probably using Arch, you can install them via your package manager or AUR. To use this shell, you need to install AGS and the required backend libraries. Since you are most probably using Arch, you can install them via your package manager or AUR.
-1
View File
@@ -11,7 +11,6 @@ const HOME = GLib.getenv("HOME") || ""
const colorsPath = `${HOME}/.cache/wal/colors.scss` const colorsPath = `${HOME}/.cache/wal/colors.scss`
if (!GLib.file_test(colorsPath, GLib.FileTest.EXISTS)) { if (!GLib.file_test(colorsPath, GLib.FileTest.EXISTS)) {
console.log("No pywal colors found, generating default from pywal.jpg...")
const agsDir = `${HOME}/.config/ags` const agsDir = `${HOME}/.config/ags`
exec(`wal -q -n -i ${agsDir}/pywal.jpg`) exec(`wal -q -n -i ${agsDir}/pywal.jpg`)
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

+1 -9
View File
@@ -87,12 +87,9 @@ export async function restoreTheme() {
const out = await execAsync(["cat", `${HOME}/.cache/wal/wal`]) const out = await execAsync(["cat", `${HOME}/.cache/wal/wal`])
const wallpaperPath = out.trim() const wallpaperPath = out.trim()
if (wallpaperPath) { if (wallpaperPath) {
console.log(`Restoring theme for wallpaper: ${wallpaperPath}`)
await setTheme(wallpaperPath) await setTheme(wallpaperPath)
} }
} catch { } catch {}
console.log("No previous wallpaper found to restore.")
}
} }
/** /**
@@ -100,8 +97,6 @@ export async function restoreTheme() {
* and reload the AGS theme. * and reload the AGS theme.
*/ */
export async function setTheme(wallpaperPath: string) { export async function setTheme(wallpaperPath: string) {
console.log(`Setting theme for wallpaper: ${wallpaperPath}`)
// 1. Set wallpaper with hyprpaper // 1. Set wallpaper with hyprpaper
try { try {
// Preload the wallpaper first // Preload the wallpaper first
@@ -161,8 +156,6 @@ export async function setTheme(wallpaperPath: string) {
// Reset any previously applied CSS and apply the new one // Reset any previously applied CSS and apply the new one
app.reset_css() app.reset_css()
app.apply_css(css) app.apply_css(css)
console.log("AGS theme successfully updated!")
} catch (error) { } catch (error) {
console.error("Failed to recompile and apply AGS styles:", error) console.error("Failed to recompile and apply AGS styles:", error)
} }
@@ -171,7 +164,6 @@ export async function setTheme(wallpaperPath: string) {
try { try {
const agsDir = `${HOME}/.config/ags` const agsDir = `${HOME}/.config/ags`
await execAsync(`${agsDir}/update_script.sh`) await execAsync(`${agsDir}/update_script.sh`)
console.log("Ran update script")
} catch (error) { } catch (error) {
console.error("Failed to run update script:", error) console.error("Failed to run update script:", error)
} }