feat: add media controls

This commit is contained in:
Youwen Wu 2024-08-28 14:19:39 -07:00
parent 1177c7b268
commit a59f117dff
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 6 additions and 1 deletions

View file

@ -14,4 +14,6 @@
# no need to redefine it in your config for now)
#media-session.enable = true;
};
services.playerctld.enable = true;
}

View file

@ -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"