This commit is contained in:
2023-08-20 12:01:56 +05:00
parent e742d169c2
commit 7eeecd9991

View File

@ -1,8 +1,8 @@
#!/bin/bash
if [[ $XDG_SESSION_TYPE != "x11" ]]; then
echo "Unsupported session type: $XDG_SESSION_TYPE"
exit 1
echo "Unsupported session type: $XDG_SESSION_TYPE"
exit 1
fi
get_tg_window_id(){
@ -43,6 +43,6 @@ elif [ "$1" == "unlock" ]; then
unlock_tg
return_mouse
else
echo "Invalid argument. Please use 'lock' or 'unlock'."
exit 1
echo "Invalid argument. Please use 'lock' or 'unlock'."
exit 1
fi