在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):cmacrae/spacebar开源软件地址(OpenSource Url):https://github.com/cmacrae/spacebar开源编程语言(OpenSource Language):C 95.1%开源软件介绍(OpenSource Introduction):A minimal status bar for macOS Aboutspacebar is a minimal status bar for macOS. Ideal for use with tiling window managers like yabai. InstallationA package and service to install and manage spacebar is provided in two flavours: Homebrew & Nix. Homebrewspacebar can be installed using Homebrew from the
NixA package is generally available to Nix users on macOS in the various channels. {
inputs.darwin.url = "github:lnl7/nix-darwin";
inputs.spacebar.url = "github:cmacrae/spacebar/v1.4.0";
outputs = { self, darwin, spacebar }: {
darwinConfigurations.example = darwin.lib.darwinSystem {
modules = [
{
nixpkgs.overlays = [
spacebar.overlay
];
}
];
};
};
} Or try it out with spacebar can be configured and managed in a declarative manner using the Accessibility Permissionsspacebar makes use of the macOS Accessibility APIs - after starting spacebar, you should be prompted to grant access. Configurationspacebar is configured by setting spacebar's configuration file must executable and is looked for in the following locations (in this order) by default:
Getting startedTo get started, create an empty configuration file and make it executable:
Here's a configuration taken from
Note: Ensure fonts are installed to use glyphs For further configuration documentation, please see Declarative configuration with NixIf you're using the {
services.spacebar.enable = true;
services.spacebar.package = pkgs.spacebar;
services.spacebar.config = {
position = "top";
display = "main";
height = 26;
title = "on";
spaces = "on";
clock = "on";
power = "on";
padding_left = 20;
padding_right = 20;
spacing_left = 25;
spacing_right = 15;
text_font = ''"Menlo:Regular:12.0"'';
icon_font = ''"Font Awesome 5 Free:Solid:12.0"'';
background_color = "0xff202020";
foreground_color = "0xffa8a8a8";
power_icon_color = "0xffcd950c";
battery_icon_color = "0xffd75f5f";
dnd_icon_color = "0xffa8a8a8";
clock_icon_color = "0xffa8a8a8";
power_icon_strip = " ";
space_icon = "•";
space_icon_strip = "1 2 3 4 5 6 7 8 9 10";
spaces_for_all_displays = "on";
display_separator = "on";
display_separator_icon = "";
space_icon_color = "0xff458588";
space_icon_color_secondary = "0xff78c4d4";
space_icon_color_tertiary = "0xfffff9b0";
clock_icon = "";
dnd_icon = "";
clock_format = ''"%d/%m/%y %R"'';
right_shell = "on";
right_shell_icon = "";
right_shell_command = "whoami";
};
} Integration with yabaiyabai provides the
So, if you like having spacebar at the bottom, you'd use You can also use the command
Debug output and error reportingIn the case that something isn't working as you're expecting, please make sure to take a look in the output and error log. To enable debug output make sure that your configuration file contains HomebrewIf you're using the Homebrew service, the log files can be found in the following directory:
NixIf you're using the Nix service, you can set up debugging like so: {
services.spacebar.config.debug_output = "on";
launchd.user.agents.spacebar.serviceConfig.StandardErrorPath = "/tmp/spacebar.err.log";
launchd.user.agents.spacebar.serviceConfig.StandardOutPath = "/tmp/spacebar.out.log";
} UpgradingTo upgrade the Homebrew package, run
If you're using the Nix package form the nixpkgs collection and keeping your channels up to date, package upgrades will roll in as you command. Requirements and CaveatsPlease read the below requirements carefully.
Please also take note of the following caveats.
Releases and branchesMain work for this project is conducted on the License and Attributionsspacebar is licensed under the MIT License, a short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. Many thanks to @koekeishiya for creating yabai, and providing the codebase for an example status bar, from which this project was born. DisclaimerUse at your own discretion. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论