Skip to content

Conversation

@BrunoCooper17
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other: Replace this with a description of the type of this PR

Description

In the xworkspace module, added %nwin% token to display the number of windows in a workspace. Affects the label-active, label-occupied, label-urgent and label-empty properties.

image

Related Issues & Documents

Closes #604

Documentation (check all applicable)

  • This PR requires changes to the Wiki documentation (describe the changes)
  • This PR requires changes to the documentation inside the git repo (please add them to the PR).
  • Does not require documentation changes

At the Modules: xworkspace page, add the %nwin% as an available token for label-active, label-occupied, label-urgent and label-empty properties

@codecov
Copy link

codecov bot commented Dec 24, 2020

Codecov Report

Merging #2329 (ba20a71) into master (f7c2d83) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2329      +/-   ##
=========================================
- Coverage    7.80%   7.80%   -0.01%     
=========================================
  Files         142     142              
  Lines       10340   10343       +3     
=========================================
  Hits          807     807              
- Misses       9533    9536       +3     
Flag Coverage Δ
unittests 7.80% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
include/modules/xworkspaces.hpp 0.00% <ø> (ø)
src/modules/xworkspaces.cpp 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7c2d83...ba20a71. Read the comment docs.

Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! 😃

Please resolve the merge conflicts and then we can merge this.

Thanks :)

%nwin% tells the number of windows in a workspace
@BrunoCooper17 BrunoCooper17 force-pushed the feature/nwin-for-xworkspaces branch from 5e0e902 to ba20a71 Compare January 4, 2021 05:22
Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now.

Congrats on your first polybar contribution 🎉

@patrick96 patrick96 merged commit 7521da9 into polybar:master Jan 4, 2021
@BrunoCooper17 BrunoCooper17 deleted the feature/nwin-for-xworkspaces branch January 5, 2021 18:21
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 this pull request may close these issues.

number of open windows in a specific workspace

2 participants