summaryrefslogtreecommitdiff
path: root/mpris-widget
diff options
context:
space:
mode:
authorRomanos Skiadas <rom.skiad@gmail.com>2021-10-15 17:17:55 +0300
committerRomanos Skiadas <rom.skiad@gmail.com>2021-10-15 17:51:59 +0300
commit2755f856236acc05b1e860076931de7b0f5fba61 (patch)
tree3a6618c41ce944a325c7270a3509f93be42472e1 /mpris-widget
parent173ef2fab3997fabbc3b93a7df6798a9bd4c6f25 (diff)
mpris-widget: remove some dead code
the mpdarc widget is not really used and is a copy-paste leftover. The current widget has its own bindings already.
Diffstat (limited to 'mpris-widget')
-rw-r--r--mpris-widget/init.lua21
1 files changed, 0 insertions, 21 deletions
diff --git a/mpris-widget/init.lua b/mpris-widget/init.lua
index 7669b10..040c34c 100644
--- a/mpris-widget/init.lua
+++ b/mpris-widget/init.lua
@@ -16,8 +16,6 @@ local gears = require("gears")
local GET_MPD_CMD = "playerctl -p %s -f '{{status}};{{xesam:artist}};{{xesam:title}};{{mpris:artUrl}}' metadata"
local TOGGLE_MPD_CMD = "playerctl play-pause"
-local PAUSE_MPD_CMD = "playerctl pause"
-local STOP_MPD_CMD = "playerctl stop"
local NEXT_MPD_CMD = "playerctl next"
local PREV_MPD_CMD = "playerctl previous"
local LIST_PLAYERS_CMD = "playerctl -l"
@@ -201,25 +199,6 @@ local function worker()
end
end
- mpdarc:connect_signal("button::press", function(_, _, _, button)
- if (button == 1) then
- awful.spawn(TOGGLE_MPD_CMD, false) -- left click
- elseif (button == 2) then
- awful.spawn(STOP_MPD_CMD, false)
- elseif (button == 3) then
- awful.spawn(PAUSE_MPD_CMD, false)
- elseif (button == 4) then
- awful.spawn(NEXT_MPD_CMD, false) -- scroll up
- elseif (button == 5) then
- awful.spawn(PREV_MPD_CMD, false) -- scroll down
- end
-
- -- spawn.easy_async(string.format(GET_MPD_CMD, "'" .. default_player .. "'"),
- -- function(stdout, stderr, exitreason, exitcode)
- -- update_graphic(mpdarc, stdout, stderr, exitreason, exitcode)
- -- end)
- end)
-
mpris_widget:buttons(
awful.util.table.join(
awful.button({}, 3, function()