pinwheel: Add module for spotify

This commit is contained in:
Alexander Heldt
2023-09-19 22:08:24 +02:00
parent c771a1d7ed
commit 2c90e636b5
4 changed files with 53 additions and 14 deletions

View File

@@ -0,0 +1,19 @@
{ 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"
];
};
};
};
}