Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Suggestions for Command-outputs and a little issue with WCM

Aperta
#261 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp, shell
Ambito
desktop, tooling

Direzione di ricerca

Inizia riproducendo il comportamento di WCM durante la modifica delle sezioni Dock, Panel o Background e verifica come viene gestita la configurazione di command-output. Il bug segnalato sarà considerato risolto se le voci command-output esistenti, inclusi gli esempi personalizzati e la voce sensors, rimangono intatte; le click-action suggestions richiederebbero una decisione separata sull’ambito.

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

Descrizione

bug enhancement

Hello, I want to touch some questions about the command-outputs, first I want to share these 3 that I have created:

For those who don't get the sound widget working:

# Volume Level using Pamixer
command_output_2 = pamixer --get-volume-human
command_output_tooltip_2 = printf 'Volume Level'
command_output_period_2 = 5
command_output_icon_2 = speaker
command_output_icon_size_2 = 16

For those who use Connman instead of Network Manager I think you will appreciate it, as the Network Widget is only useful for NM. The | grep -v -E '^ Tethering|^ Type' filter in tooltip is for avoid showing tethering parameters and type of connection (because it already prints the name of the device).

# Connection status using Connman and iwconfig
command_output_3 = connmanctl state | grep 'State =' | awk -F'= ' '{print $2}' | sed -e 's/online/ON/' -e 's/offline/OFF/'
command_output_tooltip_3 = connmanctl technologies | grep -v -E '^  Tethering|^  Type' | sed 's|/net/connman/technology/||g'; iwconfig | grep -E 'ESSID|Signal level'
command_output_period_3 = 10
command_output_icon_3 = atmosphere
command_output_icon_size_3 = 16

wttr.in - this shows current weather of your location based on IP, + 3 cities (edit them) and the phase of the moon:

# WTTR.in
command_output_4 = curl -s http://wttr.in/?format=1
command_output_tooltip_4 = curl -s http://wttr.in/?format=4; curl -s 'wttr.in/{Asuncion,Copenhagen,Berlin}?format=4'; printf 'Moon phase: ' & curl -s http://wttr.in/?format=%m
command_output_period_4 = 3600
command_output_icon_4 =

I also have enabled the sensors command-output that comes in the example.
Screenshot_2024-06-09-16 05 30

Having said this:

  1. I want to report a bug with WCM: when I edit any settings in the Dock, Panel or Background section, the command-output I set (the ones above) are deleted from the configuration, except the sensors one, so I always have to have a backup...

  2. I want to offer suggestions, the command-output have a lot of potential, it would be great to add custom actions, either with:
    Left click - right click - middle click - scroll up - scroll down
    So you could do something like the custom/modules of Waybar, in fact, I remember that someone had already tried it some time ago: https://github.com/WayfireWM/wf-shell/pull/86#issue-831108873 but apparently it was not followed up...

If it could be achieved, I could, for example:

  1. In the pamixer widget, left click to open Pavucontrol, right click to mute, scroll up/down to increase/decrease volume.
  2. connman widget, open connman-gtk by left click.
  3. wttr widget, show terminal with weather forecast in my area by left click or show Berlin forecast for example by right click.

Of course, I want to thank @ammen99 for his work and @NamorNiradnug for his great contributions, just what was needed to not depend on Waybar anymore :D

Lingua principale
C++
Stelle
179
Fork
56
Merge medio
6g 34m
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 WayfireWM/wf-shell

Tutte le issue di WayfireWM/wf-shell

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.