image showing MPD now playing in tmux status bar
Firstly grab this shell script, make it executable and drop it in ~/scripts/ directory or anywhere you choose
edit the script mpc current / mpc status -h flag with your own MPD servers hostname or I.P address
then simply add this to your ~/.tmux.conf
set -g status-left " MPD: #[fg=colour255]#(~/scripts/xarchmpdnp1)"
edit the path to wherever you saved script too
same only this script shows most recent archlinux news item
The news item requires python-feedparser as we are grabbing the item via RSS feed to show in tmux bar just follow above steps only replacing scripts
set -g status-left " News: #[fg=colour255]#(~/scripts/anews.py)"
You must be logged in to post a comment.