20 lines
484 B
Nix
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"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|