mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 11:12:31 +00:00
template updated
This commit is contained in:
parent
d224bf4e6f
commit
fe5585f180
|
@ -394,7 +394,18 @@ globalkeys = awful.util.table.join(
|
||||||
awful.spawn.with_shell("mpc next")
|
awful.spawn.with_shell("mpc next")
|
||||||
beautiful.mpd.update()
|
beautiful.mpd.update()
|
||||||
end),
|
end),
|
||||||
--]]
|
awful.key({ altkey }, "0",
|
||||||
|
function ()
|
||||||
|
local common = { text = "MPD widget ", position = "top_middle", timeout = 2 }
|
||||||
|
if beautiful.mpd.timer.started then
|
||||||
|
beautiful.mpd.timer:stop()
|
||||||
|
common.text = common.text .. lain.util.markup.bold("ON")
|
||||||
|
else
|
||||||
|
beautiful.mpd.timer:start()
|
||||||
|
common.text = common.text .. lain.util.markup.bold("OFF")
|
||||||
|
end
|
||||||
|
naughty.notify(common)
|
||||||
|
end),
|
||||||
|
|
||||||
-- Copy primary to clipboard (terminals to gtk)
|
-- Copy primary to clipboard (terminals to gtk)
|
||||||
awful.key({ modkey }, "c", function () awful.spawn("xsel | xsel -i -b") end),
|
awful.key({ modkey }, "c", function () awful.spawn("xsel | xsel -i -b") end),
|
||||||
|
|
Loading…
Reference in a new issue