Add logout shortcut

This commit is contained in:
Nathan McCarty 2023-06-18 03:04:42 -04:00
parent 27f005271a
commit d5ece48cbd
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 4 additions and 0 deletions

4
shortcuts/session/logout Executable file
View File

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