diff --git a/binds/system/mpd.lua b/binds/system/mpd.lua index 476af5a..348370e 100755 --- a/binds/system/mpd.lua +++ b/binds/system/mpd.lua @@ -1,7 +1,7 @@ return gears.table.join( awful.key( {}, "XF86AudioPrev", function () - bin.mpc.command("prev") + mpc:prev() end, { description = "Previous track", @@ -11,7 +11,7 @@ return gears.table.join( awful.key( {}, "XF86AudioPlay", function () - bin.mpc.command("toggle") + mpc:toggle() end, { description = "Play/Pause", @@ -21,7 +21,7 @@ return gears.table.join( awful.key( {}, "XF86AudioNext", function () - bin.mpc.command("next") + mpc:next() end, { description = "Next track", @@ -31,7 +31,7 @@ return gears.table.join( awful.key( {"Mod4"}, "XF86AudioRaiseVolume", function () - bin.mpc.command("vol +5") + mpc:volume_up() end, { description = "Volume up", @@ -41,7 +41,7 @@ return gears.table.join( awful.key( {"Mod4"}, "XF86AudioLowerVolume", function () - bin.mpc.command("vol -5") + mpc:volume_down() end, { description = "Volume down",