Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] AGS stuck at one color #1023

Closed
PlexILIghT opened this issue Dec 27, 2024 · 3 comments
Closed

[Issue] AGS stuck at one color #1023

PlexILIghT opened this issue Dec 27, 2024 · 3 comments

Comments

@PlexILIghT
Copy link

PlexILIghT commented Dec 27, 2024


The issue

So, after fixing the @import 'material'; line, and problem that only I faced #1013
changing wallpaper does these 3 things:

  1. Changes wallpaper
  2. Invokes the "Color schemes" widget
  3. Changes terminal colors.

A big BUT.

It does not change the color scheme. The whole color widget does not change nothing in the AGS. However, the terminal is damn chillin'. He's good boy changing colors even by changing "Scheme styles". And actually nautilus and other stuff, like VSCode top bar. Screenshots are attached.

  • Solution is in the comments

image
image

Logs First is pkill ags; ags Actually nothing to watch here, as those are cached web images and does not associate with local files nor desktop. Next ones is ags scripts run in terminal.
Traceback (most recent call last):
  File "/home/u200b/.config/ags/scripts/color_generation/generate_colors_material.py", line 65, in <module>
    image = Image.open(args.path)
  File "/usr/lib/python3.13/site-packages/PIL/Image.py", line 3536, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file '/home/u200b/.cache/ags/media/d814e7ec150fdf5d4e7dac563390e12269573208'
Traceback (most recent call last):
  File "/home/u200b/.config/ags/scripts/color_generation/generate_colors_material.py", line 65, in <module>
    image = Image.open(args.path)
  File "/usr/lib/python3.13/site-packages/PIL/Image.py", line 3536, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file '/home/u200b/.cache/ags/media/d814e7ec150fdf5d4e7dac563390e12269573208'

Gjs-Console-Message: 14:35:52.576: [LOG] Styles loaded

Gjs-Console-Message: 14:35:54.778: [LOG] Styles loaded

Gjs-Console-Message: 14:35:59.232: [LOG] Styles loaded

Gjs-Console-Message: 14:36:02.527: [LOG] Styles loaded
cd /.config/ags/scripts/color_generation
./applycolor.sh
undefined
undefined
[Gradience] INFO: Preset Material3_Generated applied successfully for Gtk 3 and Gtk 4 applications.
[Gradience] INFO: In order for changes to take full effect, you need to log out.

No, neither logout neither reboot or shutdown are not helping.

Also, fd is not installed😁.

./randomwall.sh 
./randomwall.sh: line 4: fd: command not found
Aborted
@PlexILIghT PlexILIghT changed the title [Issue] AGS color scheming doesn't work [Issue] AGS stuck at one color Dec 28, 2024
@mohak34
Copy link

mohak34 commented Dec 30, 2024

yes having the same issue the ags bar does not change w.r.t the wallpaper .

@PlexILIghT how do you have transparency enabled. if i try to enable it, my whole setup breaks

@PlexILIghT
Copy link
Author

PlexILIghT commented Jan 1, 2025

@mohak34
I enabled and configured transparency in ~/.config/hypr/custom folder (also can be done in /.config/hypr/hyprland, but better in custom/). File "rules.conf". Add windowrule = opacity 1 0.89, .* for focused window to be solid and unfocused to be transparent. Errors does not show up when I toggle any settings in right sidebar.
If errors, then next ones will help:
Check #1010.
If not, then
#1011 - check python modules installed - install/reinstall them. If nothing changed, then this is a dual python installationn issue. #1013 check pythons and scripts (ags) logs. In my case I had two pythons installed and package managers were pointing at different python. You can also type pkill ags; ags to see if ags has something to say. Same for scripts. They are in ~/.config/ags/scripts/color_generation, launch them in terminal and see what's wrong

@PlexILIghT
Copy link
Author

Solution from AlpSha in issue #1033 worked for me. Putting color generation module in venv resolves it. For it to work correctly you need to change back line @import 'material';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants