mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
lain: new commit
This commit is contained in:
parent
09a5ea3bf9
commit
cc53847113
2
lain
2
lain
|
@ -1 +1 @@
|
||||||
Subproject commit 2e5d0fbabcdaaeff9937c06e1db095569327957b
|
Subproject commit f914e6411e53186843ad628e321d6ada2f128466
|
|
@ -253,9 +253,6 @@ theme.volume = lain.widgets.alsabar({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
theme.volume.tooltip.wibox.fg = theme.fg_focus
|
theme.volume.tooltip.wibox.fg = theme.fg_focus
|
||||||
local volumebg = wibox.container.background(theme.volume.bar, "#474747", gears.shape.rectangle)
|
|
||||||
local volumewidget = wibox.container.margin(volumebg, 2, 7, 4, 4)
|
|
||||||
|
|
||||||
theme.volume.bar:buttons(awful.util.table.join (
|
theme.volume.bar:buttons(awful.util.table.join (
|
||||||
awful.button({}, 1, function()
|
awful.button({}, 1, function()
|
||||||
awful.spawn.with_shell(string.format("%s -e alsamixer", terminal))
|
awful.spawn.with_shell(string.format("%s -e alsamixer", terminal))
|
||||||
|
@ -277,6 +274,8 @@ theme.volume.bar:buttons(awful.util.table.join (
|
||||||
theme.volume.update()
|
theme.volume.update()
|
||||||
end)
|
end)
|
||||||
))
|
))
|
||||||
|
local volumebg = wibox.container.background(theme.volume.bar, "#474747", gears.shape.rectangle)
|
||||||
|
local volumewidget = wibox.container.margin(volumebg, 2, 7, 4, 4)
|
||||||
|
|
||||||
-- Weather
|
-- Weather
|
||||||
theme.weather = lain.widgets.weather({
|
theme.weather = lain.widgets.weather({
|
||||||
|
|
|
@ -166,6 +166,29 @@ theme.volume = lain.widgets.alsabar({
|
||||||
ticks = true, width = 67,
|
ticks = true, width = 67,
|
||||||
notification_preset = { font = theme.font }
|
notification_preset = { font = theme.font }
|
||||||
})
|
})
|
||||||
|
theme.volume.tooltip.wibox.fg = theme.fg_focus
|
||||||
|
theme.volume.tooltip.wibox.font = theme.font
|
||||||
|
theme.volume.bar:buttons(awful.util.table.join (
|
||||||
|
awful.button({}, 1, function()
|
||||||
|
awful.spawn.with_shell(string.format("%s -e alsamixer", terminal))
|
||||||
|
end),
|
||||||
|
awful.button({}, 2, function()
|
||||||
|
awful.spawn(string.format("%s set %s 100%%", theme.volume.cmd, theme.volume.channel))
|
||||||
|
theme.volume.update()
|
||||||
|
end),
|
||||||
|
awful.button({}, 3, function()
|
||||||
|
awful.spawn(string.format("%s set %s toggle", theme.volume.cmd, theme.volume.togglechannel or theme.volume.channel))
|
||||||
|
theme.volume.update()
|
||||||
|
end),
|
||||||
|
awful.button({}, 4, function()
|
||||||
|
awful.spawn(string.format("%s set %s 1%%+", theme.volume.cmd, theme.volume.channel))
|
||||||
|
theme.volume.update()
|
||||||
|
end),
|
||||||
|
awful.button({}, 5, function()
|
||||||
|
awful.spawn(string.format("%s set %s 1%%-", theme.volume.cmd, theme.volume.channel))
|
||||||
|
theme.volume.update()
|
||||||
|
end)
|
||||||
|
))
|
||||||
local volumebg = wibox.container.background(theme.volume.bar, "#585858", gears.shape.rectangle)
|
local volumebg = wibox.container.background(theme.volume.bar, "#585858", gears.shape.rectangle)
|
||||||
local volumewidget = wibox.container.margin(volumebg, 7, 7, 5, 5)
|
local volumewidget = wibox.container.margin(volumebg, 7, 7, 5, 5)
|
||||||
|
|
||||||
|
@ -175,6 +198,10 @@ theme.weather = lain.widgets.weather({
|
||||||
notification_preset = { font = theme.font, fg = white }
|
notification_preset = { font = theme.font, fg = white }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local mybase = lain.widgets.abase({
|
||||||
|
cmd = "echo 123"
|
||||||
|
})
|
||||||
|
|
||||||
-- Separators
|
-- Separators
|
||||||
local first = wibox.widget.textbox(markup.font("Misc Tamsyn 4", " "))
|
local first = wibox.widget.textbox(markup.font("Misc Tamsyn 4", " "))
|
||||||
local spr = wibox.widget.textbox(' ')
|
local spr = wibox.widget.textbox(' ')
|
||||||
|
@ -241,6 +268,7 @@ function theme.at_screen_connect(s)
|
||||||
theme.mpd.widget,
|
theme.mpd.widget,
|
||||||
--mail.widget,
|
--mail.widget,
|
||||||
theme.fs.widget,
|
theme.fs.widget,
|
||||||
|
mybase.widget,
|
||||||
volumewidget,
|
volumewidget,
|
||||||
mytextclock,
|
mytextclock,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue