From d91579d6c94ba9ce788f1d769b587c41f7fcd783 Mon Sep 17 00:00:00 2001 From: Tommaso Negri Date: Mon, 10 Aug 2026 23:24:14 +0200 Subject: update README --- README.md | 62 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 0fd1c44..63b4bf8 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,21 @@

bar

- Modular status bar for macOS, written in Swift. + Modular status bar for the Mac.

- bar draws a lightweight status bar on every screen. - Configure it — blocks, fonts, colors, highlights — directly in Swift source, - then make install and you're done. + bar screenshot

--- +`bar` draws a lightweight status bar on every screen. +Configure it — blocks, fonts, colors, highlights — directly in Swift source, +then `make install` and you're done. + +--- + ## Philosophy `bar` is inspired by the [suckless tools](https://suckless.org/) philosophy: @@ -58,18 +62,18 @@ Create a launch agent so the bar starts when you log in: - Label - house.panini.bar - ProgramArguments - ~/.local/bin/bar - RunAtLoad - - KeepAlive - - StandardOutPath - /tmp/bar/bar.log - StandardErrorPath - /tmp/bar/bar.err + Label + house.panini.bar + ProgramArguments + ~/.local/bin/bar + RunAtLoad + + KeepAlive + + StandardOutPath + /tmp/bar/bar.log + StandardErrorPath + /tmp/bar/bar.err ``` @@ -82,19 +86,19 @@ All configuration lives in `Sources/bar/Config.swift`: ```swift enum Config { - static let height: Double = 30 - static let position: Position = .top + static let height: Double = 30 + static let position: Position = .top - static let font: Font = .system(size: 14, weight: .regular, design: .monospaced) + static let font: Font = .system(size: 14, weight: .regular, design: .monospaced) - static let foreground: Color = .hex("#FFFFFF") - static let background: Color = .hex("#000000").opacity(0.75) - static let highlights: [Color] = [.blue, .purple] + static let foreground: Color = .hex("#FFFFFF") + static let background: Color = .hex("#000000").opacity(0.75) + static let highlights: [Color] = [.blue, .purple] - static let blocks: [Block] = [ - Block(name: "workspaces", placement: .left, command: "~/bin/workspaces"), - Block(name: "clock", placement: .right, command: "date '+%a %d, %H:%M:%S'", interval: 1), - ] + static let blocks: [Block] = [ + Block(name: "workspaces", placement: .left, command: "~/bin/workspaces"), + Block(name: "clock", placement: .right, command: "date '+%a %d, %H:%M:%S'", interval: 1), + ] } ``` @@ -136,8 +140,8 @@ React to clicks and scrolls on any block. The block's command receives `BUTTON` ```shell case $BUTTON in - (0) mpc toggle ;; - (1) mpc stop ;; + (0) mpc toggle ;; + (1) mpc stop ;; esac ``` @@ -190,4 +194,4 @@ make install ## License -[MIT](LICENSE) \ No newline at end of file +[MIT](LICENSE) -- cgit v1.2.3