Hyprland - Handle workspaces without an id

Aperta Adatta ai principianti
#4,301 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
desktop

Direzione di ricerca

Inizia tracciando come vengono letti i dati degli spazi di lavoro di Hyprland da hyprctl workspaces -j e come vengono identificati i pulsanti degli spazi di lavoro; l’issue non indica file sorgente né test. Riproduci il problema con uno spazio di lavoro con nome, come 9 · music, e controlla la visualizzazione degli spazi di lavoro. Il lavoro è completato quando lo spazio di lavoro con nome produce un solo pulsante visualizzato correttamente invece di duplicati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Compositor

Hyprland

Distribution

NixOS

If Other, please specify

No response

Select your Installation Method

Distro Packaging

Was this your original Installation method?

Yes

If no, specify

No response

dms doctor -vC
Click to expand ## DMS Doctor Report

System

  • [ok] Operating System: NixOS 26.11 (Zokor)
    • Supported for runtime (install via NixOS module or Flake)
  • [ok] Architecture: amd64
  • [ok] Display Server: Wayland
    • WAYLAND_DISPLAY=wayland-1

Versions

  • [ok] DMS CLI: dms v2.1.2
    • /nix/store/hm55fgbai1n57gmzacbps5dw54r6fiw0-dux-shell-2.1.2/bin/.dms-wrapped
  • [ok] Quickshell: Quickshell 0.3.2 (revision tag-v0.3.2, distributed by Nixpkgs)
    • /run/current-system/sw/bin/qs
  • [ok] DMS Shell: v2.1.2
    • /run/user/1000/dms-shell/7c4ffac7434e05c7

Installation

  • [ok] DMS Configuration: Found
    • /run/user/1000/dms-shell/7c4ffac7434e05c7
  • [ok] shell.qml: Present
    • /run/user/1000/dms-shell/7c4ffac7434e05c7/shell.qml
  • [info] Install Type: Unknown
    • /run/user/1000/dms-shell/7c4ffac7434e05c7

Compositor

  • [ok] Hyprland: 0.57.2
    • /run/current-system/sw/bin/hyprland
  • [info] Active: Hyprland
  • [ok] Background Blur: Supported
    • Compositor supports ext-background-effect-v1

Quickshell Features

  • [ok] Polkit: Available
    • Authentication prompts
  • [ok] IdleMonitor: Available
    • Idle detection
  • [ok] IdleInhibitor: Available
    • Prevent idle/sleep
  • [ok] ShortcutInhibitor: Available
    • Allow shortcut management (niri)
  • [ok] BackgroundBlur: Available
    • Background blur API support in Quickshell

Optional Features

  • [ok] accountsservice: Available
    • User accounts
  • [warn] power-profiles-daemon: Not available
    • Power profile management
  • [ok] logind: Available
    • Session management
  • [ok] cups-pk-helper: Available
    • Printer management
  • [ok] I2C/DDC: 2 monitor(s) detected
    • External monitor brightness control
  • [ok] qt6-imageformats: Installed (3 formats)
    • Formats: WebP, TIFF, ICNS (/nix/store/3r2wd4pkh5x1ljvw1f7ym2wc5zgcda8f-qtimageformats-6.12.0/lib/qt-6/plugins/imageformats)
  • [ok] kimageformats: Installed (4 formats)
    • Formats: AVIF, HEIF, JXL, EXR (/nix/store/2mr6673r5lvbymdq71kamamj1q29p0yv-kimageformats-6.31.0/lib/qt-6/plugins/imageformats)
  • [ok] Terminal: alacritty
  • [ok] Network: NetworkManager
    • NetworkManager present. Using NM API.
  • [ok] matugen: Installed
    • Dynamic theming
  • [ok] cava: Installed
    • Audio visualizer
  • [info] khal: Not installed
    • Calendar events
  • [info] dux-search: Not installed
    • File search
  • [info] dux-calendar: Not installed
    • Calendar app
  • [info] dux-files: Not installed
    • File manager
  • [info] fprintd: Not installed
    • Fingerprint auth
  • [info] adw-gtk3: Not installed
    • GTK3 dynamic theming; without it the global CSS override applies

Config Files

  • [warn] settings.json: Present (read-only)
    • /home/x/.config/dms/settings.json
  • [info] clsettings.json: Not yet created
    • /home/x/.config/dms/clsettings.json
  • [info] plugin_settings.json: Not yet created
    • /home/x/.config/dms/plugin_settings.json
  • [ok] session.json: Present
    • /home/x/.local/state/dms/session.json
  • [ok] dms-colors.json: Present
    • /home/x/.cache/dms/dms-colors.json

Services

  • [ok] dms.service: enabled, active
  • [info] greetd: Not installed
    • Optional greeter service
  • [ok] xdg-desktop-portal: Settings portal reachable

Environment

  • [info] QT_QPA_PLATFORMTHEME: Not set
  • [info] QT_QPA_PLATFORMTHEME_QT6: Not set
  • [info] QS_ICON_THEME: Not set
  • [info] XDG_MENU_PREFIX: Not set

Fonts

  • [ok] Normal Font: Google Sans Flex
    • /run/user/1000/dms-shell/7c4ffac7434e05c7/DCommon/assets/fonts/google-sans-flex/GoogleSansFlex.ttf
  • [ok] Monospace Font: Fira Code
    • /run/user/1000/dms-shell/7c4ffac7434e05c7/DCommon/assets/fonts/nerd-fonts/FiraCodeNerdFont-Regular.ttf
  • [ok] Display Font: DM Serif Display
    • /run/user/1000/dms-shell/7c4ffac7434e05c7/DCommon/assets/fonts/dm-serif-display/DMSerifDisplay-Regular.ttf

Summary: 0 error(s), 2 warning(s), 32 ok

Description

On Hyprland, not all workspaces may have an id. For instance, see the output of hyprctl workspaces -j:

[{
    "address": "music",
    "type": "normal",
    "name": "9 · music",
    "monitor": "DP-2",
    "monitorID": 0,
    "windows": 0,
    "hasfullscreen": false,
    "lastwindow": "0x0",
    "lastwindowtitle": "",
    "ispersistent": false,
    "tiledLayout": "dwindle"
}]

Since named workspaces are allowed.

Expected Behavior

No response

Steps to Reproduce

Define a hyprland workspace as a non-int string, like "9 · music"

Error Messages/Logs

The workspace pills are duplicated

Screenshots/Recordings

This is what shows when displaying the workspaces as their index + name in that case:
image

Lingua principale
QML
Stelle
8.4k
Fork
549
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AvengeMedia/DankMaterialShell

Tutte le issue di AvengeMedia/DankMaterialShell

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.