This commit is contained in:
Shihaam Abdul Rahman 2023-08-20 12:01:56 +05:00
parent e742d169c2
commit 7eeecd9991
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

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