Expose sound control in waybar and install pavucontrol for gui setting

This commit is contained in:
David Heinemeier Hansson
2025-06-18 09:41:50 +02:00
parent 7b0da0f79f
commit 5b44993755
4 changed files with 24 additions and 7 deletions

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=Volume Control
Comment=Adjust the volume level
Exec=env GTK_THEME=Adwaita-dark pavucontrol
Icon=multimedia-volume-control
StartupNotify=true
Type=Application
Categories=AudioVideo;Audio;Mixer;GTK;Settings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;
Keywords=pavucontrol;PulseAudio;Microphone;Volume;Fade;Balance;Headset;Speakers;Headphones;Audio;Mixer;Output;Input;Devices;Playback;Recording;System Sounds;Sound Card;Settings;Preferences;

View File

@ -11,10 +11,11 @@
],
"modules-right": [
"bluetooth",
"pulseaudio",
"network",
"cpu",
"power-profiles-daemon",
"battery",
"power-profiles-daemon"
"cpu"
],
"hyprland/workspaces": {
"on-click": "activate",
@ -90,6 +91,15 @@
"tooltip-format": "{num_connections} devices connected",
"on-click": "GTK_THEME=Adwaita-dark /usr/bin/blueberry"
},
"pulseaudio": {
"format": "",
"format-muted": "󰝟",
"scroll-step": 5,
"on-click": "GTK_THEME=Adwaita-dark pavucontrol",
"tooltip-format": "Playing at {volume}%",
"on-click-right": "pamixer -t",
"ignored-sinks": ["Easy Effects Sink"]
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}",

View File

@ -23,15 +23,12 @@
#battery,
#network,
#bluetooth,
#pulseaudio,
#clock {
padding: 0 8px 0 8px;
}
#cpu {
padding-left: 10px;
}
#power-profiles-daemon {
margin-right: 5px;
}

View File

@ -1,5 +1,5 @@
yay -S --noconfirm --needed \
brightnessctl playerctl wpctl pamixer wireplumber power-profiles-daemon blueberry \
brightnessctl playerctl wpctl pamixer pavucontrol wireplumber power-profiles-daemon blueberry \
fcitx5 fcitx5-gtk fcitx5-qt fcitx5-configtool \
wl-clip-persist clipse \
nautilus sushi gnome-calculator \