Skip to content

A bash + lemonbar setup for printing useful information about system activity

License

Notifications You must be signed in to change notification settings

joonaspilli/bashed_lemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bashed Lemon

A bash + lemonbar setup for printing useful information about system activity. Offers primary output to either a statusbar (lemonbar) or stdout.

This project is created for my personal needs and its features are lacking for general-use. Existing features may be environment specific, although an attempt is made to avoid such cases when possible. In its current form I don't recommend anyone else to use this script, but it can offer examples of possible implementations and syntax for similar needs.

Dependencies

Here are listed the most notable direct dependencies for the current setup, which might not be available by default on all expected systems or their version number is an expected concern. Vital dependencies (i.e. not module specific) have been bolded.

  • Bash (4.0 or greater)
  • lemonbar-xft
  • Hack font
  • Font Awesome 5 font
  • acpi
  • amixer
  • bspc
  • mpc
  • xmessage
  • xrandr
  • xset

Development

Global variables

User configuration file and module files are sourced to the main file during execution. Global variables should be avoided where possible and described naming conventions should followed when they are necessary. Module specific global variables should also be prefixed with the module name, e.g. in case of module "foo" and a necessary misc global variable "bar" the name would be GLOBAL_foo_bar.

Global variable name prefixes

  • DEFAULT_ - define default settings
  • GLOBAL_ - misc global variables
  • MODULES_ - define modules to be used
  • USER_ - overwrite default settings, read from user configuration file

Module (bash function) name prefixes

  • mod_ - can be called in a main module loop
  • submod_ - should only be called by a corresponding module

About

A bash + lemonbar setup for printing useful information about system activity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages