This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local naughty = require("naughty") | |
local os = os | |
module("powerswitch/spotify") | |
--{{ Spotify control panel | |
local spotifyid = nil | |
local function spotifyctl(cmd, title) | |
os.execute("DISPLAY=:0 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." .. cmd .. " &") | |
spotifyid = naughty.notify({ title = "Spotify" |