System/shortcuts/session/logout

5 lines
122 B
Plaintext
Raw Normal View History

2023-06-18 03:04:42 -04:00
#!/usr/bin/env bash
session=`loginctl session-status | head -n 1 | awk '{print $1}'`
loginctl terminate-session $session