Skip to content

Commit

Permalink
feat(bar): add komorebi-bar
Browse files Browse the repository at this point in the history
This commit adds an initial version of the komorebi status bar.

At this point the bar is still considered "alpha" and the configuration
format may see some small breaking changes based on usage and feedback.

There is an accompanying video series which details the creation of this
bar on YouTube: https://www.youtube.com/watch?v=x2Z5-K05bHs

Some high level notes on the bar:

* An external application which exclusively consumes komorebi_client's
  public API surface - anyone can create this without hacking directly
  on komorebi's internals
* Generally a very simple bar with limited configuration options - users
  who want more configurability should use alternatives such as yasb or
  zebar
* Scope is deliberately limited to provide a tighter, more focused
  experience: Windows-only, komorebi-only, single-monitor-only,
  horizontal-only
* No support for custom widgets or templating
* Colours are controlled exclusively through themes which adhere to a
  palette framework such as Base16 or Catppuccin (and possibly others in
  the future)

This commit contains all of the commits listed:

e5fa03c
feat(bar): initial commit

b399059
feat(bar): add config struct with basic opts

bc2f4a1
feat(bar): handle komorebi restarts gracefully

ca6bf69
feat(bar): add basic widget config opts

18358ef
feat(bar): add interactive layout and media widgets

92bb9f6
perf(bar): use explicit redraw and data refresh strategies

8e74e97
feat(bar): add battery and network widgets

fdc7706
feat(bar): add custom font loader

0251627
feat(bar): allow right side widget ordering

a168869
feat(bar): add app icon next to focused window title

9f78739
feat(bar): add komorebi widget (+config) and themes

a4ef858
feat(bar): use phosphor icons for uniformity

e99138a
feat(bar): add first pass at configuration loader

d6ccf4c
feat(bar): add logging and config hotwatch

34d2431
feat(bar): handle monocle containers in komorebi widget

7907dfe
feat(bar): add optional data refresh intervals to config

96a9cb3
feat(bar): add flag to list system fonts

42b7a13
feat(bar): add activity to network widget

ac38f52
feat(bar): to_pretty_bytes on network activity

6803ffd
feat(bar): configurable network activity fill char len

7d7a5d7
ci(github): add bar to wix and goreleaser configs

da307e3
feat(bar): expand theme sources

c580ff7
feat(bar): add accent config for themes

bc4dabd
feat(bar): add accents to widget emojis

a574837
feat(bar): add to hard-coded float identifiers

ff41b55
chore(deps): bump base16-egui-themes
  • Loading branch information
LGUG2Z committed Sep 14, 2024
1 parent c06d9af commit bc67936
Show file tree
Hide file tree
Showing 23 changed files with 4,565 additions and 61 deletions.
1 change: 1 addition & 0 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
target/${{ matrix.target }}/release/komorebi.exe
target/${{ matrix.target }}/release/komorebic.exe
target/${{ matrix.target }}/release/komorebic-no-console.exe
target/${{ matrix.target }}/release/komorebi-bar.exe
target/${{ matrix.target }}/release/komorebi-gui.exe
target/${{ matrix.target }}/release/komorebi.pdb
target/${{ matrix.target }}/release/komorebic.pdb
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
CHANGELOG.md
dummy.go
komorebic/applications.yaml
/.vs
9 changes: 9 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ builds:
post:
- mkdir -p dist/windows_amd64
- cp ".\target\x86_64-pc-windows-msvc\release\komorebi-gui.exe" ".\dist\komorebi-gui_windows_amd64_v1\komorebi-gui.exe"
- id: komorebi-bar
main: dummy.go
goos: [ "windows" ]
goarch: [ "amd64" ]
binary: komorebi-bar
hooks:
post:
- mkdir -p dist/windows_amd64
- cp ".\target\x86_64-pc-windows-msvc\release\komorebi-bar.exe" ".\dist\komorebi-bar_windows_amd64_v1\komorebi-bar.exe"

archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-x86_64-pc-windows-msvc"
Expand Down
Loading

0 comments on commit bc67936

Please sign in to comment.