Compare commits
2 Commits
c9aef48da2
...
f6a8f5004b
Author | SHA1 | Date |
---|---|---|
Mark | f6a8f5004b | |
Mark | 17725f8807 |
|
@ -1,9 +1,27 @@
|
|||
local util = require("modules.ibus.util")
|
||||
local popup = require("modules.ibus.popup")
|
||||
local widget = require("modules.ibus.widget")
|
||||
|
||||
return {
|
||||
widget = require("modules.ibus.widget").widget,
|
||||
keybinds = require("modules.ibus.keybinds"),
|
||||
|
||||
set = function(lang)
|
||||
-- Switch to a language. Used by host interface.
|
||||
|
||||
local lang_id
|
||||
for k, v in pairs(config.ibus.language_list) do
|
||||
if (v["indicator_code"] == lang) then
|
||||
lang_id = k
|
||||
end
|
||||
end
|
||||
|
||||
util.set(lang_id, function()
|
||||
popup.update()
|
||||
widget.update()
|
||||
end)
|
||||
end,
|
||||
|
||||
init = function()
|
||||
util.set(1)
|
||||
end
|
||||
|
|
|
@ -50,7 +50,9 @@ function capture
|
|||
flameshot gui --accept-on-select --path $tmp_file
|
||||
convert $tmp_file $tmp_file.pdf
|
||||
lpr -T "Autoprint Screenshot" $tmp_file.pdf
|
||||
|
||||
rm $tmp_file
|
||||
rm $tmp_file.pdf
|
||||
|
||||
case "*"
|
||||
echo "Unknown action \"$argv[1]\""
|
||||
|
|
Loading…
Reference in New Issue