awesome/src/util/mpris.lua
2024-07-06 20:31:50 +02:00

18 lines
281 B
Lua

local function play_pause()
os.execute('playerctl play-pause')
end
local function previous()
os.execute('playerctl previous')
end
local function skip()
os.execute('playerctl next')
end
return {
play_pause = play_pause,
skip = skip,
previous = previous
}