Compare commits

...

2 Commits

Author SHA1 Message Date
Mark f6a8f5004b
Remove pdf in screenshot script 2022-08-03 18:05:24 -07:00
Mark 17725f8807
Added ibus hook for host interface 2022-08-03 18:04:09 -07:00
2 changed files with 20 additions and 0 deletions

View File

@ -1,9 +1,27 @@
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

View File

@ -50,7 +50,9 @@ 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]\""