eeeeeta/capybara

语言: C

git: https://github.com/eeeeeta/capybara

柠檬吧的酒吧经理
bar manager for lemonbar
README.md (中文)

水豚

Capybara

这是什么?

Capybara是一个柠檬棒的轻量级管理器,用C语言编写。 它将为您启动和管理lemonbar,并在bspwm更改时自动更新。

大。我如何让它工作?

您需要以下依赖项:

  • 柠檬棒(显然)
  • xtitle
  • 电力线字体(特别是电力线的Inconsolata)。 (你或许可以在这里得到它们)
  • icomoon字体(在此存储库中提供 - 将其安装在您的系统上!)
  • pulseaudio-ctl(音量需要)
  • mpc和MPD服务器(可选,仅当您希望栏显示MPD信息时)

然后,编译!

$ gcc barm.c -o barm

如果你不想要pulseaudio或mpd支持,那么就有编译标志。 如果要更改字体,请自行编辑源代码。

$ gcc barm.c -o barm -DNO_PULSEAUDIO -DNO_MPD

然后,运行它!

$ ./barm

它应该自动更新窗口标题,当前桌面(聚焦监视器),加载和时间。 如果您希望它立即更新,请将其发送给SIGUSR1(如果您想要即时更新卷,则需要这样做):

$ kill -USR1 `pidof barm`

我该如何配置?

你不(至少还没有)。它应该直观地编程,以便您潜入并进行更改。 补丁欢迎。

看起来不对齐?

您可能没有与我完全相同的屏幕。改变这一行:

if ((barfp = popen("lemonbar -g 1890x20+15+10...

将自己的维度指定为lemonbar(在-g选项之后)。

它坏了!

如果你告诉我,我会喜欢它。随意在GitHub上报告问题。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Capybara

Capybara

What is this?

Capybara is a lightweight manager for lemonbar, written in C.
It will start and manage lemonbar for you, and automagically update when bspwm changes.

Great. How do I get it to work?

You'll need the following dependencies:

Then, compile!

$ gcc barm.c -o barm

If you don't want pulseaudio or mpd support, there are compile flags for that.
If you want to change the font, go edit the source yourself.

$ gcc barm.c -o barm -DNO_PULSEAUDIO -DNO_MPD

Then, run it!

$ ./barm

It should automagically update window title, current desktop (of focused monitor), load, and time.
If you want it to update instantly, send it a SIGUSR1 (this is needed if you want instant updates for volume, etc):

$ kill -USR1 `pidof barm`

How do I configure it?

You don't (at least not yet). It should be programmed intuitively enough for you to just dive in and make changes.
Patches welcome.

Looks misaligned?

You probably don't have exactly the same screen as me. Change this line:

if ((barfp = popen("lemonbar -g 1890x20+15+10...

Specify your own dimensions to lemonbar (after the -g option).

It's broken!

I'd love it if you'd tell me. Feel free to report an issue on GitHub.