Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Suggestions for Command-outputs and a little issue with WCM

オープン
#261 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp, shell
領域
desktop, tooling

調査の方向性

まず、Dock、Panel、または Background セクションの編集中に WCM の動作を再現し、command-output の設定がどのように扱われるかを確認します。報告されたバグの対応完了とは、カスタム例と sensors エントリを含む既存の command-output エントリがそのまま維持されることを意味します。click-action suggestions については、別途スコープを決定する必要があります。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C++
スター
178
フォーク
56
平均マージ
6日 34分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

WayfireWM/wf-shell のほかの issue

WayfireWM/wf-shell の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。