diff options
| author | Ben Sima <ben@bsima.me> | 2022-09-02 10:01:17 -0400 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2022-09-02 10:01:17 -0400 |
| commit | 59d7ad2042294b9f8965bfd21c6f379eebfbee16 (patch) | |
| tree | 305fbe998ff3cbdfc6633c10d7bd0b39911ab977 /logout | |
| parent | ee0c4be2a94d6f5c0c8bc29975b4f9b73967ffcd (diff) | |
add logout script
Diffstat (limited to 'logout')
| -rwxr-xr-x | logout | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -0,0 +1,3 @@ +#!/usr/bin/env bash +session=$(loginctl session-status | head -n 1 | awk '{print $1}') +loginctl terminate-session $session |
