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

Many errors on Hyprland #50

Open
LDAP opened this issue Mar 26, 2023 · 4 comments
Open

Many errors on Hyprland #50

LDAP opened this issue Mar 26, 2023 · 4 comments

Comments

@LDAP
Copy link
Contributor

LDAP commented Mar 26, 2023

I get a lot of these errors on hyprland and the window icons are not displayed correctly:

[2023-03-26T11:12:09Z ERROR workstyle] Couldn't identify window: Window { name: Some("Icons Icon | Font Awesome - Chromium"), app_id: None, window_properties_class: Some("chromium") }

the config has a matching entry:

'chromium' = ''
@pierrechevalier83
Copy link
Owner

I tried to reproduce today and couldn't. Could you share your exact config file so I can try with that?

@LDAP
Copy link
Contributor Author

LDAP commented Apr 14, 2023

This is my config:

# Config for workstyle
#
# Format:
# "pattern" = "icon"
#
# The pattern will be used to match against the application name, class_id or WM_CLASS.
# The icon will be used to represent that application.
#
# Note if multiple patterns are present in the same application name,
# precedence is given in order of apparition in this file.

## partials
'/GitHub/' = ''
'/GitLab/' = ''
'/NVIM ?\w*/' = ''
'/npm/' = ''
'/node/' = ''
'/yarn/' = ''
'/Stack Overflow/' = ''

## browsers
'google-chrome' = ''
'Google-chrome' = ''
'Google-chrome-unstable' = ''
'google-chrome-unstable' = ''
'Google-chrome-beta' = ''
'google-chrome-beta' = ''
'chromium' = ''
'firefox' = ''
'firefoxdeveloperedition' = ''

## default applications
'foot' = ''
'/foot/' = ''
'floating_shell' = ''
'pcmanfm' = ''
'nemo' = ''
'pamac-manager' = ''
'/Bluetooth/' = ''
'file-roller' = ''
'swappy' = ''
'org.kde.okular' = ''
'evince' = ''

## email
'Thunderbird' = ''
'thunderbird' = ''
'evolution' = ''
'kmail' = ''

## ide
'code' = '﬏'
'Code' = '﬏'
'/- Visual Studio Code/' = '﬏'
'/IntelliJ/' = ''
'code-url-handler' = '﬏'
'sublime_text' = ''

# messenger
'whatsapp-for-linux' = ''
'Slack' = ''
'/Telegram/' = ''
'/Microsoft Teams/' = ''
'Signal' = ''

## auth
'polkit-gnome-authentication-agent-1' = ''
'Keybase' = ''

## additional applications
'balena-etcher' = ''
'Steam' = ''
'vlc' = '嗢'
'org.qbittorrent.qBittorrent' = ''
'transmission-gtk' = ''
'Insomnia' = ''
'Bitwarden' = ''
'Spotify' = ''
'YouTube Music' = 'ﱘ'
'alacritty' = ''
'kitty' = ''
'font-manager' = ''
'lutris' = ''
'/Wine/' = ''
'Arctype' = ''
'Around' = ''

[other]
fallback_icon = ''
deduplicate_icons = true

I am using hyprland-git

@pierrechevalier83
Copy link
Owner

I tried to repro again today with your exact config.
I still don't see the error.
I also use hyprland-git and updated it today to be safe.

hyprctl version
Hyprland, built from branch main at commit 83f1616a65091fe2e66d054f5ef1343d755a3e0cdirty (keybinds: minor adjustments to workspace).
flags: (if any)

Could you share the output of hyperctl version on your machine?
Also, I wrote a minimal test to try and isolate the issue: https://github.com/pierrechevalier83/workstyle/pull/56/commits

Could you check out this branch and see whether this test reproduces the issue on your system?

If so, can you share as much output as possible from that failing test?

pierrechevalier83 added a commit that referenced this issue Apr 15, 2023
@nevaforget
Copy link

Hey, think I've the same issue. Taking Chromium as same an example, too. And chromium is so far the only rule that isn't working. Like any rule that is related to chromium e.g. '/Microsoft Teams/' - which I run as chromium webapp.

Here are some outputs:

paru -Q | grep chromium

ungoogled-chromium-bin 114.0.5735.198-2

hyprctl clients

Window 5571047b0510 -> Hyprland - A wayland compositor that doesn't sacrifice on its looks! - Chromium:
        mapped: 1
        hidden: 0
        at: 1287,57
        size: 1261,1371
        workspace: 1 (1  󰘔 )
        floating: 0
        monitor: 0
        class: Chromium
        title: Hyprland - A wayland compositor that doesn't sacrifice on its looks! - Chromium
        initialClass: Chromium
        initialTitle: Neuer Tab - Chromium
        pid: 314400
        xwayland: 1
        pinned: 0
        fullscreen: 0
        fullscreenmode: 0
        fakefullscreen: 0
        grouped: 0
        swallowing: 0

rule in config.toml

"Chromium" = ""

hyprctl version

Hyprland, built from branch  at commit 51a930f802c71a0e67f05e7b176ded74e8e95f87 dirty ().
Tag: v0.26.0

flags: (if any)

❯ paru -Q | grep hypr

hyprland 0.26.0-3

workstyle.log

[2023-07-11T17:19:47Z ERROR workstyle] Couldn't identify window: Window { name: Some("Hyprland - A wayland compositor that doesn't sacrifice on its looks! - Chromium"), app_id: None, window_properties_class: Some("Chromium") }

Greetings

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

3 participants