linux_notification_center
linux_notification_center copied to clipboard
Option to ignore margins when fullscreened
Not sure if this is really possible to detect, but it'd add a nice bit of polish.
If the currently-focused app/window is in fullscreen (like a game, yt video, etc), there should be an option to ignore the user-set margins. This way, there aren't any weird gaps anywhere it might be visually weird.
It does appear possible to test whether the focused application is fullscreen. I stumbled onto this SO answer and it did work correctly in my testing:
is-full-screen () {
# Initializations section of your shell script:
root_geo="$(xwininfo -root | grep geometry)"
# In the loop:
[ "$(xwininfo -id $(xdotool getactivewindow) | grep geometry)" = "$root_geo" ] && echo "Running fullscreen"
}
# to test:
sleep 3 && is-full-screen
Actually, I am not sure if I understand the usecase. Could you explain what this is supposed to do?