Added media key functionality to Sway.
This commit is contained in:
parent
d46c403663
commit
41bca3b7cb
|
|
@ -67,6 +67,13 @@ in {
|
||||||
"exec wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.05+";
|
"exec wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.05+";
|
||||||
"${mod}+XF86AudioLowerVolume" =
|
"${mod}+XF86AudioLowerVolume" =
|
||||||
"exec wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.05-";
|
"exec wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.05-";
|
||||||
|
XF86AudioPrev = "exec playerctl previous";
|
||||||
|
"${mod}+XF86AudioPrev" = "exec playerctl position 5-";
|
||||||
|
"Alt+${mod}+XF86AudioPrev" = "exec playerctl position 60-";
|
||||||
|
XF86AudioPlay = "exec playerctl play-pause";
|
||||||
|
XF86AudioNext = "exec playerctl next";
|
||||||
|
"${mod}+XF86AudioNext" = "exec playerctl position 5+";
|
||||||
|
"Alt+${mod}+XF86AudioNext" = "exec playerctl position 60+";
|
||||||
"${mod}+Shift+e" = null;
|
"${mod}+Shift+e" = null;
|
||||||
XF86AudioMedia =
|
XF86AudioMedia =
|
||||||
"dunstctl set-paused toggle; dunstify -a 'dunst_mute_key' -u low -h string:x-dunst-stack-tag:dunst_mute_key 'Notifications mute toggled'";
|
"dunstctl set-paused toggle; dunstify -a 'dunst_mute_key' -u low -h string:x-dunst-stack-tag:dunst_mute_key 'Notifications mute toggled'";
|
||||||
|
|
@ -144,5 +151,10 @@ in {
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[ swaybg bemenu j4-dmenu-desktop swaysome ] ++
|
[ swaybg bemenu j4-dmenu-desktop swaysome ] ++
|
||||||
[ brightnessctl grim slurp wl-clipboard wdisplays ] ++
|
[ brightnessctl grim slurp wl-clipboard wdisplays ] ++
|
||||||
|
[ playerctl ] ++
|
||||||
[];
|
[];
|
||||||
|
|
||||||
|
services.playerctld = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue