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

fix: fixed bugs in waybar brightness and window module #2029

Merged
merged 5 commits into from
Dec 7, 2024

Conversation

Anshul-007
Copy link
Contributor

@Anshul-007 Anshul-007 commented Dec 3, 2024

Pull Request

Description

  • For backlight i have used the previous backlightcontrol.sh script and slightly modified for quiet mode

  • For window there were several bug fixes ${USER@${set_sysname}:(.*) was designed to display a terminal but for the arch logo waybar design it was failing solved by adding (.*)${USER}@${set_sysname}:(.*)

  • others were fixed for User Experience, for example new tab in firefox would say "Firefox 󰈹" which breaks the UX slightly by removing the arch logo

  • added discord logo for discord support

  • changes in backlight control script adding quiet mode in flag in script alongwith redesigning the script and adding more testcases

Type of change

Please put an x in the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (non-breaking change; modified files are limited to the documentations)
  • Technical debt (a code change that does not fix a bug or add a feature but makes something clearer for devs)
  • Other (provide details below)

Checklist

Please put an x in the boxes that apply:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My commit message follows the commit guidelines.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added a changelog entry.
  • I have added necessary comments/documentation to my code.
  • I have added tests to cover my changes.
  • I have tested my code locally and it works as expected.
  • All new and existing tests passed.

Screenshots

previous brightness keys working as intended
image

test-cases
image

Additional context

Add any other context about the problem here.

@Anshul-007
Copy link
Contributor Author

@kRHYME7 @rishav12s do you think i changed too much in brightnesscontrol.sh script?

@rishav12s
Copy link
Contributor

@kRHYME7 @rishav12s do you think i changed too much in brightnesscontrol.sh script?

if the pr is waybar related why are you changing brightness script stuff

i haven't gone through your previous pr of this so i'm out of context

like what are you trying to fix

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 3, 2024

Yup, if the PR is just to add Feature e.g the "quiet" flag then please abide by the format. If you wish to add something extra or refactor the script that should deserve another PR.

I scanned through this script and it looks good at glance but you delayed the merging of the actual goal of the original PR by adding more stuff.

tltr, I hope you understand this.

@Anshul-007 Anshul-007 changed the title fix: fixed bugs in waybar brightness, window module and brightness control script fix: fixed bugs in waybar brightness and window module Dec 4, 2024
@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 4, 2024

Lemme know if this is ready

@Anshul-007
Copy link
Contributor Author

Yes will add the quiet mode in another pr

Copy link
Contributor Author

@Anshul-007 Anshul-007 left a comment

Choose a reason for hiding this comment

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

I did testing of final submitted pr with modified changes

@Anshul-007
Copy link
Contributor Author

Now I don't have to do anything right?

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 5, 2024

@rishav12s @rubiin @abenezerw No objections from gou guys?

Copy link
Contributor

@boulder-roller boulder-roller left a comment

Choose a reason for hiding this comment

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

lgtm

@kRHYME7 kRHYME7 merged commit 1d4549f into prasanthrangan:main Dec 7, 2024
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.

4 participants