setup media keys

This commit is contained in:
Nathan McCarty 2022-09-25 12:41:54 -04:00
parent af9ddecee3
commit 8f5b75ea18
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
2 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,7 @@ in
nicotine-plus
irisDesktopItem
picard
mpc-cli
];
# Mopidy service
# TODO: Add scrobbling

View File

@ -154,6 +154,14 @@ with lib;
"${modifer}+Ctrl+x" = "exec ${pkgs.sway-contrib.grimshot}/bin/grimshot copy window";
# Clpy entire output to clipboard
"${modifer}+Alt+x" = "exec ${pkgs.sway-contrib.grimshot}/bin/grimshot copy output";
# Make the mute key work
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
# Make the volume keys work
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
# Play/pause and next song
"XF86AudioPlay" = "exec mpc toggle";
"XF86AudioNext" = "exec mpc next";
};
# Startup applications
startup = [