2024-06-24 13:36:10 +03:00
|
|
|
{ config, ... }: let
|
|
|
|
step_volume = config.setting.step.volume;
|
|
|
|
step_music = config.setting.step.media;
|
2024-04-06 03:03:58 +03:00
|
|
|
in {
|
|
|
|
text = ''
|
2024-07-28 03:51:41 +03:00
|
|
|
bindsym --to-code XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +${toString step_volume}%'
|
|
|
|
bindsym --to-code XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -${toString step_volume}%'
|
|
|
|
bindsym --to-code XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
2024-04-24 22:02:02 +03:00
|
|
|
|
2024-07-28 03:51:41 +03:00
|
|
|
bindsym --to-code XF86AudioPlay exec 'playerctl play-pause'
|
|
|
|
bindsym --to-code XF86AudioPause exec 'playerctl pause'
|
|
|
|
bindsym --to-code XF86AudioStop exec 'playerctl stop'
|
|
|
|
bindsym --to-code XF86AudioNext exec 'playerctl next'
|
|
|
|
bindsym --to-code XF86AudioPrev exec 'playerctl previous'
|
|
|
|
bindsym --to-code XF86Forward exec 'playerctl position ${toString step_music}+'
|
|
|
|
bindsym --to-code XF86Back exec 'playerctl position ${toString step_music}-'
|
|
|
|
bindsym --to-code XF86Eject exec 'swayscript sound_output_cycle'
|
2024-04-06 03:03:58 +03:00
|
|
|
'';
|
|
|
|
}
|