end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.16k stars 204 forks source link

[Issue] Changing wallpaper or changing things from sidebar live config causes loss of styling #452

Closed NextStep-IM closed 2 months ago

NextStep-IM commented 2 months ago

Extra Info:

I used update-ags.sh to upgrade from ags version 1.8.0 to 1.8.2 and experienced the same issue. Also the same with AUR version.

Click to expand **Output of `pkill ags; ags`:** ```plain Gjs-Console-Message: 11:59:32.004: [LOG] Styles loaded (com.github.Aylur.ags:78700): Gtk-CRITICAL **: 11:59:32.961: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed (com.github.Aylur.ags:78700): Gtk-CRITICAL **: 11:59:32.961: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed (com.github.Aylur.ags:78700): Gtk-CRITICAL **: 11:59:32.962: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed (com.github.Aylur.ags:78700): Gtk-CRITICAL **: 11:59:32.962: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed (com.github.Aylur.ags:78700): Gtk-CRITICAL **: 11:59:32.962: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed (com.github.Aylur.ags:78700): Gtk-CRITICAL **: 11:59:32.962: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed (com.github.Aylur.ags:78700): Gjs-Console-WARNING **: 11:59:33.369: Error: can't assign "[object instance wrapper GIName:GdkPixbuf.Pixbuf jsobj@0xaff47fedd58 native@0x626415ed80b0]" as icon, it is not a file nor a named icon set icon@resource:///com/github/Aylur/ags/widgets/icon.js:45:30 _handleParamProp@resource:///com/github/Aylur/ags/widgets/widget.js:124:13 Icon@resource:///com/github/Aylur/ags/widgets/icon.js:25:14 newIcon@resource:///com/github/Aylur/ags/widgets/icon.js:8:12 SysTrayItem@file:///home/samtheradiant/.config/ags/modules/bar/normal/tray.js:8:12 Tray/setup/<@file:///home/samtheradiant/.config/ags/modules/bar/normal/tray.js:25:50 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/
end-4 commented 2 months ago
yay -S python-materialyoucolor-git

then enter a when asked to perform clean build

NextStep-IM commented 2 months ago
yay -S python-materialyoucolor-git

then enter a when asked to perform clean build

That didn't work. Same issue.

H0mire commented 2 months ago

I had the same issue. It happens because the template file for the color configuration contains placeholders that are not replaced by the script because of an error. I ran the switchwall.sh script in .config/ags/scripts/color_generation manually and the logs showe me that some packages are missing. After installing those packages it worked again.

NextStep-IM commented 2 months ago

the logs showe me that some packages are missing

@H0mire Can you tell me what packages those were?

I get this after running switchwall.sh in terminal:


(yad:238168): Gtk-WARNING **: 18:01:04.828: Theme parsing error: gtk.css:95:30: '' is not a valid color name

(yad:238168): Gtk-WARNING **: 18:01:04.828: Theme parsing error: gtk.css:95:44: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.828: Theme parsing error: gtk.css:96:46: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:97:41: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:98:47: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:99:49: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:100:44: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:105:41: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:106:43: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:107:47: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:108:49: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:109:42: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:110:44: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:112:60: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:113:62: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:116:45: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:117:55: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:119:55: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:120:57: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:121:56: Expected a valid selector

(yad:238168): Gtk-WARNING **: 18:01:04.829: Theme parsing error: gtk.css:122:58: Expected a valid selector
Traceback (most recent call last):
  File "/opt/dots-hyprland/.config/ags/scripts/color_generation/generate_colors_material.py", line 131, in <module>
    with open(args.termscheme, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/samtheradiant/.config/ags/scripts/templates/terminal/scheme-catppuccin.json'

Error: Undefined variable.
  ╷
5 │ @if $transparent == True {
  │     ^^^^^^^^^^^^
  ╵
  scss/_colors.scss 5:5  @import
  scss/main.scss 9:9     root stylesheet
H0mire commented 2 months ago

For me it was gradience-git and materialyoucolor.

Its seems like a json is missing 🤔:

scheme-catppuccin.json

add this file to /home/samtheradiant/.config/ags/scripts/templates/terminal/

As you can see often running a script/software with a Terminal can reveal some errors. 😃

NextStep-IM commented 2 months ago

add this file to /home/samtheradiant/.config/ags/scripts/templates/terminal/

That fixed it. Thanks a lot, @H0mire!