2024-04-06 03:03:58 +03:00
|
|
|
{ setting, ... }: let
|
2024-04-29 02:03:44 +03:00
|
|
|
step_volume = toString(setting.volume.step);
|
2024-05-29 14:17:22 +03:00
|
|
|
step_music = toString(setting.media.step);
|
2024-04-06 03:03:58 +03:00
|
|
|
in {
|
|
|
|
text = ''
|
2024-04-25 04:10:00 +03:00
|
|
|
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +${step_volume}%'
|
|
|
|
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -${step_volume}%'
|
2024-04-06 03:03:58 +03:00
|
|
|
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
2024-04-24 22:02:02 +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'
|
2024-04-25 04:10:00 +03:00
|
|
|
bindsym XF86Forward exec 'playerctl position ${step_music}+'
|
|
|
|
bindsym XF86Back exec 'playerctl position ${step_music}-'
|
2024-04-06 03:03:58 +03:00
|
|
|
'';
|
|
|
|
}
|