Removed console logs,
Added screenshots to the README
This commit is contained in:
1 parent
eebcf04796
commit
57b32e1492
6 files changed
+7
-10
No files matched your search
@@ -18,6 +18,12 @@ This shell features dynamic theming using **Pywal**, completely integrating your
|
||||
|
||||
---
|
||||
|
||||
## 📷️ Screenshots
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## 📦 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.
|
||||
|
||||
@@ -11,7 +11,6 @@ const HOME = GLib.getenv("HOME") || ""
|
||||
const colorsPath = `${HOME}/.cache/wal/colors.scss`
|
||||
|
||||
if (!GLib.file_test(colorsPath, GLib.FileTest.EXISTS)) {
|
||||
console.log("No pywal colors found, generating default from pywal.jpg...")
|
||||
const agsDir = `${HOME}/.config/ags`
|
||||
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 |
@@ -87,12 +87,9 @@ export async function restoreTheme() {
|
||||
const out = await execAsync(["cat", `${HOME}/.cache/wal/wal`])
|
||||
const wallpaperPath = out.trim()
|
||||
if (wallpaperPath) {
|
||||
console.log(`Restoring theme for wallpaper: ${wallpaperPath}`)
|
||||
await setTheme(wallpaperPath)
|
||||
}
|
||||
} catch {
|
||||
console.log("No previous wallpaper found to restore.")
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -100,8 +97,6 @@ export async function restoreTheme() {
|
||||
* and reload the AGS theme.
|
||||
*/
|
||||
export async function setTheme(wallpaperPath: string) {
|
||||
console.log(`Setting theme for wallpaper: ${wallpaperPath}`)
|
||||
|
||||
// 1. Set wallpaper with hyprpaper
|
||||
try {
|
||||
// Preload the wallpaper first
|
||||
@@ -161,8 +156,6 @@ export async function setTheme(wallpaperPath: string) {
|
||||
// Reset any previously applied CSS and apply the new one
|
||||
app.reset_css()
|
||||
app.apply_css(css)
|
||||
|
||||
console.log("AGS theme successfully updated!")
|
||||
} catch (error) {
|
||||
console.error("Failed to recompile and apply AGS styles:", error)
|
||||
}
|
||||
@@ -171,7 +164,6 @@ export async function setTheme(wallpaperPath: string) {
|
||||
try {
|
||||
const agsDir = `${HOME}/.config/ags`
|
||||
await execAsync(`${agsDir}/update_script.sh`)
|
||||
console.log("Ran update script")
|
||||
} catch (error) {
|
||||
console.error("Failed to run update script:", error)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user