mirror of https://github.com/lcpz/lain.git
small fixes to calls; wiki updated
This commit is contained in:
parent
44864dba37
commit
b5c2c4cab5
|
@ -35,20 +35,22 @@ function fs.hide()
|
|||
end
|
||||
end
|
||||
|
||||
function fs.show(t_out, fs_args)
|
||||
function fs.show(seconds, options, scr)
|
||||
fs.hide()
|
||||
|
||||
local cmd = (fs_args and string.format("dfs %s", fs_args)) or "dfs"
|
||||
local cmd = (options and string.format("dfs %s", options)) or "dfs"
|
||||
local ws = helpers.read_pipe(helpers.scripts_dir .. cmd):gsub("\n*$", "")
|
||||
|
||||
if fs.followmouse then
|
||||
fs.notification_preset.screen = mouse.screen
|
||||
elseif scr then
|
||||
fs.notification_preset.screen = scr
|
||||
end
|
||||
|
||||
fs_notification = naughty.notify({
|
||||
preset = fs.notification_preset,
|
||||
text = ws,
|
||||
timeout = t_out
|
||||
timeout = seconds or 5
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -155,8 +155,7 @@ local function worker(args)
|
|||
awful.util.spawn(pulsebar.mixer)
|
||||
end),
|
||||
awful.button({}, 2, function()
|
||||
awful.util.spawn(string.format("pactl set-sink-lolume %d 100%%", pulsebar.sink))
|
||||
pulsebar.update()
|
||||
awful.util.spawn(string.format("pactl set-sink-volume %d 100%%", pulsebar.sink))
|
||||
end),
|
||||
awful.button({}, 3, function()
|
||||
awful.util.spawn(string.format("pactl set-sink-mute %d toggle", pulsebar.sink))
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit 871d249789aa00159943fc8553fe0cbfc2159cfd
|
||||
Subproject commit d0df450d05655c5d8f724c42dc6b5d18b3676a60
|
Loading…
Reference in New Issue