[bin] Fix org-clock out for suspend-if-docked

This commit is contained in:
Sebastian Schulze 2023-04-21 13:10:55 +02:00
parent 6b79dcba1b
commit 0771d79dc5
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ if thinkpad-is-docked; then
if [[ $(emacsclient -n -e "(org-clocking-p)") == "t" ]]; then
notify-send "OrgMode $(org-get-current-clock-task)" "Clocking out of current task because of inactivity."
org-clock-out
doas /run/current-system/sw/bin/systemctl suspend;
fi;
doas /run/current-system/sw/bin/systemctl suspend;
fi;