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

feat: add swayosd for on screen display #1816

Closed
wants to merge 2 commits into from

Conversation

rubiin
Copy link
Contributor

@rubiin rubiin commented Sep 8, 2024

Pull Request

Description

Fixes #1738

Please read these instructions and remove unnecessary text.

  • Try to include a summary of the changes and which issue is fixed.
  • Also include relevant motivation and context (if applicable).
  • List any dependencies that are required for this change. (e.g., packages or other PRs)
  • Provide a link if there is an issue related to this pull request. e.g., Fixes # (issue)
  • Please add Reviewers, Assignees, Labels, Projects, and Milestones to the PR. (if applicable)

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

(if appropriate)

Additional context

Add any other context about the problem here.

@rubiin
Copy link
Contributor Author

rubiin commented Sep 8, 2024

@kRHYME7 after merge do include this sudo systemctl enable --now swayosd-libinput-backend.service. I couldnot find a file where I should add this

@TheyCallMeSecond
Copy link

TheyCallMeSecond commented Sep 8, 2024

it works fine but :

this should add to hyprland.conf, not keybindings.conf :

exec-once = swayosd-server

microphone mute botton should add too :

bind= , XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle # toggle microphone mute

pulseaudio.jsonc file in waybar modules should edit to this too :

`
"pulseaudio": {
"format": "{icon} {volume}",
"rotate": ${r_deg},
"format-muted": "婢",
"on-click": "pavucontrol -t 3",
"on-click-right": "volumecontrol.sh -s ''",
"on-click-middle": "swayosd-client --output-volume mute-toggle",
"on-scroll-up": "swayosd-client --output-volume raise",
"on-scroll-down": "swayosd-client --output-volume lower",
"tooltip-format": "{icon} {desc} // {volume}%",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
}
},

"pulseaudio#microphone": {
"format": "{format_source}",
"rotate": ${r_deg},
"format-source": "",
"format-source-muted": "",
"on-click": "pavucontrol -t 4",
"on-click-middle": "swayosd-client --input-volume mute-toggle",
"on-scroll-up": "swayosd-client --input-volume raise",
"on-scroll-down": "swayosd-client --input-volume lower",
"tooltip-format": "{format_source} {source_desc} // {source_volume}%",
"scroll-step": 5
},

`

we can edit backlight.jsonc file too:

`
"backlight": {
"device": "intel_backlight",
"rotate": ${r_deg},
"format": "{icon} {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""],
"on-scroll-up": "swayosd-client --brightness raise",
"on-scroll-down": "swayosd-client --brightness lower",
"min-length": 6
},

`

@rubiin
Copy link
Contributor Author

rubiin commented Sep 9, 2024

closing infavor of #1818

@rubiin rubiin closed this Sep 9, 2024
@rubiin rubiin deleted the feat-swayosd branch September 15, 2024 14:10
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.

[Feature Request]: Use SwayOSD for volume and brightness
2 participants