Skip to content

Commit c5e8f72

Browse files
mmstickjackpot51
authored andcommitted
fix(system_actions): use wpctl instead of amixer
1 parent 4a64bba commit c5e8f72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data/system_actions.ron

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/// Locks the screen
2121
LockScreen: "loginctl lock-session",
2222
/// Mutes the active output device
23-
Mute: "amixer sset Master toggle",
23+
Mute: "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
2424
/// Mutes the active microphone
2525
MuteMic: "amixer sset Capture toggle",
2626
/// Plays and Pauses audio
@@ -34,9 +34,9 @@
3434
/// Opens the system default terminal
3535
Terminal: "cosmic-term",
3636
/// Lowers the volume of the active output device
37-
VolumeLower: "amixer sset Master on; amixer sset Master 5%-",
37+
VolumeLower: "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.5",
3838
/// Raises the volume of the active output device
39-
VolumeRaise: "amixer sset Master on; amixer sset Master 5%+",
39+
VolumeRaise: "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.5",
4040
/// Opens the system default web browser
4141
WebBrowser: "xdg-open http://",
4242
/// Opens the (alt+tab) window switcher

0 commit comments

Comments
 (0)