mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Fix deprecation of awful.util.spawn
This commit is contained in:
@@ -19,7 +19,7 @@ do
|
||||
}
|
||||
|
||||
for _,i in pairs(programs) do
|
||||
awful.util.spawn(i)
|
||||
awful.spawn(i)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -339,9 +339,9 @@ globalkeys = awful.util.table.join(
|
||||
|
||||
-- Backlight control
|
||||
awful.key({ }, "XF86MonBrightnessDown", function ()
|
||||
awful.util.spawn("xbacklight -dec 15") end),
|
||||
awful.spawn("xbacklight -dec 15") end),
|
||||
awful.key({ }, "XF86MonBrightnessUp", function ()
|
||||
awful.util.spawn("xbacklight -inc 15") end)
|
||||
awful.spawn("xbacklight -inc 15") end)
|
||||
)
|
||||
|
||||
clientkeys = awful.util.table.join(
|
||||
|
||||
@@ -24,9 +24,9 @@ local function volume_command (command)
|
||||
local base = "amixer set Master "
|
||||
|
||||
if command == "mute" then
|
||||
awful.util.spawn(base .. "toggle")
|
||||
awful.spawn(base .. "toggle")
|
||||
else
|
||||
awful.util.spawn(base .. step .. command)
|
||||
awful.spawn(base .. step .. command)
|
||||
end
|
||||
|
||||
vicious.force({widget})
|
||||
|
||||
Reference in New Issue
Block a user