Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions core/internal/config/embedded/niri-binds.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ binds {
XF86AudioLowerVolume allow-when-locked=true {
spawn "dms" "ipc" "call" "audio" "decrement" "3";
}
XF86AudioPlay allow-when-locked=true {
spawn "playerctl" "play-pause";
}
XF86AudioNext allow-when-locked=true {
spawn "playerctl" "next";
}
XF86AudioPrev allow-when-locked=true {
spawn "playerctl" "previous";
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we use DMS IPC for this? Since playerctl is using mpris anyway. Takes away a needed dependency.

Also good to add to hyprland stock config I think

XF86AudioMute allow-when-locked=true {
spawn "dms" "ipc" "call" "audio" "mute";
}
Expand Down