All Projects โ†’ bartobri โ†’ Bmenu

bartobri / Bmenu

Licence: gpl-3.0
A general purpose terminal menu that focuses on ease of configuration and use.

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Bmenu

django-menu-generator
A straightforward menu generator for Django
Stars: โœญ 24 (-74.47%)
Mutual labels:  simple, menu
Cli Menu
๐Ÿ–ฅ Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.
Stars: โœญ 1,776 (+1789.36%)
Mutual labels:  terminal, menu
Ftxui
๐Ÿ’ป C++ Functional Terminal User Interface. โค๏ธ
Stars: โœญ 433 (+360.64%)
Mutual labels:  terminal, simple
react-native-panel
A Customizable React Native Panel for Android and iOS
Stars: โœญ 35 (-62.77%)
Mutual labels:  simple, menu
vue-simple-context-menu
๐Ÿ“Œ Simple context-menu component built for Vue. Works well with both left and right clicks. Nothing too fancy, just works and is simple to use.
Stars: โœญ 162 (+72.34%)
Mutual labels:  simple, menu
Stmux
Simple Terminal Multiplexer for Node.js Environments
Stars: โœญ 388 (+312.77%)
Mutual labels:  terminal, simple
Xa
Beautiful & Customizable logger โค๏ธ
Stars: โœญ 78 (-17.02%)
Mutual labels:  terminal, simple
Cli Boot.camp
๐Ÿ’ป command-line bootcamp adventure in your browser
Stars: โœญ 88 (-6.38%)
Mutual labels:  terminal
Termtosvg
Record terminal sessions as SVG animations
Stars: โœญ 9,310 (+9804.26%)
Mutual labels:  terminal
Vuex Simple Structure
๐Ÿ“ˆ A repository showcasing a simple Vuex store inside a Vue.js application based on Large-scale Vuex application structures @3yourmind
Stars: โœญ 87 (-7.45%)
Mutual labels:  simple
Sjwt
Simple JWT Golang
Stars: โœญ 86 (-8.51%)
Mutual labels:  simple
Devtools Terminal
Terminal in Chrome Devtools
Stars: โœญ 1,286 (+1268.09%)
Mutual labels:  terminal
Floatingactionmenu
I got the original code from douo here - gist.github.com/douo/dfde289778a9b3b6918f
Stars: โœญ 91 (-3.19%)
Mutual labels:  menu
Friday
An open-source virtual assistant.
Stars: โœญ 88 (-6.38%)
Mutual labels:  simple
Fmui
fzf mpd user interface
Stars: โœญ 93 (-1.06%)
Mutual labels:  terminal
Omfm
Another floating action button menu with expand/collapse behavior, in kotlin
Stars: โœญ 86 (-8.51%)
Mutual labels:  menu
Eazydict
็ฎ€ๅ•ๆ˜“็”จ็š„ๅ‘ฝไปค่กŒ่ฏๅ…ธ ๐Ÿ“• ๐Ÿ“™ ๐Ÿ“— ๐Ÿ“˜ ๐Ÿ““
Stars: โœญ 92 (-2.13%)
Mutual labels:  terminal
Yui
Minimal vim color scheme
Stars: โœญ 93 (-1.06%)
Mutual labels:  simple
Run
โšกThe resource runtime
Stars: โœญ 90 (-4.26%)
Mutual labels:  terminal
Coinpare
Compare cryptocurrency trading data across multiple exchanges and blockchains in the comfort of your terminal
Stars: โœญ 89 (-5.32%)
Mutual labels:  terminal

Version

B-Menu

Screenshot

B-Menu is a minimalistic general purpose terminal menu written in C. It was designed to replace terminal-based login managers such as CDM. However, it can easily serve as a simple terminal menu for any situation where you would like to execute a command from a set of menu selections.

B-Menu has zero dependencies and it is intentionally feature-minimal. This keeps it easy to install, configure, and run.

Note that bmenu uses ANSI/VT100 terminal escape sequences to draw the menu in the terminal window. Most modern terminal programs support these sequences so this should not be an issue for most users. If yours does not, the menu may not render properly in your terminal window.

Table of Contents

  1. Download and Install
  2. Configuration
  3. Usage
  4. Run as a Login Manager
  5. License
  6. Tips

Download and Install

To install this project from source, you will need to have the tools git, gcc, and make to download and build it. Install them from your package manager if they are not already installed.

Once you have the necessary tools installed, follow these instructions:

git clone https://github.com/bartobri/bmenu.git
cd ./bmenu
make
sudo make install

This will build and install bmenu in to the /usr/local/bin directory.

Uninstall:

sudo make uninstall

Configuration

By default, b-menu looks for menu options in $HOME/.bmenu. This file should consist of one menu option and one command on each line, seperated by a colon.

Example:

Clear Screen:/usr/bin/clear
Dir Listing:/usr/bin/ls -l

Usage

Use the -c option to override the default menu file path:

bmenu -c /full/path/to/menu/file

Use the -t option to override the default menu prompt:

bmenu -t 'Choose an Option:'

Run as a Login Manager

To run b-menu when you login, place the following code in $HOME/.bash_profile:

if [[ "$(tty)" == '/dev/tty1' ]]; then
    [[ -n "$BMENU_SPAWN" ]] && return
    export BMENU_SPAWN=1
    # Avoid executing bmenu when X11 has already been started.
    [[ -z "$DISPLAY$SSH_TTY$(pgrep xinit)" ]] && exec bmenu
fi

If you do this, it is best to include a menu option to launch a shell. Add the following to your menu options file:

Shell:/bin/bash --login

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. See LICENSE for more details.

Tips

Tips are always appreciated!

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].