mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
feat: add media controls
This commit is contained in:
parent
1177c7b268
commit
a59f117dff
2 changed files with 6 additions and 1 deletions
|
@ -14,4 +14,6 @@
|
|||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
|
||||
services.playerctld.enable = true;
|
||||
}
|
||||
|
|
|
@ -113,8 +113,11 @@
|
|||
|
||||
"$mod, I, exec, hyprlock"
|
||||
|
||||
# System control
|
||||
# Media controls
|
||||
",XF86AudioMute, exec, pamixer -t"
|
||||
",XF86AudioPlay, exec, playerctl play-pause"
|
||||
",XF86AudioNext, exec, playerctl next"
|
||||
",XF86AudioRewind, exec, playerctl previous"
|
||||
]
|
||||
++ (
|
||||
if pkgs.system != "aarch64-linux"
|
||||
|
|
Loading…
Reference in a new issue