Files
nixos-configs/hosts/pinwheel/modules/spotify/default.nix
2023-09-19 22:08:24 +02:00

20 lines
484 B
Nix

{ pkgs, ... }:
{
home-manager.users.alex = {
home.packages = with pkgs; [
spotify
playerctl
];
wayland.windowManager.hyprland = {
settings = {
bind = [
"$mod ALT, LEFT, exec, ${pkgs.playerctl}/bin/playerctl -p spotify previous"
"$mod ALT, RIGHT, exec, ${pkgs.playerctl}/bin/playerctl -p spotify next"
"$mod ALT, DOWN, exec, ${pkgs.playerctl}/bin/playerctl -p spotify play-pause"
];
};
};
};
}