Skip to main content
added 35 characters in body
Source Link
Archemar
  • 32.3k
  • 18
  • 75
  • 107

iI use this script in cron to post MPD now playing to twitter every hour

#!/bin/bash export DISPLAY=":0.0" msg=$(mpc current -h 192.168.1.33) twitter set "#MPD Server nowplaying $msg : http://cirrus.turtil.net:9001" #ttytter -status="#MPD Server nowplaying $msg. http://cirrus.turtil.net:9001"

exit

#!/bin/bash
export DISPLAY=":0.0"
msg=$(mpc current -h 192.168.1.33)
twitter set "#MPD Server nowplaying $msg :  http://cirrus.turtil.net:9001"
#ttytter -status="#MPD Server nowplaying $msg. http://cirrus.turtil.net:9001"

exit 

similar script using notify-send

#!/bin/bash export DISPLAY=":0.0" notify-send -i ~/.icons/48arch.png 'OS- Archlinux x86_64 : DWM Window Manager' 'Installed on Sun Apr 21 2013 at 18:17:22' exit

#!/bin/bash
export DISPLAY=":0.0"
notify-send -i ~/.icons/48arch.png 'OS- Archlinux x86_64 : DWM Window Manager' 'Installed on Sun Apr 21 2013 at 18:17:22' 
exit

you may be experiencing problems as KDE uses its own notify-deamon IIRC, good luck.

i use this script in cron to post MPD now playing to twitter every hour

#!/bin/bash export DISPLAY=":0.0" msg=$(mpc current -h 192.168.1.33) twitter set "#MPD Server nowplaying $msg : http://cirrus.turtil.net:9001" #ttytter -status="#MPD Server nowplaying $msg. http://cirrus.turtil.net:9001"

exit

similar script using notify-send

#!/bin/bash export DISPLAY=":0.0" notify-send -i ~/.icons/48arch.png 'OS- Archlinux x86_64 : DWM Window Manager' 'Installed on Sun Apr 21 2013 at 18:17:22' exit

you may be experiencing problems as KDE uses its own notify-deamon IIRC, good luck.

I use this script in cron to post MPD now playing to twitter every hour

#!/bin/bash
export DISPLAY=":0.0"
msg=$(mpc current -h 192.168.1.33)
twitter set "#MPD Server nowplaying $msg :  http://cirrus.turtil.net:9001"
#ttytter -status="#MPD Server nowplaying $msg. http://cirrus.turtil.net:9001"

exit 

similar script using notify-send

#!/bin/bash
export DISPLAY=":0.0"
notify-send -i ~/.icons/48arch.png 'OS- Archlinux x86_64 : DWM Window Manager' 'Installed on Sun Apr 21 2013 at 18:17:22' 
exit

you may be experiencing problems as KDE uses its own notify-deamon IIRC.

Source Link

i use this script in cron to post MPD now playing to twitter every hour

#!/bin/bash export DISPLAY=":0.0" msg=$(mpc current -h 192.168.1.33) twitter set "#MPD Server nowplaying $msg : http://cirrus.turtil.net:9001" #ttytter -status="#MPD Server nowplaying $msg. http://cirrus.turtil.net:9001"

exit

similar script using notify-send

#!/bin/bash export DISPLAY=":0.0" notify-send -i ~/.icons/48arch.png 'OS- Archlinux x86_64 : DWM Window Manager' 'Installed on Sun Apr 21 2013 at 18:17:22' exit

you may be experiencing problems as KDE uses its own notify-deamon IIRC, good luck.