linux_notification_center icon indicating copy to clipboard operation
linux_notification_center copied to clipboard

Option to ignore margins when fullscreened

Open MyriaCore opened this issue 5 years ago • 2 comments

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.

MyriaCore avatar Aug 06 '20 16:08 MyriaCore

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

MyriaCore avatar Jan 14 '21 19:01 MyriaCore

Actually, I am not sure if I understand the usecase. Could you explain what this is supposed to do?

phuhl avatar Jan 16 '21 13:01 phuhl