[Refactor]: PowerMenu Quick Controls #24

Open
opened 2025-08-22 11:09:45 +10:00 by Kruziikrel13 · 0 comments
Kruziikrel13 commented 2025-08-22 11:09:45 +10:00 (Migrated from github.com)

Refactor Summary

Quick Controls for Mic and Vol contain lots of duplicate code.

Motivation

The Quick Controls for both Microphone and Volume in the Power Menu module contain a large amount of duplicate code. They can be refactored into a reusable module.

There is likely also potential for componentization of the draggable mouse area code to be re-used across the whole config.

In addition, there appears to be a bug with the controls code that causes both Vol and Mic to follow each other... assumedly this happens when my mic is not plugged in and as such the speaker is detected as both input and output.

Scope

PowerMenu > QuickControls

Notes / Ideas

No response

### Refactor Summary Quick Controls for Mic and Vol contain lots of duplicate code. ### Motivation The Quick Controls for both Microphone and Volume in the Power Menu module contain a large amount of duplicate code. They can be refactored into a reusable module. There is likely also potential for componentization of the draggable mouse area code to be re-used across the whole config. In addition, there appears to be a bug with the controls code that causes both Vol and Mic to follow each other... assumedly this happens when my mic is not plugged in and as such the speaker is detected as both input and output. ### Scope PowerMenu > QuickControls ### Notes / Ideas _No response_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kruziikrel13/quickshell#24
No description provided.