System/shortcuts/session/logout

5 lines
122 B
Bash
Executable File

#!/usr/bin/env bash
session=`loginctl session-status | head -n 1 | awk '{print $1}'`
loginctl terminate-session $session