From f4784b81d36a2b60e66fd4050f2c93aa077ca7f5 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 3 Feb 2023 11:51:20 -0700 Subject: Decouple RDE from spotify by allowing the user to select the media to control Perhaps a Python script is in order to make it less ugly, but as things stand it works. This also uses the XDG_RUNTIME_DIR to store the variable associated with the target to control. --- src/Rahm/Desktop/Keys.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/Rahm/Desktop/Keys.hs b/src/Rahm/Desktop/Keys.hs index c0d9c3a..5c6866e 100644 --- a/src/Rahm/Desktop/Keys.hs +++ b/src/Rahm/Desktop/Keys.hs @@ -703,6 +703,11 @@ keymap = runKeys $ do doc "Set the volume of an application via rofi." $ spawnX "set-volume.sh -a" + bind xK_m $ do + (justMod -|- noMod) $ + doc "Set the media source to control" $ + spawnX "media-select.sh" + -- Double-tap Z to toggle zoom. bind xK_z $ do noMod -|- justMod $ -- cgit