Files
dotfiles/rofi/leave/leave.sh
2025-05-27 12:52:45 +05:30

15 lines
424 B
Bash

#!/usr/bin/env bash
choice=$(printf "Lock\nLogout\nSuspend\nReboot\nShutdown" | rofi -dmenu)
if [[ $choice == "Lock" ]];then
bash ~/.config/system_scripts/wayland_session_lock
elif [[ $choice == "Logout" ]];then
pkill -KILL -u "$USER"
elif [[ $choice == "Suspend" ]];then
systemctl suspend
elif [[ $choice == "Reboot" ]];then
systemctl reboot
elif [[ $choice == "Shutdown" ]];then
systemctl poweroff
fi