From 52242463745906b5b372f4daad6515d756e9f542 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 17 May 2021 14:10:31 +0200 Subject: [PATCH] Add keyboard & headphone control bindings for ncspot --- .xbindkeysrc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .xbindkeysrc diff --git a/.xbindkeysrc b/.xbindkeysrc new file mode 100644 index 0000000..82cd4ea --- /dev/null +++ b/.xbindkeysrc @@ -0,0 +1,27 @@ +# Keyboard controls for music player +"exec playerctl --player=ncspot next" + m:0x40 + c:114 + Mod4 + Right +"exec playerctl --player=ncspot previous" + m:0x40 + c:113 + Mod4 + Left +"exec playerctl --player=ncspot pause" + m:0x40 + c:116 + Mod4 + Down +"exec playerctl --player=ncspot play" + m:0x40 + c:111 + Mod4 + Up + +# Headphone controls for music player +"exec playerctl --player=ncspot next" + m:0x0 + c:171 + XF86AudioNext +"exec playerctl --player=ncspot previous" + m:0x0 + c:173 + XF86AudioPrev +"exec playerctl --player=ncspot pause" + m:0x0 + c:209 + XF86AudioPause +"exec playerctl --player=ncspot play" + m:0x0 + c:208 + XF86AudioPlay