Skip to content

A script that uses wofi and wpctl to change audio sinks. Can be used with waybar to make a clickable audio sink changer

Notifications You must be signed in to change notification settings

Sibiricus/waybar_wireplumber_audio_changer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

waybar_wireplumber_audio_changer

A script that uses wofi and wpctl to change audio sinks. Can be used with waybar to make a clickable audio sink changer

Needs to have wofi installed, as well as wireplumber in order to use the wpctl command.

Example Screenshot

How to Install

copy the audio_changer.py file to your ~/.config/waybar/scripts/ folder.
Then: chmod +x audio_changer.py
You can then add it to the .config/waybar/config.jsonc file under pulseaudio 'on-click' property as below:

        "format": "{icon} {volume}%",
        "tooltip": false,
        "format-muted": " Muted",
        "on-click": "~/.config/waybar/scripts/audio_changer.py",
        "on-scroll-up": "pamixer -i 5",
        "on-scroll-down": "pamixer -d 5",
        "scroll-step": 5,
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""]
        }
    },

Keybinding in hypr.conf

You can also add a bind in the ~/.config/hypr/hyprland.conf file as so:
bind = , F4, exec, ~/.config/waybar/scripts/audio_changer.py

About

A script that uses wofi and wpctl to change audio sinks. Can be used with waybar to make a clickable audio sink changer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%