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

window-rewrite missing firefox icon upon boot (hyprland/workspaces module) #2718

Closed
Masber opened this issue Dec 3, 2023 · 2 comments
Closed

Comments

@Masber
Copy link

Masber commented Dec 3, 2023

Hi, I am using waybar with hyprland, my issue is waybar is inconsistent in rendering the workspaces icons upon login. I have to kill and start warbar again in order to restore the missing icons.

hyprland instructions to start the apps:

exec-once=waybar & hyprpaper
exec-once=[workspace 1 silent] alacritty
exec-once=[workspace 2 silent] thunderbird & slack
exec-once=[workspace 3 silent] firefox

waybar hyprland/workspaces config

    "hyprland/workspaces": {
	"format": " <b>{icon}</b> {windows} ",
	"window-rewrite-default": "",
	"window-rewrite": {
	  "firefox": "󰈹",
	  "Alacritty": "󰞷",
	  "slack": "󰒱",
	  "thunderbird": "󰇮",
	  "spotify": "󰓇"
	},
        "on-scroll-up": "hyprctl dispatch workspace e+1",
        "on-scroll-down": "hyprctl dispatch workspace e-1",
        "on-click": "activate"
    },
    "hyprland/window": {
        "format": "{}",
    	"rewrite": {
        	"(.*) — Mozilla Firefox": "󰈹 $1",
        	"(.*) — Mozilla Thunderbird": "󰇮 $1",
        	"Alacritty": "󰞷 Alacritty",
        	"(.*) - Slack": "󰒱 $1",
	}
    },

These are how the workspaces looks like after boot

20231203_13h02m59s_grim

and this after restart waybar $ killall waybar ; waybar &

20231203_13h06m09s_grim

As you can see both the firefox and the terminal icons are missing even tho both apps are running

Any idea of what could happen?

thank you

@khaneliman
Copy link
Contributor

khaneliman commented Dec 4, 2023

Yeah, this has been an issue since the features creation and I keep wanting to take a stab at it when I have time... I basically just always do a systemctl --user restart waybar after login, for the time being. But, would rather it not be needed, obviously. It's basically all the apps that gets windows created before waybar require restarting waybar to be recognized.

@Masber
Copy link
Author

Masber commented Dec 9, 2023

no problem, I understand this is pending issue, I can try your workaround, that is not a problem.

thank you very much for your help and waybar is very cool :)

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

Successfully merging a pull request may close this issue.

2 participants