FelixKratz / SketchyBar

A highly customizable macOS status bar replacement
https://felixkratz.github.io/SketchyBar/
GNU General Public License v3.0
5.45k stars 85 forks source link

Sketchybar is hidden when application is in fullscreen #383

Closed ciarafair closed 1 year ago

ciarafair commented 1 year ago

When I maximise an application to full screen it is replaced by a blank black bar, or if I unhide my normal statusbar the original statusbar will fade in.

Screenshot 2023-07-11 at 5 28 40 pm Screenshot 2023-07-11 at 5 31 48 pm

I am using this sketchybarrc:

#!/bin/sh

bar=(
  color=0xff24273a
  height=32
  sticky=on
  padding_left=7
  padding_right=7
)

default=(
  icon.drawing=off
  label.padding_left=4
  label.padding_right=4
  label.color=0xffcad3f5
)

sketchybar \
  --bar "${bar[@]}" \
  --default "${default[@]}"

sketchybar \
  --add item space left \
  --set space script='sketchybar --set $NAME label="[$(echo "$INFO" | jq .[])]"'\
  --subscribe space space_change

sketchybar \
  --add item app_name left \
  --set app_name script='sketchybar --set $NAME label="$USER::$INFO"' \
  --subscribe app_name front_app_switched

sketchybar \
  --add item time right \
  --set time script='sketchybar --set $NAME label="$(date "+%H:%M")"' \
             update_freq=30 \
  --subscribe time system_woke

sketchybar \
  --add item ip right \
  --set ip script='sketchybar --set $NAME label="/$(ipconfig getifaddr en0)/"'\
  --subscribe ip wifi_change

sketchybar --update
FelixKratz commented 1 year ago

This is actually expected behavior, there is an extra flag I need to clear from the window tags specifically for this: https://github.com/FelixKratz/SketchyBar/blob/61eacaeb450deec43b3cdfc510541eaea3165b5d/src/window.c#L31

What you see is the default system behavior in fullscreen applications. Drawing the bar over fullscreen windows would bring many problems, e.g. the black bar is only there on notched screens and not on non-notched screens, where the bar would then obstruct the UI of the fullscreen application.