Compare commits
No commits in common. "f6a8f5004bc95372cbdc36a2f1d7666f28849c10" and "c9aef48da2f0e25c099d94312160a0ae66c84169" have entirely different histories.
f6a8f5004b
...
c9aef48da2
|
@ -1,27 +1,9 @@
|
||||||
local util = require("modules.ibus.util")
|
local util = require("modules.ibus.util")
|
||||||
local popup = require("modules.ibus.popup")
|
|
||||||
local widget = require("modules.ibus.widget")
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
widget = require("modules.ibus.widget").widget,
|
widget = require("modules.ibus.widget").widget,
|
||||||
keybinds = require("modules.ibus.keybinds"),
|
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()
|
init = function()
|
||||||
util.set(1)
|
util.set(1)
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,9 +50,7 @@ function capture
|
||||||
flameshot gui --accept-on-select --path $tmp_file
|
flameshot gui --accept-on-select --path $tmp_file
|
||||||
convert $tmp_file $tmp_file.pdf
|
convert $tmp_file $tmp_file.pdf
|
||||||
lpr -T "Autoprint Screenshot" $tmp_file.pdf
|
lpr -T "Autoprint Screenshot" $tmp_file.pdf
|
||||||
|
|
||||||
rm $tmp_file
|
rm $tmp_file
|
||||||
rm $tmp_file.pdf
|
|
||||||
|
|
||||||
case "*"
|
case "*"
|
||||||
echo "Unknown action \"$argv[1]\""
|
echo "Unknown action \"$argv[1]\""
|
||||||
|
|
Loading…
Reference in New Issue