2024-12-18 09:40:11 +03:00
|
|
|
{ ... }:
|
|
|
|
let
|
|
|
|
step_music = 10;
|
|
|
|
step_volume = 5;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
text = ''
|
|
|
|
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +${toString step_volume}%'
|
|
|
|
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -${toString step_volume}%'
|
|
|
|
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
|
|
|
bindsym XF86AudioMicMute exec 'pactl set-source-mute @DEFAULT_SOURCE@ toggle'
|
2024-04-24 22:02:02 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
bindsym XF86AudioPlay exec 'playerctl play-pause'
|
|
|
|
bindsym XF86AudioPause exec 'playerctl pause'
|
|
|
|
bindsym XF86AudioStop exec 'playerctl stop'
|
|
|
|
bindsym XF86AudioNext exec 'playerctl next'
|
|
|
|
bindsym XF86AudioPrev exec 'playerctl previous'
|
|
|
|
bindsym XF86Forward exec 'playerctl position ${toString step_music}+'
|
|
|
|
bindsym XF86Back exec 'playerctl position ${toString step_music}-'
|
|
|
|
bindsym XF86Eject exec 'swayscript sound_output_cycle'
|
|
|
|
'';
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|