1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 19:22:32 +00:00

powerarrow{-dark}: fix spawn.with_shell typo; closes #183

This commit is contained in:
Luke Bonham 2017-06-07 11:11:34 +02:00
parent 534fc91fb5
commit 07b3947464
3 changed files with 28 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View file

@ -130,8 +130,22 @@ local mail = lain.widget.imap({
--]] --]]
-- MPD -- MPD
local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp"
local mpdicon = wibox.widget.imagebox(theme.widget_music) local mpdicon = wibox.widget.imagebox(theme.widget_music)
mpdicon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.spawn_with_shell(musicplr) end))) mpdicon:buttons(awful.util.table.join(
awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end),
awful.button({ }, 1, function ()
awful.spawn.with_shell("mpc prev")
theme.mpd.update()
end),
awful.button({ }, 2, function ()
awful.spawn.with_shell("mpc toggle")
theme.mpd.update()
end),
awful.button({ }, 3, function ()
awful.spawn.with_shell("mpc next")
theme.mpd.update()
end)))
theme.mpd = lain.widget.mpd({ theme.mpd = lain.widget.mpd({
settings = function() settings = function()
if mpd_now.state == "play" then if mpd_now.state == "play" then

View file

@ -157,10 +157,19 @@ theme.volume = lain.widget.alsabar({
local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp" local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp"
local mpdicon = wibox.widget.imagebox(theme.widget_music) local mpdicon = wibox.widget.imagebox(theme.widget_music)
mpdicon:buttons(awful.util.table.join( mpdicon:buttons(awful.util.table.join(
awful.button({ modkey }, 1, function () awful.spawn_with_shell(musicplr) end), awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end),
awful.button({ }, 1, function () awful.spawn_with_shell("mpc prev") end), awful.button({ }, 1, function ()
awful.button({ }, 2, function () awful.spawn_with_shell("mpc toggle") end), awful.spawn.with_shell("mpc prev")
awful.button({ }, 3, function () awful.spawn_with_shell("mpc next") end))) theme.mpd.update()
end),
awful.button({ }, 2, function ()
awful.spawn.with_shell("mpc toggle")
theme.mpd.update()
end),
awful.button({ }, 3, function ()
awful.spawn.with_shell("mpc next")
theme.mpd.update()
end)))
theme.mpd = lain.widget.mpd({ theme.mpd = lain.widget.mpd({
settings = function() settings = function()
if mpd_now.state == "play" then if mpd_now.state == "play" then