Found how lock/unlock!
Code:
loginctl lock-session 1
Code:
loginctl unlock-session 1
This is roughly the same code as from here, except adds a '
1' for the session number(s)(and makes '
session' singular, no '
s' at the end, so that doesn't need root password):
https://forum.kde.org/viewtopic.php?...130691#p350000
So I can put this together using with the xset command.
Code:
xset dpms force off
For 'L
ocking command': (For this Does order matter? and Does '&&' or ';' matter?),
odd...trying from the command line seams to have to have `xset dpms force off` before and after, for it to go and stay blank.
Code:
xset dpms force off && loginctl lock-session 1 && xset dpms force off
For '
UnLocking command':
Code:
loginctl unlock-session 1
See also: