You are not logged in.
Pages: 1
Hello,
I am running Tidal via the tidal-music-linux package on GitHub, link: https://github.com/Bunkerbewohner/tidal-music-linux, because I wanted to be able to use the media keys with Tidal. I then installed the package and running it works just fine, but I can't get the hotkeys to work. I've tried with xdotool:
xdotool key --window [window] XF86AudioPauseFrom the main.js, please see below, I understand that I need to send the keys "MediaPreviousTrack", "MediaNextTrack", "MediaPlayPause", "MediaStop". However, I don't know how to send media keys, despite using xdotool - which don't work.
// handle media keys
var routeShortcuts = ["MediaPreviousTrack", "MediaNextTrack", "MediaPlayPause", "MediaStop"]
routeShortcuts.forEach(shortcut => {
if (!globalShortcut.register(shortcut, function() {
mainWindow.webContents.send("playback-control", shortcut)
})) {
console.log("Failed to register shortcut", shortcut, "Is your desktop environment already handling it?"$
}
})Any help regarding the issue would be greatly appreciated.
Last edited by Fred7109 (2017-07-08 17:16:20)
Offline
Offline
Hello evilteemo,
Thank you for the reply!
I use sxhkd instead of Xbindkeys, as they both can create hotkeys that activates a command which, for example, with Xdotool, can send a given key to the Tidal window. However, my problem is that the keys I send to the Tidal window don't activate the function as described above - eg. to shift song with "MediaNextTrack".
Last edited by Fred7109 (2017-07-09 16:34:55)
Offline
I see.
Maybe you should try with some of these automation tools:
https://wiki.actiona.tools/doku.php?id=en:start
https://code.google.com/archive/p/autokey/
http://www.sikuli.org/
Offline
Thank you for the help evilteemo, I will look into your proposals and see whether I can work something out.
Offline
Pages: 1