prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland
GNU General Public License v3.0
7.57k stars 876 forks source link

feat: add swayosd for on screen display #1816

Closed rubiin closed 2 months ago

rubiin commented 2 months ago

Pull Request

Description

Fixes https://github.com/prasanthrangan/hyprdots/issues/1738

Please read these instructions and remove unnecessary text.

Type of change

Please put an x in the boxes that apply:

Checklist

Please put an x in the boxes that apply:

Screenshots

(if appropriate)

Additional context

Add any other context about the problem here.

rubiin commented 2 months ago

@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 commented 2 months ago

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 commented 2 months ago

closing infavor of https://github.com/prasanthrangan/hyprdots/pull/1818