cmacrae / spacebar

A minimal status bar for macOS. Ideal for use with tiling window managers like yabai
MIT License
1.22k stars 52 forks source link

Bar only rendered on the first space on Monterey M1 Pro #94

Closed hb0nes closed 2 years ago

hb0nes commented 2 years ago

When i start the application with brew services restart spacebar

It only displays on the current space. Switching spaces with Yabai will give me no bar whatsoever.

Current config:

#!/usr/bin/env sh
# LIGHTBLUE=0xff5E81AC
# BLUE=0xff81A1C1
# EVENLIGHTERBLUE=0xff88C0D0
# ORANGE=0xffD08770
# RED=0xffBF616A
# YELLOW=0xffEBCB8B
# PURPLE=0xffB48EAD
# GREEN=0xffA3BE8C
# BG=0xda2E3440
# FG=0xaaE5E9F0

LIGHTBLUE=0xff7da6ff
BLUE=0xff7aa2f7
EVENLIGHTERBLUE=0xff0db9d7
ORANGE=0xffff9e64
RED=0xfff7768e
YELLOW=0xffe0af68
PURPLE=0xffad8ee6
GREEN=0xff9ece6a
BG=0xda11121D
FG=0xaaa9b1d6

spacebar -m config title                       on

spacebar -m config text_font                   "SFMono Nerd Font:Regular:12.0"
spacebar -m config icon_font                   "SFMono Nerd Font:Regular:12.0"

spacebar -m config spaces                      on
spacebar -m config spaces_for_all_displays     on
spacebar -m config space_icon                    #•
spacebar -m config space_icon_color            $LIGHTBLUE #5E81AC
spacebar -m config space_icon_color_secondary  $BLUE #81A1C1
spacebar -m config space_icon_color_tertiary   0xfffff9b0 #fff9b0
spacebar -m config space_icon_strip            I II III IV V VI VII VIII IX X

spacebar -m config clock                       on
spacebar -m config clock_icon                  
spacebar -m config clock_icon_color            $EVENLIGHTERBLUE #88C0D0
spacebar -m config clock_format                "%a, %d %b %H:%M"

spacebar -m config power                       on
spacebar -m config power_icon_strip             
spacebar -m config power_icon_color            $ORANGE #D08770
spacebar -m config battery_icon_color          $RED #BF616A

spacebar -m config dnd_icon                    
spacebar -m config dnd_icon_color              $PURPLE #B48EAD

spacebar -m config position                    top
spacebar -m config display                     all

spacebar -m config height                      26
spacebar -m config padding_left                20
spacebar -m config padding_right               20
spacebar -m config spacing_left                25
spacebar -m config spacing_right               15

spacebar -m config background_color            $BG #2E3440da
spacebar -m config foreground_color            $FG #E5E9F0aa

echo "spacebar configuration loaded.."

edit: Nothing in error log.

TonyWu20 commented 2 years ago

The fork of #91 works.

hb0nes commented 2 years ago

The fork of #91 works.

How do I install it. Build it myself, or is there some brew magic I can do?

nilsi commented 2 years ago

I also wonder how to install that fork. Anyone has some input?

Or if we could merge it into master @cmacrae

hb0nes commented 2 years ago

I managed it by compiling the sources and making my own launchd service.

Git clone the repo, go into the repo and type make. Place the binary somewhere like /usr/local/bin

❯ cat com.spacebar.spacebar.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>com.spacebar.spacebar</string>
  <key>ProgramArguments</key>
  <array>
    <string>/usr/local/bin/spacebar</string>
  </array>
  <key>EnvironmentVariables</key>
  <dict>
    <key>PATH</key>
    <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
  </dict>
  <key>RunAtLoad</key>
  <true/>
  <key>KeepAlive</key>
  <true/>
  <key>StandardOutPath</key>
  <string>/tmp/spacebar.out.log</string>
  <key>StandardErrorPath</key>
  <string>/tmp/spacebar.err.log</string>
  <key>ProcessType</key>
  <string>Interactive</string>
</dict>
</plist>

I'm not sure if this is the best .plist but it works.

edit: markdown doesn't work -_- Op ma 6 dec. 2021 om 19:49 schreef Nicklas Nilsson @.***

:

I also wonder how to install that fork. Anyone has some input?

Or if we could merge it into master @cmacrae https://github.com/cmacrae

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cmacrae/spacebar/issues/94#issuecomment-987062972, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIOJVPHJCE4V6SXISLONVLUPUAUDANCNFSM5IHPPSMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

TonyWu20 commented 2 years ago

I also wonder how to install that fork. Anyone has some input?

Or if we could merge it into master @cmacrae

The fork of #91 works.

How do I install it. Build it myself, or is there some brew magic I can do?

I installed it by editing the head source to the fork in the homebrew formula file for spacebar. The steps are:

  1. brew edit spacebar will open the formula file of spacebar in the text editor.
  2. Find the line starts with head and modify it to head "https://github.com/cxa/spacebar.git"
  3. brew uninstall spacebar or brew unlink spacebar to get rid of the original version.
  4. brew install spacebar --HEAD to install the specified fork version. Then the brew services start spacebar works as usual.
hb0nes commented 2 years ago

Cool, thanks!

I'm a Linux user so didn't know about all this.

Op di 7 dec. 2021 om 10:59 schreef Tony @.***>:

I also wonder how to install that fork. Anyone has some input?

Or if we could merge it into master @cmacrae https://github.com/cmacrae

The fork of #91 https://github.com/cmacrae/spacebar/pull/91 works.

How do I install it. Build it myself, or is there some brew magic I can do?

I installed it by editing the head source to the fork in the homebrew formula file for spacebar. The steps are:

  1. brew edit spacebar will open the formula file of spacebar in the text editor.
  2. Find the line starts with head and modify it to head " https://github.com/cxa/spacebar.git"
  3. brew uninstall spacebar or brew unlink spacebar to get rid of the original version.
  4. brew install spacebar --HEAD to install the specified fork version. Then the brew services start spacebar works as usual.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cmacrae/spacebar/issues/94#issuecomment-987758238, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIOJVOLQ32KCXXF6OQBBMTUPXLJZANCNFSM5IHPPSMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.