#!/bin/sh myprofilename=$(cat /home/user/.profiled/current) myprofilevibr=$(dbus-send --type=method_call --print-reply --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.get_values string:"$myprofilename" | awk -F'"' 'NR==75 {print $2}') if [ "$myprofilename" = 'general' ]; then myprofile='' elif [ "$myprofilename" = 'silent' ]; then myprofile='Mute' else myprofile=$myprofilename fi if [ "$myprofilevibr" = 'On' ]; then myprofile=$myprofile' {}' fi echo $myprofile