This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/lock-and-sleep

9 lines
113 B
Plaintext
Raw Normal View History

2020-07-02 11:17:42 -05:00
#!/usr/bin/env bash
if is_wayland; then
swaylock &
else
dm-tool switch-to-greeter &
fi
sudo systemctl suspend