JaKooLit / Hyprland-Dots

Hyprland dotfiles - used as main repo for all my Hyprland Install Scripts.
GNU General Public License v3.0
785 stars 113 forks source link

[Bug]: Waybar issue #257

Closed Popx1 closed 3 months ago

Popx1 commented 4 months ago

Bug Report

Description

Its lagging so much and when i change workspace(ctrl + x) it takes a long time to update some time nothing works it has been working before like 3 months ago maybe an update broke it

Steps to Reproduce

IDK

Behavior

Lag and slow bar

Screenshots

[Video]

Environment

JaKooLit commented 4 months ago

did you change something on waybar config? I cant emulate that error

Popx1 commented 4 months ago

No i did not i just installed hyprland when i uesd your script is broke xorg for some reason

JaKooLit commented 4 months ago

how did you update? Ran Arch-Hyprland script or just pacman -Syu?

Next time, be more specific

First you show waybar is lagging

now you mentioned about xorg

Popx1 commented 4 months ago

I didn't update i just installed it I meant that i tried this dotfiles before and it was working fine

JaKooLit commented 4 months ago

as stated here

https://github.com/JaKooLit/Hyprland-Dots/wiki/Install_&_Update

" It is highly recommend, that in order to update to newer dot files (Hyprland-Dots), re-download and re-run the -Hyprland scripts above.

This is because to ensure that apps / packages are properly installed. You will get the latest released version of the dotfiles. "

Dot files are evolving and some updates needs newer packages

Popx1 commented 4 months ago

I Just updated it and its the same still laging

SherLock707 commented 4 months ago

I Just updated it and its the same still laging

Open a terminal, killall waybar then launch Waybar with waybar and check if you see any error.

Popx1 commented 4 months ago

killall waybar

I just did it and i got this

[2024-05-12 09:37:06.731] [info] Using configuration file /home/lahcen/.config/waybar/config
[2024-05-12 09:37:06.731] [info] Including resource file: ~/.config/waybar/modules
[2024-05-12 09:37:06.736] [info] Discovered appearance 'dark'
[2024-05-12 09:37:06.736] [info] Using CSS file /home/lahcen/.config/waybar/style.css
[2024-05-12 09:37:06.745] [warning] Failed to open bar ipc connection: Socket path is empty
[2024-05-12 09:37:06.745] [info] Hyprland IPC starting
[2024-05-12 09:37:07.536] [info] Loading persistent workspaces from Waybar config
[2024-05-12 09:37:07.536] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-05-12 09:37:08.338] [warning] module backlight/slider: Disabling module "backlight/slider", No backlight found
[2024-05-12 09:37:08.341] [warning] No batteries.
[2024-05-12 09:37:09.051] [info] Bar configured (width: 1920, height: 45) for output: HDMI-A-1

** (waybar:5236): WARNING **: 09:37:09.058: Status Notifier Item with bus name ':1.13' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2024-05-12 09:43:05.382] [warning] No workspace with id 3
SherLock707 commented 4 months ago

killall waybar

I just did it and i got this

[2024-05-12 09:37:06.731] [info] Using configuration file /home/lahcen/.config/waybar/config
[2024-05-12 09:37:06.731] [info] Including resource file: ~/.config/waybar/modules
[2024-05-12 09:37:06.736] [info] Discovered appearance 'dark'
[2024-05-12 09:37:06.736] [info] Using CSS file /home/lahcen/.config/waybar/style.css
[2024-05-12 09:37:06.745] [warning] Failed to open bar ipc connection: Socket path is empty
[2024-05-12 09:37:06.745] [info] Hyprland IPC starting
[2024-05-12 09:37:07.536] [info] Loading persistent workspaces from Waybar config
[2024-05-12 09:37:07.536] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-05-12 09:37:08.338] [warning] module backlight/slider: Disabling module "backlight/slider", No backlight found
[2024-05-12 09:37:08.341] [warning] No batteries.
[2024-05-12 09:37:09.051] [info] Bar configured (width: 1920, height: 45) for output: HDMI-A-1

