powerarrow{-dark}: fix spawn.with_shell typo; closes #183
This commit is contained in:
parent
534fc91fb5
commit
07b3947464
Binary file not shown.
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 2.8 MiB |
|
@ -130,8 +130,22 @@ local mail = lain.widget.imap({
|
|||
--]]
|
||||
|
||||
-- MPD
|
||||
local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp"
|
||||
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({
|
||||
settings = function()
|
||||
if mpd_now.state == "play" then
|
||||
|
|
|
@ -157,10 +157,19 @@ theme.volume = lain.widget.alsabar({
|
|||
local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp"
|
||||
local mpdicon = wibox.widget.imagebox(theme.widget_music)
|
||||
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") end),
|
||||
awful.button({ }, 2, function () awful.spawn_with_shell("mpc toggle") end),
|
||||
awful.button({ }, 3, function () awful.spawn_with_shell("mpc next") end)))
|
||||
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({
|
||||
settings = function()
|
||||
if mpd_now.state == "play" then
|
||||
|
|
Loading…
Reference in New Issue