I know how to do it in the battery section through the GUI, but I’d like to set it up through a command, for automation purposes, and particularly for KDE Connect commands.

  • jpetso@lemmy.kde.social
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    There is kde-inhibit --screenSaver <command> provided by KDE.

    But these days, I would just recommend everyone to use systemd-inhibit --what=idle --why=<because> --who=<myself> <command> instead. Works across desktops and does the same thing.