okay, so my problem is that my screen locker is never activated. this is the only reason why i use sway (a wayland reimplementation of the i3 xorg window manager), and not i3
i have these two relevant lines in my ~/.config/i3/config
exec_always --no-startup-id xset s 120 5
exec_always...
here's my little script that works well with the i3 wm
#!/usr/bin/env bash
langs=(eng ara chi_sim chi_tra deu ell fin heb hun jpn kor nld rus tur)
lang=$(printf '%s\n' "${langs[@]}" | dmenu "$@")
maim -us | tesseract --dpi 145 -l eng+${lang} - - | xsel -bi
#grim -g "$(slurp)" - | tesseract...