Browse Source

keyboard_layout.lua: quote command argument

develop
Alice Gaudon 1 week ago
parent
commit
6e94e368ed
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      simple/widgets/keyboard_layout.lua

+ 2
- 2
simple/widgets/keyboard_layout.lua View File

@ -11,7 +11,7 @@ local layouts = config.widgets.keyboard_layout.layouts
local current_layout_index = 1
function switchLayout()
current_layout_index = (current_layout_index % #(layouts)) + 1
os.execute(config.widgets.keyboard_layout.layout_switch_command .. " " .. layouts[current_layout_index])
os.execute(config.widgets.keyboard_layout.layout_switch_command .. " \"" .. layouts[current_layout_index] .. "\"")
end
return {
@ -23,4 +23,4 @@ return {
hotkey.make(config.switch_alt, switchLayout,
{ description = "switch keyboard layout (alternative)" })
end
}
}

Loading…
Cancel
Save