Originl code: Joe Standring (original repo)
A modular statusbar for DWM
Displays the current master volume of ALSA
55%
Dependencies: alsa-utils
Displays battery level and status
43% dischr
Displays the current keyboard layout
en
Displays the current date and time
Mon 06-05-19 21:31:58]
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
Displays the current network connection, private IP, and public IP
HomeWifi
Dependencies: nmcli
Displays the current OpenVPN connection
tun | 172.246.163.117
Displays current bluetooth connections
Galaxy Buds (A3E4)
Dependencies: sluez
-
Clone and enter the repository:
git clone https://github.com/lisp3r/dwm-bar cd dwm-bar
-
Make the script executable
chmod +x dwm_bar.sh
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
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'
Code for some functions was modified from: