• Stars
    star
    1,626
  • Rank 28,772 (Top 0.6 %)
  • Language
    C
  • License
    MIT License
  • Created over 12 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A featherweight, lemon-scented, bar based on xcb

NAME

lemonbar - Featherweight lemon-scented bar

SYNOPSIS

lemonbar [-h | -g widthxheight+x+y | -o | -b | -d | -f font | -p | -n name | -u pixel | -B color | -F color | -U color]

DESCRIPTION

lemonbar (formerly known as bar) is a lightweight statusbar based on XCB. Provides full UTF-8 support, basic formatting, RandR and Xinerama support and EWMH compliance without wasting your precious memory.

INPUT

The data to be parsed is read from the standard input, parsing and printing the input data are delayed until a newline is found.

OPTIONS

-h

Display the help and exit.

-g widthxheight+x+y

Set the window geometry. If a parameter is omitted it's filled with the default value. If the y parameter is specified along with the -b switch then the position is relative to the bottom of the screen.

-o name

Set next output to name. May be used multiple times; order is significant. If any -o options are given, only -o specified monitors will be used. Invalid output names are silently ignored. (only supported on randr configurations at this time)

-b

Dock the bar at the bottom of the screen.

-d

Force docking without asking the window manager. This is needed if the window manager isn't EWMH compliant.

-f font

Specifies a font to use. Can be used multiple times to load more than a single font.

-p

Make the bar permanent, don't exit after the standard input is closed.

-n name

Set the WM_NAME atom value for the bar.

-u pixel

Sets the underline width in pixels. The default is 1.

-B color

Set the background color of the bar. color must be specified in the hex format (#aarrggbb, #rrggbb, #rgb). If no compositor such as compton or xcompmgr is running the alpha channel is silently ignored.

-F color

Set the foreground color of the bar. Accepts the same color formats as -B.

-U color

Set the underline color of the bar. Accepts the same color formats as -B.

FORMATTING

lemonbar provides a screenrc-inspired formatting syntax to allow full customization at runtime. Every formatting block is opened with %{ and closed by } and accepts the following commands, the parser tries its best to handle malformed input. Use %% to get a literal percent sign (%).

R

Swap the current background and foreground colors.

l

Aligns the following text to the left side of the screen.

c

Aligns the following text to the center of the screen.

r

Aligns the following text to the right side of the screen.

Owidth

Offset the current position by width pixels in the alignment direction.

Bcolor

Set the text background color. The parameter color can be - or a color in one of the formats mentioned before. The special value - resets the color to the default one.

Fcolor

Set the text foreground color. The parameter color can be - or a color in one of the formats mentioned before. The special value - resets the color to the default one.

Tindex

Set the font used to draw the following text. The parameter index can either be - or the 1-based index of the slot which contains the desired font. If the parameter is - lemonbar resets to the normal behavior (matching the first font that can be used for the character). If the selected font can't be used to draw a character, lemonbar will fall back to normal behavior for that character

Ucolor

Set the text underline color. The parameter color can be - or a color in one of the formats mentioned before. The special value - resets the color to the default one.

Abutton:command:

Create a clickable area starting from the current position, when the area is clicked command is printed on stdout. The area is closed when a A token, not followed by : is encountered.

Eg. %{A:reboot:} Click here to reboot %{A}

The button field is optional, it defaults to the left button, and it's a number ranging from 1 to 5 which maps to the left, middle, right, scroll up and scroll down movements. Your mileage may vary.

Nested clickable areas can trigger different commands.

Eg. %{A:reboot:}%{A3:halt:} Left click to reboot, right click to shutdown %{A}%{A}

Sdir

Change the monitor the bar is rendered to. dir can be either

+/-

Next/previous monitor.

f/l

First/last monitor.

0-9

Nth monitor.

nNAME

Named monitor. Eg. %{SnHDMI-0} This text will show up on the HDMI-0 output

Attribute modifiers

+attribute

Set the attribute attribute for the following text.

-attribute

Unset the attribute attribute for the following text.

!attribute

Toggle the attribute attribute for the following text.

Where attribute is one of the following

o

Draw a line over the text.

u

Draw a line under the text.

OUTPUT

Clicking on an area makes lemonbar output the command to stdout, followed by a newline, allowing the user to pipe it into a script, execute it or simply ignore it. Simple and powerful, that's it.

WWW

git repository

AUTHOR

2012-2020 (C) The Lemon Man

Xinerama support was kindly contributed by Stebalien

RandR support was kindly contributed by jvvv

Clickable areas support was heavily based off u-ra contribution

More Repositories

1

ldm

A lightweight device mounter, with libudev as only dependency
C
204
star
2

criterion.nim

Statistic-driven micro-benchmark framework
Nim
34
star
3

Space-Invaders-Emulator

Fuck PS3 we haz Space Invaders!
C
33
star
4

compactdict

A compact dictionary implementation
Nim
19
star
5

loadMii

A lightweight fast and simple homebrew loader for Nintendo Wii.
C
18
star
6

jstin

JSON {de,}serialization for the working men.
Nim
16
star
7

Q2-Tools

Homebrew toolchain/sdk/samples for the Samsung YP-Q2 PMP
C
14
star
8

cassette

Record and replay your HTTP sessions!
Nim
12
star
9

PrexDS

Embedded real-time operating system for the Nintendo DS
C
9
star
10

savezelda-gba

Save editor for The Legend Of Zelda : A Link To The Past (GBA)
Python
8
star
11

langPatch

A plugin for Sony PSP to patch the language used in games.
C
6
star
12

autobahn

Naming things is NP-hard
C
6
star
13

sketchpad

A sketching app for file formats
Python
6
star
14

greenLeaf

A mips III emulator.
C
5
star
15

dtoa.nim

Port of Milo Yip's fast dtoa() implementation
Nim
5
star
16

jrec

Recover jpeg images out of raw blobs
C
5
star
17

grape

Apple II emulator for Nintendo DS
C
4
star
18

taiko

A Wii nandloader replacement
C
4
star
19

bviplus

Personal fork of bviplus 0.9.4
C
4
star
20

psptoolchain-buildscripts-patch

The pspsdk/psptoolchain build script patched with working URLs
Shell
4
star
21

uFb

A tiny framebuffer library
C
4
star
22

signCheck

Does some checks onto your Wii IOS set.
4
star
23

SPARK

World is just a bunch of spare archives.
C
3
star
24

OpenBLTC

Tools to deal with Freescale BLTC protocol
C
3
star
25

python_bluethink

A bridge between your pc and your phone
Python
2
star
26

vim-objdump

Vim + objdump = poor man's disassembler
Vim Script
2
star
27

chicken-sndfile

CHICKEN wrapper for libsndfile
Scheme
2
star
28

vim-rice

Just an awesome FFI for Vim
C
1
star
29

chicken-fftw3

Thin CHICKEN wrapper for fftw3
Scheme
1
star
30

ghidra-ti-srec-loader

Ghidra Loader for TI Text SREC format
Java
1
star
31

announcr

Announce the next track playing with synthetized and scary voice
C
1
star