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)"
Long time followers of this page may remember back in March of 2012 i did up a hackintosh on an old Dell 620, that was my first foray into the macworld and i came away not overly impressed, Snow Leopard reminded me of Gnome2. Recently i went back for another look at OS X after cooking up a hackintosh which runs the OS Mavericks, read on to find out how this Archlinux refugee fared in the adventure.
Firstly i went to my favourite torrent site and searched for ‘ OSX USB Install Intel’ i ultimately came away with this . For anyone wanting to follow my steps ( i will give a tutorial of sorts as one or two folk on G+ asked me to share the magic sauce) this would be a great time to go and find out what hardware your PC is running, If using lolWindows then there is a free app named Speccy and if using Linux then you probably know how to find out what hardware your box is using. Specificaly take note of the Soundcard, GPU and the NIC (network interface card) make and model. My machine has an ASUS mobo and an Intel i7 and an ATI HD4870 GPU Audio is Realtek ALC888/ALC1200, NIC is RealtekRTL8111, i will link to the appropriate kexts and a DSDT for that specific HW below.
Once i had my list of hardware i set about writing the newly downloaded image to a little 16Gb Sandisk USB stick, i was ofc using Linux so i used the ‘dd’ method. Having formatted the USB stick to FAT32 filesystem i began to write the image, as root i cd to dir where image resides then ran this command replacing ** with the USB drive’s assigned letters
(never dd to /dev/S**1 etc. no partition numbers, always to root of device)
i renamed the downloaded file ‘OS X 10.9 Install USB.raw’ to simply osx10.raw
dd if=osx10.raw of dev/s**
If using lolWindows use this
to write the file to teh USB stick
Simple shell script for MPD now playing, using xcowsay to define image
(any image can be used)
xcowsay --at 800,20 --font=CaviarDreams --monitor=1 --image=/home/cirrus/djtux.png "MPD Now Playing" "$OSD"
Download xcowmpd.sh Script
edit the –at switch to define where on VDU image shows
and ofc edit the –monitor switch to define which VDU
see here for moar indepth configuration options
To have the script execute on MPD song change,
add this 1 line to ~/.ncmpcpp/config
execute_on_song_change = ~/path/to/xcowmpd.sh
Alternatively if not using ncmpcpp simply execute this script alongside mpd,mcp [edit to suit]
Here is some more of my simple shell scripts where xcowsay could be used opposed to notify-send