Adding lots of changes
This commit is contained in:
parent
d4f511d8ce
commit
3488174a83
19 changed files with 462 additions and 98 deletions
|
@ -49,7 +49,7 @@ ruled.notification.connect_signal('request::rules', function()
|
|||
fg = '#ffffff',
|
||||
margin = dpi(16),
|
||||
position = 'bottom_middle',
|
||||
implicit_timeout = 0
|
||||
implicit_timeout = 15
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ ruled.notification.connect_signal('request::rules', function()
|
|||
fg = beautiful.fg_normal,
|
||||
margin = dpi(16),
|
||||
position = 'bottom_middle',
|
||||
implicit_timeout = 5
|
||||
implicit_timeout = 8
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -228,6 +228,7 @@ naughty.connect_signal("request::display", function(n)
|
|||
},
|
||||
bg = beautiful.bg_normal,
|
||||
id = "background_role",
|
||||
shape = gears.shape.rounded_rect,
|
||||
widget = naughty.container.background,
|
||||
},
|
||||
strategy = "min",
|
||||
|
@ -247,9 +248,9 @@ naughty.connect_signal("request::display", function(n)
|
|||
},
|
||||
-- Margin of the fake BG to have a space between notification and the screen edge
|
||||
-- margins = dpi(15),--beautiful.notification_margin,
|
||||
right = dpi(20),
|
||||
left = dpi(20),
|
||||
bottom = dpi(20),
|
||||
right = dpi(10),
|
||||
left = dpi(10),
|
||||
bottom = dpi(10),
|
||||
top = dpi(5),
|
||||
widget = wibox.container.margin
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ local spawn = require('awful.spawn')
|
|||
|
||||
screen.connect_signal("request::desktop_decoration", function(s)
|
||||
|
||||
s.show_vol_osd = false
|
||||
s.show_vol_osd = true
|
||||
|
||||
local osd_header = wibox.widget {
|
||||
text = 'Volume',
|
||||
|
@ -59,7 +59,7 @@ screen.connect_signal("request::desktop_decoration", function(s)
|
|||
|
||||
local volume_level = vol_osd_slider:get_value()
|
||||
|
||||
spawn('amixer -D pulse sset Master ' .. volume_level .. '%', false)
|
||||
spawn('amixer set Master ' .. volume_level .. '%', false)
|
||||
|
||||
-- Update textbox widget text
|
||||
osd_value.text = volume_level .. '%'
|
||||
|
@ -141,8 +141,8 @@ screen.connect_signal("request::desktop_decoration", function(s)
|
|||
maximum_height = osd_height,
|
||||
maximum_width = osd_width,
|
||||
offset = dpi(5),
|
||||
shape = gears.shape.rectangle,
|
||||
bg = beautiful.transparent,
|
||||
shape = gears.shape.rounded_rect,
|
||||
bg = "#282a36",
|
||||
preferred_anchors = 'middle',
|
||||
preferred_positions = {'left', 'right', 'top', 'bottom'},
|
||||
|
||||
|
@ -167,7 +167,6 @@ screen.connect_signal("request::desktop_decoration", function(s)
|
|||
widget = wibox.container.margin
|
||||
|
||||
},
|
||||
bg = beautiful.background,
|
||||
shape = gears.shape.rounded_rect,
|
||||
widget = wibox.container.background()
|
||||
}
|
||||
|
@ -214,12 +213,12 @@ screen.connect_signal("request::desktop_decoration", function(s)
|
|||
|
||||
if right_panel and left_panel then
|
||||
if right_panel.visible then
|
||||
awful.placement.bottom_left(focused.volume_osd_overlay, { margins = {
|
||||
awful.placement.bottom_left(focused.volume_osd_overlay, { margins = {
|
||||
left = osd_margin + left_panel.width,
|
||||
right = 0,
|
||||
top = 0,
|
||||
bottom = osd_margin,
|
||||
},
|
||||
},
|
||||
parent = focused }
|
||||
)
|
||||
return
|
||||
|
@ -228,37 +227,37 @@ screen.connect_signal("request::desktop_decoration", function(s)
|
|||
|
||||
if right_panel then
|
||||
if right_panel.visible then
|
||||
awful.placement.bottom_left(focused.volume_osd_overlay, { margins = {
|
||||
awful.placement.bottom_left(focused.volume_osd_overlay, { margins = {
|
||||
left = osd_margin,
|
||||
right = 0,
|
||||
top = 0,
|
||||
bottom = osd_margin,
|
||||
},
|
||||
},
|
||||
parent = focused }
|
||||
)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
awful.placement.bottom_right(focused.volume_osd_overlay, { margins = {
|
||||
awful.placement.centered(focused.volume_osd_overlay, { margins = {
|
||||
left = 0,
|
||||
right = osd_margin,
|
||||
top = 0,
|
||||
top = dpi(800),
|
||||
bottom = osd_margin,
|
||||
},
|
||||
},
|
||||
parent = focused }
|
||||
)
|
||||
end
|
||||
|
||||
awesome.connect_signal(
|
||||
'module::volume_osd:show',
|
||||
'module::volume_osd:show',
|
||||
function(bool)
|
||||
placement_placer()
|
||||
awful.screen.focused().volume_osd_overlay.visible = bool
|
||||
if bool then
|
||||
timer_rerun()
|
||||
awesome.emit_signal(
|
||||
'module::brightness_osd:show',
|
||||
'module::brightness_osd:show',
|
||||
false
|
||||
)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue