Thank you for the assistance in this topic, particularly with xwininfo. I've resolved the Anydesk issue with a small bash script, which I execute via an alias to close Anydesk.
---
#!/bin/bash
window_id=$(xwininfo -root -tree | grep -E "200x200" | grep -E "\(has no name\)" | awk '{print $1}')
if [ ! -z "$window_id" ]; then
flatpak kill com.anydesk.Anydesk > /dev/null 2>&1 &
xdotool windowclose $window_id
fi
Thank you for the assistance in this topic, particularly with xwininfo. I've resolved the Anydesk issue with a small bash script, which I execute via an alias to close Anydesk.
---
#!/bin/bash id=$(xwininfo -root -tree | grep -E "200x200" | grep -E "\(has no name\)" | awk '{print $1}')
window_
if [ ! -z "$window_id" ]; then
flatpak kill com.anydesk.Anydesk > /dev/null 2>&1 &
xdotool windowclose $window_id
fi