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

lain: new commit

This commit is contained in:
copycat-killer 2017-01-29 14:45:26 +01:00
parent 09a5ea3bf9
commit cc53847113
3 changed files with 31 additions and 4 deletions

2
lain

@ -1 +1 @@
Subproject commit 2e5d0fbabcdaaeff9937c06e1db095569327957b Subproject commit f914e6411e53186843ad628e321d6ada2f128466

View file

@ -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({

View file

@ -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,
}, },