Skip to content

Commit

Permalink
koekeishiya#486 Remove built-in status bar. koekeishiya#454 Add optio…
Browse files Browse the repository at this point in the history
…n to specify padding for external bars
  • Loading branch information
koekeishiya committed Apr 23, 2020
1 parent 3f0aa27 commit 034ee3a
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 843 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Removed
- The built-in status bar has been removed. [#486](https://github.com/koekeishiya/yabai/issues/486)

### Added
- New window commands `--minimize` and `--deminimize`. Minimized windows are now reported through window queries and there is a new attribute `minimized` to identify the current state [#379](https://github.com/koekeishiya/yabai/issues/379)
- New config option `external_bar` to specify special padding compatible with the `space --toggle padding` option [#454](https://github.com/koekeishiya/yabai/issues/454)

### Changed
- New self-signed certificate used to sign the released binaries because the previous one expired at april 21th, 2020. You will have to re-enable accessibility permissions after this install. Sorry about that.
Expand Down
54 changes: 7 additions & 47 deletions doc/yabai.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: yabai
.\" Author: [see the "AUTHOR(S)" section]
.\" Generator: Asciidoctor 2.0.10
.\" Date: 2020-04-20
.\" Date: 2020-04-23
.\" Manual: Yabai Manual
.\" Source: Yabai
.\" Language: English
.\"
.TH "YABAI" "1" "2020-04-20" "Yabai" "Yabai Manual"
.TH "YABAI" "1" "2020-04-23" "Yabai" "Yabai Manual"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
Expand Down Expand Up @@ -127,55 +127,15 @@ Get or set the value of <space setting>.
Enable output of debug information to stdout.
.RE
.sp
\fBstatus_bar\fP [\fI<BOOL_SEL>\fP]
\fBexternal_bar\fP [\fI<main|all|off>:<top_padding>:<bottom_padding>\fP]
.RS 4
Enable custom status bar.
.RE
.sp
\fBstatus_bar_text_font\fP [\fI<font_family>:<font_style>:<font_size>\fP]
.RS 4
Specify name, style and size of font to use for drawing text.
Specify top and bottom padding for a potential custom bar that you may be running.
.br
Use \fIFont Book.app\fP to identify the correct name.
.RE
.sp
\fBstatus_bar_icon_font\fP [\fI<font_family>:<font_style>:<font_size>\fP]
.RS 4
Specify name, style and size of font to use for drawing icon symbols.
\fImain\fP: Apply the given padding only to spaces located on the main display.
.br
Use \fIFont Book.app\fP to identify the correct name.
.RE
.sp
\fBstatus_bar_background_color\fP [\fI<COLOR>\fP]
.RS 4
Color to use for drawing status bar background.
.RE
.sp
\fBstatus_bar_foreground_color\fP [\fI<COLOR>\fP]
.RS 4
Color to use for drawing status bar elements.
.RE
.sp
\fBstatus_bar_space_icon_strip\fP [\fI<sym_1> <sym_2> <sym_n>\fP]
.RS 4
Specify symbols separated by whitespace to be used for visualizing spaces.
.RE
.sp
\fBstatus_bar_power_icon_strip\fP [\fI<sym_battery> <sym_ac>\fP]
.RS 4
Specify two symbols separated by whitespace.
\fIall\fP: Apply the given padding to all spaces regardless of their display.
.br
The first symbol represents battery power and the second symbol indicates AC.
.RE
.sp
\fBstatus_bar_space_icon\fP [\fI<sym>\fP]
.RS 4
Specify a general symbol to use for any given space that does not have a match in \fIstatus_bar_space_icon_strip\fP.
.RE
.sp
\fBstatus_bar_clock_icon\fP [\fI<sym>\fP]
.RS 4
Specify a symbol to represent the current time.
\fIoff\fP: Do not apply any special padding.
.RE
.sp
\fBmouse_follows_focus\fP [\fI<BOOL_SEL>\fP]
Expand Down
34 changes: 5 additions & 29 deletions doc/yabai.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -106,35 +106,11 @@ Global Settings
*debug_output* ['<BOOL_SEL>']::
Enable output of debug information to stdout.

*status_bar* ['<BOOL_SEL>']::
Enable custom status bar.

*status_bar_text_font* ['<font_family>:<font_style>:<font_size>']::
Specify name, style and size of font to use for drawing text. +
Use 'Font Book.app' to identify the correct name.

*status_bar_icon_font* ['<font_family>:<font_style>:<font_size>']::
Specify name, style and size of font to use for drawing icon symbols. +
Use 'Font Book.app' to identify the correct name.

*status_bar_background_color* ['<COLOR>']::
Color to use for drawing status bar background.

*status_bar_foreground_color* ['<COLOR>']::
Color to use for drawing status bar elements.

*status_bar_space_icon_strip* ['<sym_1> <sym_2> <sym_n>']::
Specify symbols separated by whitespace to be used for visualizing spaces.

*status_bar_power_icon_strip* ['<sym_battery> <sym_ac>']::
Specify two symbols separated by whitespace. +
The first symbol represents battery power and the second symbol indicates AC.

*status_bar_space_icon* ['<sym>']::
Specify a general symbol to use for any given space that does not have a match in 'status_bar_space_icon_strip'.

*status_bar_clock_icon* ['<sym>']::
Specify a symbol to represent the current time.
*external_bar* ['<main|all|off>:<top_padding>:<bottom_padding>']::
Specify top and bottom padding for a potential custom bar that you may be running. +
'main': Apply the given padding only to spaces located on the main display. +
'all': Apply the given padding to all spaces regardless of their display. +
'off': Do not apply any special padding.

*mouse_follows_focus* ['<BOOL_SEL>']::
When focusing a window, put the mouse at its center.
Expand Down
21 changes: 5 additions & 16 deletions examples/yabairc
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
#!/usr/bin/env sh

# bar settings
yabai -m config status_bar off
yabai -m config status_bar_text_font "Helvetica Neue:Bold:12.0"
yabai -m config status_bar_icon_font "FontAwesome:Regular:12.0"
yabai -m config status_bar_background_color 0xff202020
yabai -m config status_bar_foreground_color 0xffa8a8a8
yabai -m config status_bar_space_icon_strip I II III IV V VI VII VIII IX X
yabai -m config status_bar_power_icon_strip  
yabai -m config status_bar_space_icon 
yabai -m config status_bar_clock_icon 

# global settings
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse off
Expand All @@ -37,10 +26,10 @@ yabai -m config mouse_action2 resize

# general space settings
yabai -m config layout bsp
yabai -m config top_padding 20
yabai -m config bottom_padding 20
yabai -m config left_padding 20
yabai -m config right_padding 20
yabai -m config window_gap 10
yabai -m config top_padding 12
yabai -m config bottom_padding 12
yabai -m config left_padding 12
yabai -m config right_padding 12
yabai -m config window_gap 06

echo "yabai configuration loaded.."
Loading

0 comments on commit 034ee3a

Please sign in to comment.