fix: make variables local
This commit is contained in:
parent
97049a1f75
commit
60bc316c26
10 changed files with 52 additions and 54 deletions
|
@ -6,12 +6,11 @@ local actions = require("actions")
|
|||
|
||||
local modkey = conf.modkey or "Mod4"
|
||||
local hyper = {"Ctrl", "Shift", "Mod1", "Mod4"}
|
||||
local binder = binder or require("separable.binder")
|
||||
local binder = require("separable.binder")
|
||||
local mb = binder.modal
|
||||
|
||||
local mpd = require("mpd")
|
||||
local handy = require("handy")
|
||||
local myglobalkeys = {}
|
||||
|
||||
local wibars = {}
|
||||
for s in screen do
|
||||
|
@ -133,7 +132,7 @@ local myglobalkeys = awful.util.table.join(
|
|||
awful.key({ modkey }, "m", function()
|
||||
awful.spawn.easy_async_with_shell(
|
||||
"which playerctl && " .. playerctl .. " status",
|
||||
function(stdout, stderr, reason, exitcode)
|
||||
function(_, _, _, exitcode)
|
||||
if exitcode > 0 then
|
||||
mb.grab{keymap=mpdmap, name="MPD", stay_in_mode=true}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue