Keyd : Add audio seek controls.
This commit is contained in:
parent
0bf7586f41
commit
bc04c908f7
|
@ -33,8 +33,10 @@
|
||||||
space = "playpause";
|
space = "playpause";
|
||||||
w = "volumeup";
|
w = "volumeup";
|
||||||
s = "volumedown";
|
s = "volumedown";
|
||||||
d = "nextsong";
|
d = "forward";
|
||||||
a = "previoussong";
|
a = "back";
|
||||||
|
e = "nextsong";
|
||||||
|
q = "previoussong";
|
||||||
};
|
};
|
||||||
|
|
||||||
layer_macro = {};
|
layer_macro = {};
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{ setting, ... }: let
|
{ setting, ... }: let
|
||||||
step = setting.volume.step;
|
step_volume = setting.volume.step;
|
||||||
|
step_music = setting.music.step;
|
||||||
in {
|
in {
|
||||||
text = ''
|
text = ''
|
||||||
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +${step}%'
|
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +${step_volume}%'
|
||||||
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -${step}%'
|
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -${step_volume}%'
|
||||||
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
||||||
|
|
||||||
bindsym XF86AudioPlay exec 'playerctl play-pause'
|
bindsym XF86AudioPlay exec 'playerctl play-pause'
|
||||||
|
@ -11,5 +12,7 @@ in {
|
||||||
bindsym XF86AudioStop exec 'playerctl stop'
|
bindsym XF86AudioStop exec 'playerctl stop'
|
||||||
bindsym XF86AudioNext exec 'playerctl next'
|
bindsym XF86AudioNext exec 'playerctl next'
|
||||||
bindsym XF86AudioPrev exec 'playerctl previous'
|
bindsym XF86AudioPrev exec 'playerctl previous'
|
||||||
|
bindsym XF86Forward exec 'playerctl position ${step_music}+'
|
||||||
|
bindsym XF86Back exec 'playerctl position ${step_music}-'
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,4 +57,5 @@
|
||||||
|
|
||||||
brightness.step = "5";
|
brightness.step = "5";
|
||||||
volume.step = "5";
|
volume.step = "5";
|
||||||
|
music.step = "10";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue