Giter Club home page Giter Club logo

dwm-bar's Introduction

dwm-bar

Originl code: Joe Standring (original repo)

A modular statusbar for DWM

screenshot

Table of Contents

dwm_alsa

Displays the current master volume of ALSA

 55%

Dependencies: alsa-utils

dwm_battery

Displays battery level and status

 43% dischr

dwm_keyboard

Displays the current keyboard layout

 en

dwm_date

Displays the current date and time

 Mon 06-05-19 21:31:58]

dwm_weather

Displays the current weather provided by wttr.in

 +4°C

Make it works:

cd misc
cp weather.service weather.timer ~/.config/systemd/user
systemctl --user enable weather.service weather.timer
systemctl --user start weather.service weather.timer

dwm_network

Displays the current network connection, private IP, and public IP

 HomeWifi

Dependencies: nmcli

dwm_openvpn

Displays the current OpenVPN connection

 tun | 172.246.163.117

dvm_bluetooth

Displays current bluetooth connections

 Galaxy Buds (A3E4)

Dependencies: sluez

Installation

  1. Clone and enter the repository:

     git clone https://github.com/lisp3r/dwm-bar
     cd dwm-bar
    
  2. Make the script executable

     chmod +x dwm_bar.sh
    

Quick Start

Simply run the script and dwm should display your bar:

./dwm_bar.sh

Most likely, you will need to change some values for functions to get them to work - these are outlined with a comment for functions where this is likely the case.

If you would like your bar to be displayed when X starts, add this to your .xinitrc file before launching dwm. For example, if the script is located in /home/$USER/dwm-bar/:

# Statusbar
/home/$USER/dwm-bar/dwm_status.sh &

# Start dwm
exec dwm

Customizing

dwm-bar is completley modular, meaning you can mix and match functions to your hearts content. It's functions are located in the bar-functions/ subdirectory and included in dwm_bar.sh.

If you want to make your own function, for example dwm_myfunction.sh, you should create it in the bar-functions/ subdirectory before including it in dwm_bar.sh:

load_module 'dwm_myfucntion'

Acknowledgements

Code for some functions was modified from:

dwm-bar's People

Contributors

joestandring avatar

Watchers

 avatar

dwm-bar's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.