** (waybar:5236): WARNING **: 09:37:09.058: Status Notifier Item with bus name ':1.13' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2024-05-12 09:43:05.382] [warning] No workspace with id 3

Likely something else taking up that socket and notification bus is running. Hunt it down through htop or something and kill it.

Popx1 commented 4 months ago

How i do that ?

Popx1 commented 4 months ago

Any one that can help me still having the same issue i re installed hyprland and the os and waybar

SherLock707 commented 4 months ago

Any one that can help me still having the same issue i re installed hyprland and the os and waybar

When you kill waybar and relaunch it in terminal, do you still see the socket error?

Popx1 commented 4 months ago

logs:

Hyprland-Dots ❯ waybar                                                              0.00s [main●] ~/Hyprland-Dots
[2024-05-15 07:09:49.656] [info] Using configuration file /home/lahcen/.config/waybar/config
[2024-05-15 07:09:49.657] [info] Including resource file: ~/.config/waybar/modules
[2024-05-15 07:09:49.660] [info] Discovered appearance 'dark'
[2024-05-15 07:09:49.660] [info] Using CSS file /home/lahcen/.config/waybar/style.css
[2024-05-15 07:09:49.670] [warning] Failed to open bar ipc connection: Socket path is empty
[2024-05-15 07:09:49.681] [info] Hyprland IPC starting
[2024-05-15 07:09:50.426] [info] Loading persistent workspaces from Waybar config
[2024-05-15 07:09:50.426] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-05-15 07:09:50.623] [error] findCurController() failed: no bluetooth controller found
[2024-05-15 07:09:50.624] [info] Found device WFDZ Gaming Keyboard at '/dev/input/event2'

** (waybar:78940): WARNING **: 07:09:51.439: Status Notifier Item with bus name ':1.11' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2024-05-15 07:09:51.477] [info] Bar configured (width: 1904, height: 37) for output: HDMI-A-1
SherLock707 commented 4 months ago

logs:

Hyprland-Dots ❯ waybar                                                              0.00s [main●] ~/Hyprland-Dots
[2024-05-15 07:09:49.656] [info] Using configuration file /home/lahcen/.config/waybar/config
[2024-05-15 07:09:49.657] [info] Including resource file: ~/.config/waybar/modules
[2024-05-15 07:09:49.660] [info] Discovered appearance 'dark'
[2024-05-15 07:09:49.660] [info] Using CSS file /home/lahcen/.config/waybar/style.css
[2024-05-15 07:09:49.670] [warning] Failed to open bar ipc connection: Socket path is empty
[2024-05-15 07:09:49.681] [info] Hyprland IPC starting
[2024-05-15 07:09:50.426] [info] Loading persistent workspaces from Waybar config
[2024-05-15 07:09:50.426] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-05-15 07:09:50.623] [error] findCurController() failed: no bluetooth controller found
[2024-05-15 07:09:50.624] [info] Found device WFDZ Gaming Keyboard at '/dev/input/event2'

** (waybar:78940): WARNING **: 07:09:51.439: Status Notifier Item with bus name ':1.11' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2024-05-15 07:09:51.477] [info] Bar configured (width: 1904, height: 37) for output: HDMI-A-1

Go in your currently active Waybar config and comment out all the module and keep just clock un-commented. then relaunch the Waybar. See if you still get the issue.

Popx1 commented 4 months ago

Then i could just use another bar config

Popx1 commented 4 months ago

can i use something like polybar or something

ghost commented 4 months ago

can i use something like polybar or something

You can't. Polybar is for xOrg.

SherLock707 commented 4 months ago

Then i could just use another bar config

I suggested above method for debugging so that once you have Waybar running fine with single module, you can one-by-one start enabling module.

Also if you want to switch to new bar, I'd suggest Ags bar.

Popx1 commented 4 months ago

I didn't find Ags bar

SherLock707 commented 4 months ago

Did you try my suggestion with waybar?

SherLock707 commented 4 months ago

I didn't find Ags bar

https://github.com/Aylur/ags/tree/main/example/simple-bar

Copy and rename config and style in ags folder.

You can find more by searching 'ags' at reddit