All Projects → b3nj5m1n → lemonblocks

b3nj5m1n / lemonblocks

Licence: MIT License
A status bar generator for lemonbar, inspired by i3blocks and dwmblocks.

Programming Languages

c
50402 projects - #5 most used programming language
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to lemonblocks

dotfiles
Messy configuration repository / Gentoo / Coreboot / XMonad / Ergodox / Home Cooked ZSH microframework / Eye candy stuff / Miscellaneous hacks
Stars: ✭ 43 (+38.71%)
Mutual labels:  lemonbar, bspwm
Polybar
A fast and easy-to-use status bar
Stars: ✭ 9,604 (+30880.65%)
Mutual labels:  bar, bspwm
kali-config
Linux colorful dotfiles.
Stars: ✭ 40 (+29.03%)
Mutual labels:  bspwm
axyl-iso
Axyl is a Linux distro centered on tiling window managers. Choose from i3, bspwm, dwm and more.
Stars: ✭ 348 (+1022.58%)
Mutual labels:  bspwm
arch-monochrome
My monochromatic rice for BSPWM on arch linux
Stars: ✭ 64 (+106.45%)
Mutual labels:  bspwm
i3blocks-crypto
💵 View your favorite coins' ticker prices with i3blocks.
Stars: ✭ 30 (-3.23%)
Mutual labels:  i3blocks
archlinuxcn-dotfiles-collection
来自社区小伙伴们的 dotfiles 集锦
Stars: ✭ 73 (+135.48%)
Mutual labels:  bspwm
duing
😱 The progress bar / status badge of SVG generator service
Stars: ✭ 68 (+119.35%)
Mutual labels:  bar
dotfiles
~/.*
Stars: ✭ 41 (+32.26%)
Mutual labels:  lemonbar
Dotfiles
A Mess....
Stars: ✭ 15 (-51.61%)
Mutual labels:  bspwm
dotfiles
Personal set of vim, zsh, git configs and scripts.
Stars: ✭ 23 (-25.81%)
Mutual labels:  bspwm
TabBar
📱 TabBar – highly customizable tab bar for your SwiftUI application.
Stars: ✭ 105 (+238.71%)
Mutual labels:  bar
dotfiles
files that start . and makes my Linux box awesome.
Stars: ✭ 57 (+83.87%)
Mutual labels:  bspwm
Dotfiles
KDE Plasma for twm users.
Stars: ✭ 83 (+167.74%)
Mutual labels:  bspwm
pidswallow
A swallower script using process hierarchy.
Stars: ✭ 40 (+29.03%)
Mutual labels:  bspwm
dotfiles
configurations of various tools that I use everyday
Stars: ✭ 14 (-54.84%)
Mutual labels:  bspwm
dmenu-hotkeys
View for your hotkeys in rofi/dmenu style
Stars: ✭ 51 (+64.52%)
Mutual labels:  bspwm
dotfiles
🔧 .files - different setups separated in branches
Stars: ✭ 168 (+441.94%)
Mutual labels:  bspwm
bspwm border color
VIM mode indicator for bspwm
Stars: ✭ 18 (-41.94%)
Mutual labels:  bspwm
wapanel
Desktop-dedicated wayland bar for wayfire and other wlroots based compositors. Mir compatible.
Stars: ✭ 31 (+0%)
Mutual labels:  bar

Contributors Forks Stargazers Issues MIT License


lemonblocks

A status bar generator for lemonbar, inspired by i3blocks and dwmblocks.

Report Bug · Request Feature

Table of Contents

About The Project

Product Name Screen Shot

A status bar generator for lemonbar, inspired by i3blocks and dwmblocks, written in plain C.

demo

demo

Lemonbar reads from stdin for the status, it supports clickable areas, the commands will be written to stout.

Lemonblocks tries to make feeding the bar easier. You can define your own modules which you can asign signals. Every time you want to update one of your modules, you can send a signal to the instance of lemonblocks to run the associated command. This means that you don't have to run a script at certain intervals, instead you update it only when necessary.

Getting Started

Prerequisites

Installation

  1. Clone the repo
git clone https://github.com/b3nj5m1n/lemonblocks.git
  1. Bulid & Install lemonblocks
sudo make install
  1. Copy default config
make config
  1. Copy scripts
sudo make scripts

Usage

Starting lemonbar & lemonblocks

The script called start.sh will start lemonbar with sensible default settings as well as lemonblocks.

The script is moved to /usr/bin when installing, you can call it like this:

start-lemonbar.sh &

Updating a module

# 3 is the signal for your module
pkill lemonblocks -3

Config

You can configure your modules in the file config.txt located at ~/.config/lemonblocks. (Run make config to create the directory and copy the default config)

# Seperate values with a , (No space afterwards)
# Interval  Signal Icon  Command Alignment   Initial Status  BgColor FgColor LeftClick   MiddleClick RightClick  ScrollUp    ScrollDown Prefix Suffix
# Interval of 0 means it will only be updated by signals. NULL means nothing or default value for icons, colors and mouse events
# Example config:
0,3,🍍,/usr/bin/lbscripts/powermenu.sh,l, ,NULL,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]
1,4,NULL,/usr/bin/lbscripts/bspwm.sh,l, ,NULL,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]
1,5,NULL,/usr/bin/lbscripts/cmus.sh,l, ,NULL,f8f8ff,cmus-remote -u; pkill lemonblocks -5,NULL,NULL,cmus-remote -v +1%,cmus-remote -v -1%,[,]
0,6,🔈,/usr/bin/lbscripts/volume.sh,r, ,aa1d1f21,f8f8ff,amixer set Master toggle; pkill lemonblocks -6,NULL,NULL,amixer -q sset Master 1%+; pkill lemonblocks -6,amixer -q sset Master 1%-; pkill lemonblocks -6,[,]
0,7,📁,/usr/bin/lbscripts/free-space.sh,r, ,aa1d1f21,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]
0,8,🐒,/usr/bin/lbscripts/layout.sh,r, ,aa1d1f21,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]
300,10,NULL,/usr/bin/lbscripts/network.sh,r, ,aa1d1f21,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]
30,11,⏰,/usr/bin/lbscripts/date.sh,r, ,aa1d1f21,f8f8ff,NULL,NULL,NULL,NULL,NULL,[,]

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].